制作iPad网站,添加到主屏幕后删除浏览器?

电脑杂谈  发布时间:2020-03-15 14:01:20  来源:网络整理

手机chrome添加主屏幕_添加主屏幕后无法删除_电脑删除sangfor后无法上网

问 题

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.

电脑删除sangfor后无法上网_手机chrome添加主屏幕_添加主屏幕后无法删除

解决方案

Add the following meta tag to the page's header:

手机chrome添加主屏幕_电脑删除sangfor后无法上网_添加主屏幕后无法删除

<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).

添加主屏幕后无法删除_手机chrome添加主屏幕_电脑删除sangfor后无法上网

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

问 题

手机chrome添加主屏幕_电脑删除sangfor后无法上网_添加主屏幕后无法删除

我注意到如果你再次进行谷歌聊天,并且添加到主屏幕,一旦你从主屏幕打开它添加主屏幕后无法删除,浏览器就会消失添加主屏幕后无法删除,所有你看见的就是网站本来...我想知道google是怎样管理的应做到这一点?这是我正在制作的网站,据称与iPad兼容。

解决方案

将下面元标记添加至页面标题:

 < meta name =apple-mobile-web-app-capablecontent = 是 &GT; 

window.navigator.standalone boolean JavaScript属性将指示页面当前是否以全屏方式显示(如果从主屏幕界面启动,则仅显示全屏,而不是从Safari中访问)。

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


本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/sanxing/article-144238-1.html

    相关阅读
      发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

      热点图片
      拼命载入中...