2023年6月20日发(作者:)
纯css实现漂亮的滚动条样式,X轴、Y轴;横向、纵向@[TOC](纯css 实现漂亮的滚动条样式–变化⾊)
.leaseRoomList { height: 490px; overflow-y: auto; margin: 5px 0 0 6px; overflow-x: hidden;}.test-1::-webkit-scrollbar { /*滚动条整体样式*/ width: 8px; /*⾼宽分别对应横竖滚动条的尺⼨*/ height: 1px;}.test-1::-webkit-scrollbar-thumb { /*滚动条⾥⾯⼩⽅块--纯⾊*/ /*border-radius: 10px; box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); background: rgba(23,161,230,1);*/ /*滚动条⾥⾯⼩⽅块--变化⾊*/ border-radius: 8px; background-color: skyblue; background-image: -webkit-linear-gradient( 45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%, transparent );}.test-1::-webkit-scrollbar-track { /*滚动条⾥⾯轨道*/ box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); border-radius: 10px; background: #ededed;}
.test-2::-webkit-scrollbar { /*滚动条整体样式*/ width: 1px; /*⾼宽分别对应横竖滚动条的尺⼨*/ height: 8px;}.test-2::-webkit-scrollbar-thumb { /*滚动条⾥⾯⼩⽅块*/ /*border-radius: 10px; box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); background: rgba(23,161,230,1);*/ /*滚动条⾥⾯⼩⽅块*/ border-radius: 8px; background: #1F76FF; /*background-color: skyblue;*/ /*background-image: -webkit-linear-gradient( 45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%, transparent );*/}.test-2::-webkit-scrollbar-track { /*滚动条⾥⾯轨道*/ box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); border-radius: 10px; background: #ededed;}
2023年6月20日发(作者:)
纯css实现漂亮的滚动条样式,X轴、Y轴;横向、纵向@[TOC](纯css 实现漂亮的滚动条样式–变化⾊)
.leaseRoomList { height: 490px; overflow-y: auto; margin: 5px 0 0 6px; overflow-x: hidden;}.test-1::-webkit-scrollbar { /*滚动条整体样式*/ width: 8px; /*⾼宽分别对应横竖滚动条的尺⼨*/ height: 1px;}.test-1::-webkit-scrollbar-thumb { /*滚动条⾥⾯⼩⽅块--纯⾊*/ /*border-radius: 10px; box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); background: rgba(23,161,230,1);*/ /*滚动条⾥⾯⼩⽅块--变化⾊*/ border-radius: 8px; background-color: skyblue; background-image: -webkit-linear-gradient( 45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%, transparent );}.test-1::-webkit-scrollbar-track { /*滚动条⾥⾯轨道*/ box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); border-radius: 10px; background: #ededed;}
.test-2::-webkit-scrollbar { /*滚动条整体样式*/ width: 1px; /*⾼宽分别对应横竖滚动条的尺⼨*/ height: 8px;}.test-2::-webkit-scrollbar-thumb { /*滚动条⾥⾯⼩⽅块*/ /*border-radius: 10px; box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); background: rgba(23,161,230,1);*/ /*滚动条⾥⾯⼩⽅块*/ border-radius: 8px; background: #1F76FF; /*background-color: skyblue;*/ /*background-image: -webkit-linear-gradient( 45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%, transparent );*/}.test-2::-webkit-scrollbar-track { /*滚动条⾥⾯轨道*/ box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); border-radius: 10px; background: #ededed;}
发布评论