解決uniapp頂部導(dǎo)航欄被遮住顯示問題
uniapp官方給了處理的方案,即css變量,–status-bar-height,小程序這個值是25px,app則根據(jù)實際情況去變化
如下:
//頭部導(dǎo)航欄
<view class="header">
</view>
.header{
//距離頂部 --status-bar-height 自動調(diào)整
margin-top:var(--status-bar-height);
}
如何去掉要去掉默認(rèn)的導(dǎo)航欄,即設(shè)置navigationStyle為custom
單個設(shè)置去掉導(dǎo)航欄
統(tǒng)一去掉導(dǎo)航欄文章來源:http://www.zghlxwxcb.cn/news/detail-511373.html
文章來源地址http://www.zghlxwxcb.cn/news/detail-511373.html
到了這里,關(guān)于uniapp頂部導(dǎo)航欄被遮住顯示問題的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!