CSS修改滚动条颜色样式(右边滚动条、底部滚动条、div内滚动条)

如下

COPY
1
2
3
4
5
6
7
8
9
10
/* 滚动条宽度 */
::-webkit-scrollbar{width:1px;}
/* 滚动条轨道颜色 */
::-webkit-scrollbar-track{background-color: #000;}
/* 滚动条颜色 */
::-webkit-scrollbar-thumb{background-color: #000;}
/* 鼠标移动到滚动条上后显示的颜色 */
::-webkit-scrollbar-thumb:hover {background-color: #000}
/* 点击时滚动条的颜色 */
::-webkit-scrollbar-thumb:active {background-color: #000}

【Lete乐特个人博客】:https://lete114.now.sh

Authorship: Lete乐特
Article Link: https://blog.imlete.cn/article/a5ef8356.html
Copyright: All posts on this blog are licensed under the CC BY-NC-SA 4.0 license unless otherwise stated. Please cite Lete乐特 's Blog !