win11下使用微信开发者工具1.02,调试基础库为2.16.0,为什么view标签会顶着屏幕正上方显示?把通知栏都盖住了
<view class="container1">
<view>A</view>
<view>B</view>
<view>C</view>
</view>
.container1 view{
width: 100px;
height: 100px;
text-align: center;
line-height: 100px;
}
.container1 view:nth-child(1){
background-color: lightgreen;
}
.container1 view:nth-child(2){
background-color: lightskyblue;
}
.container1 view:nth-child(3){
background-color: lightpink;
}
.container1 {
display: flex;
justify-content: space-around;
}
看下 app.json 文件里面的有没有 "renderer": "skyline" 或者是 navigationStyle:'custom' ?
如果有可以删掉后再试试。
全局配置文档:https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html#window
页面配置文档:https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/page.html
// 如在 app.json 里面配置下
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "Weixin",
"navigationBarTextStyle": "black"
}