YouTube wmode=opaque 在 IE9(或任何其他 IE)中不起作用 [英] YouTube wmode=opaque not working in IE9 (or any other IE)
问题描述
我需要使用 wmode=opaque 或类似的东西,因为我想在视频前面放置一个图像(占位符和箭头图像,因为视频将显示在幻灯片中).
然而,我正在努力让它在任何版本的 IE(甚至 9!)中工作.
我也尝试过 wmode 的所有变体——不透明、透明、窗口和直接
这是代码的链接...
这是用于保存目的的实际代码...
/* HTML */<div id="tabs2"><div><img class='thumb' src='http://static.guim.co.uk/sys-images/Guardian/Arts_/Pictures/2003/12/04/explosions.jpg'><iframe id="frame1" width="640" height="390" frameborder="0" title="YouTube 视频播放器"type="text/html"src="http://www.youtube.com/嵌入/u1zgFlCw8Aw?e&wmode=opaque"></iframe>
<div><img class='thumb' src='http://static.guim.co.uk/sys-images/Guardian/Arts_/Pictures/2003/12/04/explosions.jpg'><iframe id="frame2" width="640" height="390" frameborder="0" title="YouTube 视频播放器"type="text/html"src="http://www.youtube.com/嵌入/u1zgFlCw8Aw?wmode=opaque"></iframe>
/* CSS */#tabs2 div {位置:相对;}.thumb {位置:绝对;}
您究竟如何测试这是否在 IE 中有效?我刚刚检查了视频顶部的图像层
I need to use wmode=opaque or something similar because I would like to place an image in front of the video (placeholder and arrow images as the videos will be in a slideshow).
However, I'm struggling to get this to work in any version of IE (even 9!).
I've also tried every variant of wmode - opaque, transparent, window and direct
Here is a link to the code...
Here is the actual code for preservation purposes...
/* HTML */
<div id="tabs2">
<div>
<img class='thumb' src='http://static.guim.co.uk/sys-images/Guardian/Arts_/Pictures/2003/12/04/explosions.jpg'>
<iframe id="frame1" width="640" height="390" frameborder="0" title="YouTube video player"type="text/html"src="http://www.youtube.com/embed/u1zgFlCw8Aw?e&wmode=opaque"></iframe>
</div>
<div>
<img class='thumb' src='http://static.guim.co.uk/sys-images/Guardian/Arts_/Pictures/2003/12/04/explosions.jpg'>
<iframe id="frame2" width="640" height="390" frameborder="0" title="YouTube video player"type="text/html"src="http://www.youtube.com/embed/u1zgFlCw8Aw?wmode=opaque"></iframe>
</div>
/* CSS */
#tabs2 div {
position: relative;
}
.thumb {
position: absolute;
}
How exactly are you testing whether this works in IE? I just checked and the image layers on top of the video properly
这篇关于YouTube wmode=opaque 在 IE9(或任何其他 IE)中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!