::-webkit-scrollbar {
display: none;
width: 0;
height: 0;
color: transparent;
}
::-ms-scrollbar {
display: none;
width: 0;
height: 0;
color: transparent;
}
::-moz-scrollbar {
display: none;
width: 0;
height: 0;
color: transparent;
}
小程序中页面有下滑的功能时需要在json文件中配置属性:"disableScroll": true, 来保证ios端禁止上下滑动。
{
"disableScroll": true,
}