我已经尝试过很多东西来隐藏IOS设备中的滚动条,但它会不断重新出现。
::-webkit-scrollbar,
*::-webkit-scrollbar {
display: none;
}
我经常遇到这个解决方案,但它并没有解决我的问题。如果有人已经修好了,请告诉我。
答案 0 :(得分:1)
覆盖滚动内容,样式
.scroll-content {
overflow-y: hidden !important;
}
如果您尝试禁用离子列表滚动,则应尝试此
div.scroll-content {
bottom: 0px !important;
}
答案 1 :(得分:0)
您可以在app.scss
文件
.scroll-content{
overflow-y:hidden; // if you are trying to hide the vertical scroll
//overflow:hidden ; will hide both horizontal and vertical scroll
}
scrollbar-y="false" on the <ion-content>
让我知道你的结果