orientation

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

String
必須 いいえ

orientation メンバーは、ウェブサイトの最上位の閲覧コンテキストすべてについて、既定の向きを定義します。

メモ: ユーザーエージェントの表示モードによっては、 orientation やその中の特定の値に対応していないことがあります。これらに対応することが、特定のコンテキストでは意味がないからです。

メモ: 実行時に画面の向きを変更するには、 Screen Orientation API を利用して実現することができます。

orientation は以下の値の内の一つを取ることができます。

  • any
  • natural
  • landscape
  • landscape-primary
  • landscape-secondary
  • portrait
  • portrait-primary
  • portrait-secondary

json
"orientation": "portrait-primary"

仕様書

Specification
Web Application Manifest
# orientation-member

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
orientation

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support