CSS3自定义滚动条式样
参考:
https://www.cnblogs.com/ranyonsue/p/9487599.html
https://www.jianshu.com/p/c2addb233acd
.box::-webkit-scrollbar{ width: 4px; height: 1px; } .box::-webkit-scrollbar-thumb{ border-radius: 4px; -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); background: #555; } .box::-webkit-scrollbar-track{ -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); border-radius: 4px; background: #eee; }