::-webkit-scrollbar{
background-color: transparent !important;
width: 4px;
}
::-webkit-scrollbar-track{
background: transparent !important;
border-radius: 2px;
}
::-webkit-scrollbar-thumb{
background: #bfbfbf;
border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover{
background: #333;
}
::-webkit-scrollbar-corner {
background: #EFEFEF;
}
原文:https://www.cnblogs.com/zhongfang/p/14865521.html