ScreenOrientation: type property

Baseline 已廣泛支援

此功能已成熟,並可在許多裝置和瀏覽器版本上執行。自 2023 年 3 月以來,它已在各種瀏覽器中可用。

typeScreenOrientation 介面的一個只讀屬性,它返回文件當前的螢幕方向型別,具體值為 portrait-primaryportrait-secondarylandscape-primarylandscape-secondary 之一。

一個 String

規範

規範
螢幕方向
# dom-screenorientation-type

瀏覽器相容性