css:
.modePage {
width: 100vw;
height: 100vh;
background-color: #000;
}
html:
<view class="modePage">
...
</view>
在手机上测试的时候页面可以上滑且出现一条白色的线条
想要的效果:
实际效果:
解决方法:
给页面添加`position: fixed`
.modePage {
position: fixed;
width: 100vw;
height: 100vh;
background-color: #000;
}