https://blog.csdn.net/weixin_42532454/article/details/89882568
浏览器是否支持全屏
console.log(document.fullscreenEnabled)
如果不支持全屏看下是不是iframe嵌套引起来的
解释:我后来发现我的页面是在iframe框架中使用的并且没有设置allowfullscreen="true"属性;
解决方案:设置allowfullscreen="true"属性,就解决了。
https://blog.csdn.net/weixin_42532454/article/details/89882568
浏览器是否支持全屏
console.log(document.fullscreenEnabled)
如果不支持全屏看下是不是iframe嵌套引起来的
解释:我后来发现我的页面是在iframe框架中使用的并且没有设置allowfullscreen="true"属性;
解决方案:设置allowfullscreen="true"属性,就解决了。