Fancybox在IE7上的ifame中给白页 [英] Fancybox giving white page in ifame on IE7

查看:70
本文介绍了Fancybox在IE7上的ifame中给白页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用

<a href="content.aspx?id=21" class="fancybox fancybox.iframe">Content</a> 

以在fancybox的iFrame中显示此内容.

to show this content in iFrame in fancybox.

但是在IE7 fancybox中,出现了白色的空白框.任何机构都有解决这个问题的想法吗?

But in IE7 fancybox coming white blank box. Any body have any idea to solve this issue?

推荐答案

这是正确的解决方案,但是iframe预加载在许多情况下可能很有用.我们唯一需要禁用iframe预加载的情况是在IE7和较旧的丑陋浏览器下,因此我建议替换

This is a right solution, but iframe preload can be usefull in many cases. The only case we need to disable iframe preloading is under IE7 and older ugly browsers, so I suggest to replace the

iframe: {
    preload: false
}

作者

iframe: {
   preload: !(document.all && !document.querySelector)
}

这篇关于Fancybox在IE7上的ifame中给白页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆