首页 文章

Internet Explorer刷新iframe

提问于
浏览
0

我有一个非常奇怪的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调用引起的 .

任何帮助将非常感谢!

1 回答

  • 0

    我在IE11中得到了相同的结果,但我的主要建议是从控制台查看错误:

    enter image description here

相关问题