
2***@qq.com
- 发布:2023-12-01 17:14
- 更新:2023-12-01 21:04
- 阅读:159

喜欢技术的前端 - QQ---445849201
去掉原生标题栏,就会到顶部,设置一个内边距
data() {
return {
statusBarHeight:uni.getSystemInfoSync().statusBarHeight,
}
},
<template>
<view :style="{paddingTop:statusBarHeight+'px'}">
</view>
</template>
2***@qq.com (作者)
在哪个文件里面
2023-12-01 21:55
喜欢技术的前端
回复 2***@qq.com: 你的tabbar页面可能都需要
2023-12-01 21:56