方向
| 型別 | 字串 |
|---|
orientation 成員定義了網站所有頂級瀏覽上下文的預設方向。
注意:由於支援這些值在特定上下文中沒有意義,因此使用者代理在各種顯示模式下可能不支援orientation 或其特定值。
注意:可以透過螢幕方向 API在執行時更改方向。
值
orientation 可以取以下值之一
anynaturallandscapelandscape-primarylandscape-secondaryportraitportrait-primaryportrait-secondary
示例
json
"orientation": "portrait-primary"
規範
| 規範 |
|---|
| Web 應用清單 # orientation-member |
瀏覽器相容性
BCD 表格僅在啟用 JavaScript 的瀏覽器中載入。