开发者

Safari Mobile full screen

开发者 https://www.devze.com 2023-03-08 10:56 出处:网络
I\'m trying to set the full screen mode on my iPhone Web App, I have read the Apple\'s documentation on apple-mobile-web-app-capable meta tag, but it doesn\'t work, can you help m开发者_运维技巧e? Tha

I'm trying to set the full screen mode on my iPhone Web App, I have read the Apple's documentation on apple-mobile-web-app-capable meta tag, but it doesn't work, can you help m开发者_运维技巧e? Thanks


<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">

Make sure you do what Bala Clark mentioned

Its worth mentioning that these tags only work when the app is saved the home screen and launched from there


You can also add a javascript function :

<body onload="setTimeout(function() { window.scrollTo(0, 1) }, 100);">
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号