自定义滚动条支持webkit内核的浏览器,移动端
::-webkit-scrollbar 滚动条整体
::-webkit-scrollbar {
width: 3px;
height: 10px;
background-color: #F5F5F5;
}
::-webkit-scrollbar-thumb 定义滑块样式
::-webkit-scrollbar-thumb{
border-radius: 5px;
background-color: rgba(0,0,0,.2);
}
::-webkit-scrollbar-track 滚动轨道的样式
::-webkit-scrollbar-track{
border-radius: 5px;
background-color: #F5F5F5;
}