天天看点

IOS设置状态栏的背景颜色

下面介绍一下如何设置IOS状态栏背景的颜色。

置状态栏的背景颜色,只有在 "apple-mobile-web-app-capable" content="yes" 时生效。

代码实例如下:

<code>&lt;</code><code>meta</code> <code>name</code><code>=</code><code>"apple-mobile-web-app-status-bar-style"</code> <code>content</code><code>=</code><code>"black-translucent"</code> <code>/&gt;</code>

参数解析:

(1).default:状态栏背景是白色。

(2).black:状态栏背景是黑色。

(3).black-translucent:状态栏背景是半透明。 如果设置为 default 或 black ,网页内容从状态栏底部开始。 如果设置为 black-translucent ,网页内容充满整个屏幕,顶部会被状态栏遮挡。

原文发布时间为:2017-2-19

本文作者:admin

本文来自云栖社区合作伙伴“蚂蚁部落”,了解相关信息可以关注蚂蚁部落

上一篇: linux杀进程