display - Web app manifests 编辑

TypeString
MandatoryNo

The display member is a string that determines the developers’ preferred display mode for the website. The display mode changes how much of browser UI is shown to the user and can range from browser (when the full browser window is shown) to fullscreen (when the app is full-screened).

Note: If the display member is not specified, it defaults to browser.

Note: You can selectively apply CSS to your app based on the display mode, using the display-mode media feature. This can be used to provide a consistent user experience between launching a site from an URL and launching it from a desktop icon.

Values

The possible values are:

Display ModeDescriptionFallback Display Mode
fullscreenAll of the available display area is used and no user agent chrome is shown.standalone
standaloneThe application will look and feel like a standalone application. This can include the application having a different window, its own icon in the application launcher, etc. In this mode, the user agent will exclude UI elements for controlling navigation, but can include other UI elements such as a status bar.minimal-ui
minimal-uiThe application will look and feel like a standalone application, but will have a minimal set of UI elements for controlling navigation. The elements will vary by browser.browser
browserThe application opens in a conventional browser tab or new window, depending on the browser and platform. This is the default.(None)

Example

"display": "standalone"

Specifications

SpecificationStatusCommentFeedback

Web App Manifest
The definition of 'display' in that specification.

Working Draft

Initial definition.

Web App Manifest Working Group drafts

Browser compatibility

BCD tables only load in the browser

Note: Firefox version 47 supports only browser value of display; minimal-ui, standalone , and fullscreen were added in Firefox 57.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:148 次

字数:3804

最后编辑:7年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文