iframe Allowfullscreen not working in ie11 , works for youtube video not for other site src

梦想与她 提交于 2019-12-24 15:51:59

问题


Here are two lines of HTML code:

My website url (doesn’t work in IE)

<iframe style="box-shadow: 10px 10px 5px #888888; margin: 20px; float: right;" mce_style="box-shadow: 10px 10px 5px #888888; margin: 20px; float: right;" src="http://www.youtube.com/embed/xDMP3i36naA" mce_src="http://www.youtube.com/embed/xDMP3i36naA" scrolling="no" frameborder="0" height="230" width="400" allowfullscreen></iframe>

YouTube (does work in IE)

<iframe style="box-shadow: 10px 10px 5px #888888; margin: 20px; float: right;" mce_style="box-shadow: 10px 10px 5px #888888; margin: 20px; float: right;" src="http://zenarate.com/index.php?r=site/embeddVideos&amp;id=NzIxOA%3D%3D" mce_src="http://zenarate.com/index.php?r=site/embeddVideos&amp;id=NzIxOA%3D%3D" scrolling="no" frameborder="0" height="230" width="400" allowfullscreen></iframe>

The YouTube video link works fine but the Mysite video link will not go to full screen in Internet Explorer 11 (although both work fine in FireFox and Chrome).

How can I resolve this.

Thanks in advance.


回答1:


Ie11 doesnt allow us to use allowfullscreen. I used flash player for it.



来源:https://stackoverflow.com/questions/35148124/iframe-allowfullscreen-not-working-in-ie11-works-for-youtube-video-not-for-oth

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!