.list{ //父容器
height: 5.2rem;
overflow-y: auto;
overflow-x: hidden;
&::-webkit-scrollbar {
width: 0;
height: 2px;
border-radius: 5px;
background-color: rgba(3,34,189,.85);
}
/*滚动条里面小方块*/
&::-webkit-scrollbar-thumb {
border-radius: 5px;
-webkit-box-shadow: inset 0 0 5px #010a1d;
background: #010a1d;
}
/*滚动条里面轨道*/
&::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 5px #010a1d;
border-radius: 0;
background: rgba(0, 0, 0, 0.1);
}
}
01-12
668
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)