Javascript Youtube视频全屏在firefox中不起作用

Javascript Youtube视频全屏在firefox中不起作用,javascript,css,firefox,youtube,Javascript,Css,Firefox,Youtube,Youtube视频全屏在firefox(28版)中不起作用 这是我的密码 <div class="video-div-container"> <div class="video-container"> <iframe src="//www.youtube.com/embed/eMalsA4LiSQ?rel=0&showinfo=0&modestbranding=1&wmode=transparent"

Youtube视频全屏在firefox(28版)中不起作用

这是我的密码

<div class="video-div-container">
<div class="video-container">
    <iframe src="//www.youtube.com/embed/eMalsA4LiSQ?rel=0&showinfo=0&modestbranding=1&wmode=transparent"
                    width="640" height="360" frameborder="0" allowfullscreen></iframe>
</div>
</div>

单击全屏按钮时,iframe将变为黑色

上面的代码在google chrome中运行良好。如果我从url中删除&wmode=transparent,它也可以正常工作。我无法删除&wmode=transparent,因为我有z索引问题

请帮我解决这个问题。

如果您尝试一下这个怎么办

<div class="video-div-container">
<div class="video-container">
<iframe src="//www.youtube.com/embed/eMalsA4LiSQ?rel=0&showinfo=0&modestbranding=1&wmode=transparent&fs=1" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
</div>
</div>


&fs=1用于触发全屏按钮,而webkitallowfullscreen、mozallowfullscreen用于解决特定于浏览器的问题。

如果从url中删除&wmode=transparent,z索引问题是什么?iframe下有引导模式和警报。我添加了&wmode=transparent来解决这个问题。凯,如果您更改为
&wmode=opacable
,会发生什么?刚刚在FF28中测试了这个提琴,我没有收到任何问题:谢谢您的更新。同样的JSFIDLE在我的firefox(ubuntu操作系统)中不起作用。知道吗?对不起。没有区别