
问 题
I noticed that if you go on google chat, and "add to home screen", once you open it from home screen, the browser disappears and all you see is the website itself... I'm wondering how google managed to do that? this is for a website I am making that is supposedly compatible for the iPad.

解决方案
Add the following meta tag to the page's header:

<meta name="apple-mobile-web-app-capable" content="yes">
The window.navigator.standalone boolean JavaScript property will indicate whether the page is currently displayed in full-screen mode (it will only be displayed full-screen if launched from a home screen icon, not if visited from within Safari).

本文地址:IT屋 制作iPad网站,添加到主屏幕后删除浏览器?
问 题

我注意到如果你再次进行谷歌聊天,并且添加到主屏幕,一旦你从主屏幕打开它添加主屏幕后无法删除,浏览器就会消失添加主屏幕后无法删除,所有你看见的就是网站本来...我想知道google是怎样管理的应做到这一点?这是我正在制作的网站,据称与iPad兼容。
解决方案
将下面元标记添加至页面标题:
< meta name =apple-mobile-web-app-capablecontent = 是 >
window.navigator.standalone boolean JavaScript属性将指示页面当前是否以全屏方式显示(如果从主屏幕界面启动,则仅显示全屏,而不是从Safari中访问)。
本文地址:IT屋 制作iPad网站,添加到主屏幕后删除浏览器?
本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/sanxing/article-144238-1.html
必须小心~
我也想得奖啊