需要给scroll-view设置高度height; 和 scroll-y=”true”属性
1.
scroll-view ::-webkit-scrollbar {
//下面四个属性,选一个就可
display:none;
width: 0;
height: 0;
background-color: transparent;
}
2.
/deep/::-webkit-scrollbar {
display: none;
width: 0;
height: 0;
color: transparent;
background: transparent;
}
3.
/deep/.uni-scroll-view ::-webkit-scrollbar {
display: none;
width: 0;
height: 0;
color: transparent;
background: transparent;
}