【发布时间】:2013-12-17 21:57:48
【问题描述】:
我在使用 IE 时遇到了一个非常奇怪的问题(在 IE11 上测试) 我有一个 wordpress 页面,其中包含一个硬编码的 iframe 块,该块链接到一个运行几个脚本的 php 页面。一年前我使用了相同的代码,它运行良好。现在,当我将 iframe 放入页面时,Chrome、Firefox、Safari、Opera 都会正确显示它。但是,当我在 IE 中打开页面时,iframe 会不断刷新。
以下是我在 WordPress 页面中的 iFrame 代码 http://www.austinweddings.com/bridalextravaganza/dream-wedding-giveaway/
<div style="float: none; clear: both; height: 400px;">
<h2 class="post-title entry-title"><a href="#">Vote for your favorite couple now!</a></h2>
Share this page with your friends on facebook!
<div class="fb-like" data-share="true" data-show-faces="true" data-action="like" data-layout="standard" data-href="http://www.austinweddings.com/bridalextravaganza/dream-wedding-giveaway/"></div>
<iframe style="border:0;" src="http://www.texasweddingsltd.com/video-voting/index.php" height="400" width="980"></iframe>
</div>
如果我在 IE 中访问 http://www.texasweddingsltd.com/video-voting/index.php 它显示正常,但在 iFrame 中它会进入无限刷新循环。
编辑:我已经在另一个与 WordPress 相关的 HTML 页面上测试了 iFrame,它可以正确显示它而无需刷新。我将问题缩小到 wordpress 页面本身。
编辑:在另一个 WordPress 页面中测试 iframe 问题仍然存在,我确信问题是由两个页面上存在的 JS 调用引起的。
任何帮助将不胜感激!
【问题讨论】:
-
人们还在使用 iframe 吗?
-
@MarkBaker 取决于应用程序的性质和所需的浏览器支持。你在想
<frameset>吗?
标签: php wordpress internet-explorer iframe