Date: 2021-08-04 17:29:45, Hit: 257
.div::-webkit-scrollbar {/*滚动条整体样式*/
    	width: 5px;     /*高宽分别对应横竖滚动条的尺寸*/
    	height: 0px;
		}
.div::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
	border-radius: 10px;
	background-color: #999;
	background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);
}
.div::-webkit-scrollbar-track {/*滚动条里面轨道*/
	-webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
	/*border-radius: 10px;*/
	background: #EDEDED;
}
<div>
	<div class="scrollbar"></div>
</div>
Edit Delete
License by Moony