滚动条始终隐藏
::-webkit-scrollbar {
display: none;
width: 0;
height: 0;
color: transparent;
}
自定义滚动条样式
ios上设置了不起作用,目前安卓是可以实现的
::-webkit-scrollbar {
width: 5rpx;
height: 13rpx;
-webkit-border-radius: 5rpx;
-moz-border-radius: 5rpx;
border-radius: 5rpx;
}
::-webkit-scrollbar-thumb {
background-color: #c6a04d;
background-clip: padding-box;
-webkit-border-radius: 5rpx;
-moz-border-radius: 5rpx;
border-radius: 5rpx;
min-height: 28rpx;
}
::-webkit-scrollbar-thumb:hover {
background-color: #c6a04d;
-webkit-border-radius: 5rpx;
-moz-border-radius: 5rpx;
border-radius: 5rpx;
}