flash - wmode=transparent 对于 Youtube 视频 Iframe 无法在具有 Bootstrap 模式的 IE 中工作

标签 flash internet-explorer twitter-bootstrap youtube z-index

我有一个网络应用程序,我使用 iframe 标签嵌入 Youtube 视频。我也在使用 Bootstrap 模式。因此,当 Bootstrap 模式无法与 YouTube 视频重叠时,IE 中就会出现问题。现在我用谷歌搜索这个问题,发现很多答案都说添加 wmode=transparent 应该可以解决这个问题。嗯,它不适合我。

由于我无法找到设置 jsfiddle 的方法,因此我访问了 bootstrap 模式演示网站并编辑了他们的代码并添加了 YouTube 视频。请参阅下面的屏幕截图了解更多详细信息。

enter image description here

当我点击“启动演示模式”时,它不起作用

enter image description here

任何人都可以解释为什么这不起作用或有解决方案吗?

这是我放在模式按钮上方的 YouTube 视频代码

<iframe class="yt-video-iframe" src="https://www.youtube.com/v/WEROVWDp3n0?version=3&amp;f=videos&amp;app=youtube_gdata&amp;wmode=transparent"></iframe>

我正在使用:

  • IE 9
  • Bootstrap 模式版本 2.3.1
  • Youtube API 版本 2

最佳答案

尝试使用 wmode=opaque 而不是 wmode=transparent。但请检查一下 Chrome 。顺便说一句,如果你在 firebug 上这样做,它就不会起作用。

关于flash - wmode=transparent 对于 Youtube 视频 Iframe 无法在具有 Bootstrap 模式的 IE 中工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16900804/

相关文章:

flash - MP4 正在下载而不是播放

css - CSS 显示的 IE 等效项 : flow-root

internet-explorer - 如何从我的程序中列出 Internet Explorer 使用的插件 (BHO)?

css - 推特 Bootstrap : how to put unknown number of span* within a row-fluid?

actionscript-3 - 将 actionscript 3 项目构建为 exe

c# - 需要使用 C# 到达嵌入到 HTML 中的 Flash 影片的结尾

css - Bootstrap Split 按钮下拉列表大小不一样

javascript - $(document).ready 在加载 DOM 之前触发

java - 二进制搜索,从 java 到 Actionscript

css - 如何在 Twitter Bootstrap 的网格系统中设置列内输入的宽度?