本文主要讲述了:
- 什么是document.fullscreenEnabled
- 作用
- 兼容性
正文
什么是document.fullscreenEnabled
document.fullscreenEnabled
是document
的属性。
作用
是否支持全屏模式。
兼容性
- IE 11+ 使用
document.msFullscreenEnabled大专栏 JavaScript中的document.fullscreenEnabledde>
- Edge 使用
document.webkitFullscreenEnabled
- Firefox 低版本使用
document.mozFullScreenEnabled
(注意Screen中S的大小写) - Chrome 低版本使用
document.webkitFullscreenEnabled
参考资料