在此站点上 http://drehmomentproduktion.ch/showreel我使用来自 Vimeo 和 YouTube 的视频以及附加到 iFrame 的一些边框半径样式。
现在奇怪的是,如果我在 FF (8.0.1) 中查看它,YouTube 视频只是黑色方 block 。 它们在所有其他浏览器中运行良好。
如果我禁用 border-radius
,YouTube 视频看起来很好。
如何使用 border-radius
禁用嵌入式视频?
最佳答案
我遇到了同样的问题。使用此 iFrame 代码。 wmode=transparent
属性很重要!
<iframe width="464" height="261" frameborder="0" allowfullscreen=""
src="http://www.youtube-nocookie.com/embed/rZ2dIVB1vmk?wmode=transparent&autohide=1&egm=0&hd=1&iv_load_policy=3&modestbranding=1&rel=0&showinfo=0&showsearch=0"></iframe>
关于firefox - border-radius 在 FF 上禁用 YouTube 嵌入,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8522250/