1. 面向开发者的 Web 技术
  2. Web API
  3. Window
  4. Window:visualViewport 属性

此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in English Always switch to English

Window:visualViewport 属性

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨2021年8月⁩.

Window 接口的 visualViewport 只读属性返回一个 VisualViewport 对象,表示给定窗口的可视视口。如果当前文档未完全激活,则返回 null

VisualViewport 对象。

规范

Specification
CSSOM View Module
# dom-window-visualviewport

浏览器兼容性

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.

AltStyle によって変換されたページ (->オリジナル) /