orientation
| 型 | String |
|---|---|
| 必須 | いいえ |
orientation メンバーは、ウェブサイトの最上位の閲覧コンテキストすべてについて、既定の向きを定義します。
メモ: ユーザーエージェントの表示モードによっては、 orientation やその中の特定の値に対応していないことがあります。これらに対応することが、特定のコンテキストでは意味がないからです。
メモ: 実行時に画面の向きを変更するには、 Screen Orientation API を利用して実現することができます。
値
orientation は以下の値の内の一つを取ることができます。
anynaturallandscapelandscape-primarylandscape-secondaryportraitportrait-primaryportrait-secondary
例
json
"orientation": "portrait-primary"
仕様書
| Specification |
|---|
| Web Application Manifest # orientation-member |
ブラウザーの互換性
BCD tables only load in the browser