Fancybox 1.3.4无法在IE中工作 [英] Fancybox 1.3.4 not working in IE
问题描述
我在本网站的fancybox中嵌入了一张.swf电影: http://www.courtyarddental.co.uk
I have an .swf movie embedded in fancybox on this site: http://www.courtyarddental.co.uk
除了IE之外,所有浏览器都能正常运行,我只是获得了灰色屏幕,但没有弹出框。
This works as expected in all browsers except IE, where I just get the greyed-out screen but no pop-up box.
任何帮助非常感谢!
推荐答案
这是一个老问题我们从来不知道是什么原因。基本上fancybox v1.3.x不会像你的代码一样显示带有data属性(IE6 / 7/8)的object元素
That was an old issue and we never knew exactly what was the reason. Basically fancybox v1.3.x won't display "object" elements with "data" attribute (IE6/7/8) like in your code
<object type="application/x-shockwave-flash" data="the_courtyard.swf" width="640" height="360">
你可以看到旧线程此处返回2010年1月
you can see the old thread here back in January 2010
此外,链接内联内容还有其他问题;
请参阅此处
additionally, linking inline content has other issues; see here
我建议你直接链接视频,如
I would recommend you to link the video directly like
<a href="http://www.courtyarddental.co.uk/the_courtyard.swf" id="movie"><img width="207" height="117" border="0" title="Play the video" alt="Play the video" src="http://www.courtyarddental.co.uk/images/video-btn.png"></a>
并使用此脚本
$(document).ready(function() {
$('#movie').fancybox({
'padding': 0, //optional
'width': 640,
'height': 360,
'type': 'swf',
'autoScale': false
});
});
适用于大多数浏览器,包括IE7 +
that works fine for most browsers including IE7+
演示此处
这篇关于Fancybox 1.3.4无法在IE中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!