Iphone Web App is under Status Bar

元气小坏坏 提交于 2019-12-11 18:56:31

问题


Hi I have a problem with iPhone web app. The problem is that the website is moves under the statusbar when I add the app to to the home screen.

So for example my header block is not fully shown.

<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" />

Here is the image showing the problem.


回答1:


Try to change:

<meta name="apple-mobile-web-app-status-bar-style" content="default" />

into:

<meta name="apple-mobile-web-app-status-bar-style" content="black" />

I had the same problem where this was set to black-translucent and setting it to black removed the problem.



来源:https://stackoverflow.com/questions/12198040/iphone-web-app-is-under-status-bar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!