最佳答案
我这找了两个鸿蒙3.0 的测试没问题。
title
#header{
height: 40px;
text-align: center;
line-height: 40px;
background-color: blue;
color: #fff;
}
.title {
font-size: 16px;
}
工作台
apiready = function () {
$api.fixStatusBar($api.byId('header'))
};