Chrome 网络应用程序清单:显示类型之间的差异
Chrome web app manifest: differences between display types
为 Chrome 创建网络应用程序清单时,您可以将 display
指定为 fullscreen
、standalone
、minimal-ui
或 browser
fullscreen
和 standalone
有什么区别,什么时候应该使用哪个?他们看起来和我很像。
当您使用 standalone
时,它看起来像本机应用程序。当您使用 fullscreen
时,没有状态栏等。您可能想使用 standalone
,因为 fullscreen
有非常具体的用例(例如游戏)。
根据 https://developer.mozilla.org/en-US/docs/Web/Manifest/display.
,显示的有效选项为 fullscreen
、standalone
、minimal-ui
和 browser
为了显示添加到主屏幕提示,显示必须设置为以下之一:fullscreen
、standalone
或minimal-ui
,参见 https://developers.google.com/web/fundamentals/app-install-banners/
browser
显示选项就像将字段留空。
为 Chrome 创建网络应用程序清单时,您可以将 display
指定为 fullscreen
、standalone
、minimal-ui
或 browser
fullscreen
和 standalone
有什么区别,什么时候应该使用哪个?他们看起来和我很像。
当您使用 standalone
时,它看起来像本机应用程序。当您使用 fullscreen
时,没有状态栏等。您可能想使用 standalone
,因为 fullscreen
有非常具体的用例(例如游戏)。
根据 https://developer.mozilla.org/en-US/docs/Web/Manifest/display.
,显示的有效选项为fullscreen
、standalone
、minimal-ui
和 browser
为了显示添加到主屏幕提示,显示必须设置为以下之一:fullscreen
、standalone
或minimal-ui
,参见 https://developers.google.com/web/fundamentals/app-install-banners/
browser
显示选项就像将字段留空。