unit1 # { width : 100% ; overflow : hidden ; } # unit1 :: - WebKit-ScrollBar { / * scroll overall pattern * / width : 5px ; / * Aspect corresponding vertical scroll bar size * / height : 5px ; } # unit1 :: - WebKit-Thumb-scrollBar { / * scroll inside the small box * / border-RADIUS : 10px ; -webkit-box-Shadow : the inset from 0 0 5px RGBA (0,0,0,0.2) ; background :535 353 # ; } # unit1 :: - WebKit-Track-ScrollBar { / * scroll inside track * / -webkit-Box-Shadow : the inset from 0 0 5px RGBA (0,0,0,0.2) ; border-RADIUS : 10px ; background : #EDEDED ; }
Reference link: https: //www.cnblogs.com/yclblog/p/6806496.html