本文介绍了Javascript:webkitIsFullScreen属性IE等效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据文档,Internet Explorer不支持 webkitIsFullScreen 或类似 mozFullScreen 属性。如果浏览器处于全屏模式,我需要阅读。有什么方法可以在IE上以某种方式获取它吗?
谢谢!

According to this documentation, Internet Explorer does not support something like webkitIsFullScreen or like mozFullScreen property. I need to read if browser is in full screen mode. Is there any way to get it on IE somehow?THANKS!

推荐答案

使用IE11,等效检查将是:

Using IE11, an equivalent check would be:

document.msFullscreenElement !== null

披露:我是参与Microsoft实施Fullscreen API的团队。

Disclosure: I am on the team that worked on Microsoft's implementation of the Fullscreen API.

这篇关于Javascript:webkitIsFullScreen属性IE等效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-18 20:56