.tag-box {
overflow: scroll;
height: 600px;
}
.tag-box::-webkit-scrollbar
{
width: 8px; height: 1px;
}
.tag-box::-webkit-scrollbar-thumb
{
border-radius: 10px; background: #9e9e9e; box-shadow: inset 0 0 5px rgb(95, 180, 236);
}
.tag-box::-webkit-scrollbar-track
{
border-radius: 10px; background: #ededed;
box-shadow: inset 0 0 5px rgba(125, 193, 238, 0.1);
}
自定义了滑动条样式
效果: