为 Chrome 创建 Web 应用程序清单时,您可以将
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 /基础知识/应用程序安装横幅/
browser
显示选项就像将该字段留空一样。