/*定义滚动条宽高及背景,宽高分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar {
/* width: 1px;
height: 1px; */
display: none;
background-color: #f5f5f5;
}
/*定义滚动条的轨道,内阴影及圆角*/
::-webkit-scrollbar-track {
border-radius: 8px;
background-color: #f5f5f5;
}
/*定义滑块,内阴影及圆角*/
::-webkit-scrollbar-thumb {
/* width: 1px;
height: 1px; */
display: none;
border-radius: 8px;
background-color: #d2d3d4;
}
* {
scrollbar-width: thin !important;
scrollbar-color: #f5f5f5;
}
Globally introduce the scroll bar style
Guess you like
Origin blog.csdn.net/weixin_43400431/article/details/126159123
Ranking