参考文章:https://blog.csdn.net/qq_43235503/article/details/130924246
// 滑块样式
::-webkit-scrollbar{
width: 5px;
height: 5px;
}
//定义滑块 内阴影+圆角
::-webkit-scrollbar-thumb{
border-radius: 1em;
background-color: rgba(50,50,50,.3);
}
// 轨道
::-webkit-scrollbar-track{
border-radius: 1em;
background-color: rgba(50,50,50,.1);
}