Globally beautify the scroll bar style
*/ *::-webkit-scrollbar-track-piece {background-color:#f8f8f8; -webkit-border-radius: 2em; -moz-border-radius: 2em; border-radius: 2em; } /* Scrollbar width */ *::-webkit-scrollbar {width:9px; Background-color :# DDDDDD; background-color:# DDDDDD; background-color:# DDDDDD; background-clip:padding-box; -webkit-border-radius: 2em; -moz-border-radius: 2em; border-radius: 2em; Hover {background-color:# BBB; background-color:# BBB; background-color:# BBB; }Copy the code
The effect