简体   繁体   English

在iFrame中调用ASPX文件

[英]Calling an ASPX file in an iFrame

I'm trying to get an iFrame working by embedding an ASPX file from a different site on my client's Wordpress, and it's been giving me a headache. 我正在尝试通过将来自其他站点的ASPX文件嵌入到客户的Wordpress中来使iFrame正常工作,这一直让我头疼。 I have searched and tested every method. 我已经搜索并测试了每种方法。

I'm trying to embed this ASPX: http://www.salonvision.com/TheRetreat/AppointmentSearchFBTab.aspx?backcolor=FFFFFF 我正在尝试嵌入此ASPX: http : //www.salonvision.com/TheRetreat/AppointmentSearchFBTab.aspx? backcolor= FFFFFF

Into this wordpress site: https://theretreatdurham.com/book-online/ 进入此WordPress站点: https : //theretreatdurham.com/book-online/

Below is the code my client gave me which does not work, just opens up blank for me. 下面是我的客户给我的代码,该代码不起作用,对我来说是空白。 And I have tried every method I could find online. 我尝试了所有可以在网上找到的方法。 Any help would be so much appreciated. 任何帮助将不胜感激。

 <br class=“Apple-interchange-newline”> <iframe src=“http://www.salonvision.com/TheRetreat/AppointmentSearchFBTab.aspx?backcolor=FFFFFF” scrolling=“no” width=“600px” height=“1400px” frameborder=“0”> </iframe> 

I changed it to this code which works partially: 我将其更改为部分起作用的代码:

 <iframe runat="server" src="http://www.salonvision.com/TheRetreat/AppointmentSearchFBTab.aspx?backcolor=FFFFFF" frameborder=“0” scrolling=“no” style="width: 840px; height: 600px; frameborder: 0;"></iframe> 
I assume the runat="server" or the iFrame styling changed it to work for me better, but it's only working in a few browsers. 我认为runat =“ server”或iFrame样式对其进行了更改,使其更适合我,但仅在少数浏览器中有效。 I've posted an image below that shows all the browsers tested. 我在下面发布了一张图片,显示了所有经过测试的浏览器。 I need to find a code that has more viability than that :P 我需要找到一个比这更可行的代码:P

Image of Multiple Browser Testing 多个浏览器测试的图像

This is working fine for me. 这对我来说很好。

 <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> </head> <body> <iframe src="http://www.salonvision.com/TheRetreat/AppointmentSearchFBTab.aspx?backcolor=FFFFFF" scrolling=“no” width=“600px” height=“1400px” frameborder=“0”></iframe> </body> </html> 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM