CSS修改滚动条样式

<div class="qq_bottom">
超出部分变滚动条
</div>

/*//滚动条整体部分*/
.qq_bottom::-webkit-scrollbar {
    width:5px;
    height:10px;
}
/*//scroll轨道背景*/
.qq_bottom::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: #dbdbdb;
}
/*滚动条中的滑块*/
.qq_bottom::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: #b5b1b1;
}
/*滚动条上下两端可以进行微调的按钮*/
/*滚动条整体宽度太小会不明显*/
.qq_bottom::-webkit-scrollbar-button {
    width:5px;
    height:5px;
    background-color:red;
}
 

 
原文地址:https://www.cnblogs.com/xinchenhui/p/8443190.html