html - YouTube 嵌入代码下出现的 Twitter Bootstrap 下拉菜单

标签 html css twitter-bootstrap

我正在使用 Twitter Bootstrap downdown 代码来构建我的导航,但是,我在导航栏下方有一个 Youtube 视频,当用户将鼠标悬停在导航项上时,下拉菜单会出现在 YouTube iFrame 下方。我在这两个元素上对 Z-Index 进行了一些尝试,但这似乎没有什么不同。任何帮助表示赞赏和示例可以在这里找到:http://bit.ly/YKXJEq

编辑:这似乎只是 IE 上某些版本的问题。在 IE9 上测试。

最佳答案

添加 wmode=transparent 视频 url

http://www.youtube.com/embed/vmPm5aaU0dg?rel=0&wmode=transparent

<iframe style="z-index:-9999;" width="292" height="306" src="http://www.youtube.com/embed/vmPm5aaU0dg?rel=0&amp;wmode=transparent" frameborder="0" allowfullscreen=""></iframe>

关于html - YouTube 嵌入代码下出现的 Twitter Bootstrap 下拉菜单,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15220559/

相关文章:

html - 自定义单选按钮图像选择

php - 将面包屑 php 添加到我的 Bootstrap 导航栏

css - Bootstrap 响应 - 在移动设备上查看时忽略 'spanX'

html - 使用导航标签作为步骤元素 twitter bootstrap

html - 如何在选择字段和选项字段中赋予颜色?

javascript - jQuery:绕过 .on() 函数中的 "click"参数

javascript - 使用 addClass() 时何时加载背景图像?

html - Bootstrap 推拉麻烦

css - 在响应图像上定位点

html - 为什么 float 会向上移动我的按钮