Z-Index属性没有工作过YouTube视频 [英] Z-Index property not working over a youtube video
问题描述
我的网站是使用VS 2010 VB,和我的Z-index属性我已经设置为20,它的正常工作过的照片和其他的东西。但我有两个YouTube视频,而z-index属性不能正常工作;我想显示是由YouTube视频涵盖了菜单 - 但只有在IE浏览器;其他浏览器正常工作!
My site is in VB using VS 2010, and my z-index property I have set to 20, and it's working fine over pictures and other things. But I have two youtube videos, and the z-index property isn't working; the menu I want to display is covered up by the youtube video -- but only in IE; other browsers work fine!
我是不是做错了什么?或者是有什么我应该做不同的时,它的YouTube视频?
Am I doing something wrong? Or is there something I should do differently when it's a youtube video?
我的嵌入式视频看起来是这样的,它的覆盖我的菜单:
My embedded video looks like this and it's covering my menu:
<table class="tablestyle0">
<tr>
<td>
<iframe id="ShowFrameID" width="640" height="480"
src="http://www.youtube.com/embed/IxiZ0sdh6hw?wmode=opaque?
modestbranding=1&rel=0">
</iframe>
</td>
</tr>
在这方面的任何帮助或指导将是真正的AP preciated!
Any help or guidance in this regard would be truly appreciated!
推荐答案
如果您更改的wmode =不透明
到的wmode =透明
,那么YouTube播放器应该尊重你的z-index的顺序。
If you change wmode=opaque
to wmode=transparent
, then the YouTube player should respect your z-index ordering.
编辑:的问题是你有你的YouTube网址两个
字符?。将wmode =不透明部分不获取通过与服务器
The problem is you have two ?
characters in your YouTube URL. The wmode=opaque part is not getting through to the server.
这为我工作后,我做了改变。你可能没有将它设置为透明
(不透明
应该工作,太)。
It worked for me after I made that change. You probably don't have to set it to transparent
(opaque
should work, too).
<table class="tablestyle0">
<tr>
<td>
<iframe id="ShowFrameID" width="640" height="480"
src="http://www.youtube.com/embed/IxiZ0sdh6hw?wmode=opaque&modestbranding=1&rel=0">
</iframe>
</td>
</tr>
这篇关于Z-Index属性没有工作过YouTube视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!