apple-mobile-web-app-status-bar-style in ios 10 [英] apple-mobile-web-app-status-bar-style in ios 10

查看:134
本文介绍了apple-mobile-web-app-status-bar-style in ios 10的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这个问题以前已经被问过,只是想知道这是否仍然是在ios 10(和ios 9)中的情况... ...



根据针对网络应用的苹果开发者指南(





content =black








content =black-translucent


blockquote>


I know this question has been asked previously, just want to know if this is still the case in ios 10 (and ios 9)...

According to the apple developer guidelines for web apps (found here), there are 3 choices for the status bar in a web app; default, black and black-translucent.

  1. Default results in a white status bar with black text,
  2. Black results in a black status bar with white text, and
  3. Black-translucent results in a transparent background with white text. Additionally, this status bar floats above your content, meaning you have to push your content down 20px in order to not have the content overlap with thte status bar text.

I'd really like to use the black-translucent status bar (as I think it looks more native), but the background of my page is a light grey. This makes the white text on this status bar very hard to read.

Put simply, I'd just like a transparent background with black text (essentially, default-translucent). Is this possible?

解决方案

Unfortunately, No you cannot have black text on a transparent background.

I'm of the opinion that this will be added to the schema at some point and also find it a pain that you can't achieve this example right now. I guess in short the answer is design your faux app natively to achieve greater control of its behaviour and appearance.

Apple Documentation Supported Meta Tags


content="default"


content="black"


content="black-translucent"

这篇关于apple-mobile-web-app-status-bar-style in ios 10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆