1、uniapp
在pages.json文件中加入disableScroll:true
"style": {
"disableScroll":true,
}
2、在页面最大盒子加入如下样式
.content{
position: fixed;
top: 0;
bottom: 0;
width: 100vw;
height: 100vh;
overflow-y: scroll;
&::-webkit-scrollbar{
display: none;
width: 0;
height: 0;
}
}