Chrome浏览器中的全屏Iframe无法正常工作?

8
我正在将Slideshare集成到我的网站中。幻灯片演示在小窗口中显示得很好。但是问题是在Chrome中全屏演示没有显示(网站滑块本身在全屏模式下显示)。在Mozilla中它工作正常。只有Chrome存在问题。 网站链接:http://test.kiadb.in/ 使用iframe的位置位于“Next to Invest Karnataka”图像旁边,请参考图像enter image description here
This code I have used for Iframe <iframe src="http://www.slideshare.net/slideshow/embed_code/56692337" frameborder="2" allowfullscreen="allowfullscreen"></iframe>

提前感谢您。

5个回答

16

试试这个方法

<iframe src="http://yourpage.com" frameborder="0" allowFullScreen="true" webkitallowfullscreen="true" mozallowfullscreen="true"></iframe>

2
请尝试使用这个 iframe。
<iframe src="http://www.slideshare.net/slideshow/embed_code/56692337" frameborder="2" allowfullscreen></iframe>

我认为这对你有用。


0

确保您的Iframe未嵌入到另一个iframe嵌入代码中。如果是这种情况,父iFrame也必须具有allowfullscreen ="true"参数。


0

控制台出现了一个错误
只是尝试解决一下

错误图片

然后尝试这个 iframe

<iframe src="http://www.slideshare.net/slideshow/embed_code/56692337" frameborder="2" allowfullscreen="allowfullscreen" webkitallowfullscreen mozallowfullscreen oallowfullscreen msallowfullscreen></iframe>

-1

试试这个

allow="autoplay; encrypted-media" allowfullscreen="allowfullscreen" mozallowfullscreen="mozallowfullscreen" msallowfullscreen="msallowfullscreen" oallowfullscreen="oallowfullscreen" webkitallowfullscreen="webkitallowfullscreen" frameborder="0"

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接