/* 滚动条的样式 */
div::-webkit-scrollbar {
width: 6px;
height: 16px;
background-color: transparent;
border-radius: 10px;
}
/*滚动条轨道*/
div::-webkit-scrollbar-track {
box-shadow: inset 0 0 5px transparent;
border-radius: 10px;
background: transparent;
}
/*滑块*/
div::-webkit-scrollbar-thumb {
border-radius: 10px;
background: #909090;
}
前面加div名,不加会给页面所有滚动条设置同一个样式