-
--status-bar-height是 uni-app 跨端注入的系统变量 -
自动适配:
-
刘海屏
-
全面屏
-
iOS / Android
-
不同状态栏高度
-
①pages.json里面配置
-
"pages": [
{
"path": "index/index",
"style": {
"navigationBarTitleText": "媒体库",//顶部居中的标题
"navigationStyle": "custom",//不要顶部的标签名字
"navigationBarBackgroundColor": "#1E2229"//顶部背景色
}
},
不遮挡了在page样式里面加上 padding-top: var(--status-bar-height);
.page { padding-top: var(--status-bar-height); box-sizing: border-box; background-color: #101319; height: 100vh; display: flex; flex-direction: column; -
移动端 刘海平上面顶部遮挡 解决
CDwenhuohuo2025-12-26 9:10
相关推荐
摘星编程几秒前
React Native for OpenHarmony 实战:Alert 警告提示详解Joe5564 分钟前
vue2 + antDesign 下拉框限制只能选择2个WHS-_-202217 分钟前
Tx and Rx IQ Imbalance Compensation for JCAS in 5G NR摘星编程17 分钟前
React Native for OpenHarmony 实战:GestureResponderSystem 手势系统详解lili-felicity19 分钟前
React Native for OpenHarmony 实战:加载效果的实现详解济6171 小时前
linux 系统移植(第六期)--Uboot移植(5)--bootcmd 和 bootargs 环境变量-- Ubuntu20.04lili-felicity1 小时前
React Native for OpenHarmony 实战:Easing 动画完全指南持续前行1 小时前
vscode 中找settings.json 配置JosieBook2 小时前
【Vue】11 Vue技术——Vue 中的事件处理详解韩曙亮2 小时前
【jQuery】jQuery 简介 ( JavaScript 库简介 | jQuery 核心概念、特点 | jQuery 下载并使用 )