代码:
<view class="status_bar" style="height: var(--status-bar-height);width: 100%;background-color: rgb(248, 248, 248);"></view> ---这个解决了自定义导航运行在真机上被覆盖
<uni-nav-bar class="custom_navbar" backgroundColor="rgb(248, 248, 248)" :border="false" :fixed="true">
<view class="nav_title">首页</view>
<block slot="right">
<view >
<image src="/static/images/others/map.png" style="width: 20px;height: 22px;margin-right: 5px;"></image>
</view>
</block>
</uni-nav-bar>
目前内容不滚动的时候不会出现顶部有空白的情况,只要滚动就会出现附件如图情况