orientation - Web app manifests 编辑
Type | String |
---|---|
Mandatory | No |
The orientation
member defines the default orientation for all the website's top-level browsing contexts.
Note: orientation
and/or its specific values might not be supported by a user agent on various display modes because supporting them does not make sense for the particular context.
Note: The orientation can be changed at runtime via the Screen Orientation API.
Values
orientation
can take one of the following values:
any
natural
landscape
landscape-primary
landscape-secondary
portrait
portrait-primary
portrait-secondary
Examples
"orientation": "portrait-primary"
Specifications
Specification | Status | Comment | Feedback |
---|---|---|---|
Web App Manifest | Working Draft | Initial definition. |
Browser compatibility
BCD tables only load in the browser
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论