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

View in English Always switch to English

ScreenOrientation:type 属性

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2023年3月.

ScreenOrientation 接口的 type 只读属性返回文档当前的方向类型,取值可以是 portrait-primaryportrait-secondarylandscape-primarylandscape-secondary 之一。