windows.WindowState

您正在阅读此内容的英文版本,因为该语系尚未翻译。 帮助我们翻译此文章吧!

浏览器窗口的状态。

类型

类型的值是字符串类型。 可能的值如下:

  • "normal"
  • "minimized"
  • "maximized"
  • "fullscreen"
  • "docked"

浏览器适配

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxOperaFirefox for Android
WindowStateChrome Full support YesEdge Full support 14Firefox Full support 45Opera Full support YesFirefox Android No support No
docked
DeprecatedNon-standard
Chrome Full support YesEdge No support NoFirefox No support NoOpera Full support YesFirefox Android No support No
fullscreenChrome Full support YesEdge No support NoFirefox Full support 45Opera Full support YesFirefox Android No support No
maximizedChrome Full support YesEdge No support NoFirefox Full support 45Opera Full support YesFirefox Android No support No
minimizedChrome Full support YesEdge No support NoFirefox Full support 45Opera Full support YesFirefox Android No support No

Legend

Full support  
Full support
No support  
No support
Non-standard. Expect poor cross-browser support.
Non-standard. Expect poor cross-browser support.
Deprecated. Not for use in new websites.
Deprecated. Not for use in new websites.
致谢

此API基于谷歌浏览器 chrome.windows API。此文档源于谷歌源码 windows.json .

微软Edge浏览器兼容性数据由微软公司提供,并包含在美国Creative Commons Attribution 3.0许可证下。