Document:FullScreenElement 属性
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Document.fullscreenElement
只读属性返回当前页面中以全屏模式呈现的 Element
,如果当前页面未使用全屏模式,则返回 null
。
尽管这个属性是只读的,但如果修改它,即使在严格模式下也不会抛出错误;它的 setter
方法是空操作将被忽略。
值
返回当前处于全屏模式的 Element
对象;如果当前页面未使用全屏模式,则返回 null
。
示例
规范
Specification |
---|
Fullscreen API # ref-for-dom-document-fullscreenelement① |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
fullscreenElement |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Partial support
- Partial support
- Uses a non-standard name.
- Requires a vendor prefix or different name for use.
- Has more compatibility info.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.