我不确定为什么在 chrome 中通过 iframe 查看嵌入式 youtube 视频时看不到全屏按钮。这只发生在 chrome 中(使用 Firefox、IE、Safari、Chrome 测试过)。
当它通过 iframe 呈现时,您可以通过下面的 fiddle 明白我的意思。
<iframe width="560" height="315" src="//www.youtube.com/embed/BKorP55Aqvg" frameborder="0" allowfullscreen></iframe>
这是错误/谷歌偏好还是有解决办法?
最佳答案
我发现我只在 youtube iframe 上设置了 allowfullscreen,但您还需要在包含 youtube iframe 的 iframe 上使用它。
关于html - 通过 Chrome 中的 iframe 访问时,Youtube 插入的视频不显示全屏按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22840849/