uniapp自定义导航栏被手机状态栏覆盖了

在页面最顶部加上这个,就能隔断顶部手机状态栏。

<view class="status_bar" style="height: var(--status-bar-height); width: 100%;">
		</view>

或者在js里面
安卓机

	top:uni.getSystemInfoSync().statusBarHeight+44 

你可能感兴趣的:(uni-app)