标明:我在360和火狐中全屏requestFullscreen()事件不好使;

解释:我后来发现我的页面是在iframe框架中使用的并且没有设置allowfullscreen="true"属性;

解决方案:设置allowfullscreen="true"属性,就解决了。

<iframe src="video.html" frameborder="0" width="100%" height="100%" scrolling="no" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true"></iframe>

posted on 2017-12-27 16:14  刘世涛6192  阅读(9903)  评论(1)    收藏  举报