FullscreenOptions

当调用requestFullscreen() 元素以将该元素置于全屏模式时,使用 FullscreenOptions 字典提供配置选项。

属性

navigationUI可选
在元素处于全屏模式时,控制是否保持浏览器用户界面元素可见的字符串。默认的“auto”让浏览器做出这个决定。

浏览器兼容性

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
FullscreenOptionsChrome Full support 71Edge No support NoFirefox Full support 64IE No support NoOpera ? Safari ? WebView Android Full support 71Chrome Android Full support 71Firefox Android Full support 64Opera Android ? Safari iOS ? Samsung Internet Android ?
navigationUIChrome Full support 71Edge No support NoFirefox Full support 64IE No support NoOpera ? Safari ? WebView Android Full support 71Chrome Android Full support 71Firefox Android Full support 64Opera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown

另请参阅