Home >Web Front-end >CSS Tutorial >How to modify scroll bar style
This time I will bring you the method of modifying the scroll bar style. What are the precautions for modifying the scroll bar style. The following is a practical case, let's take a look.
Supports 360 extremely fast chrome firfox but does not support ie9
/*滚动条样式*/::-webkit-scrollbar {/*滚动条整体样式*/ width: 6px!important;; /*高宽分别对应横竖滚动条的尺寸*/ height: 6px!important;; background: #ffffff!important;; cursor: pointer!important; } ::-webkit-scrollbar-thumb {/*滚动条里面小方块*/ border-radius: 5px!important; -webkit-box-shadow: inset 0 0 5px rgba(240,240,240,.5)!important;; background: rgba(95,168,255,0.8)!important;; cursor: pointer!important; } ::-webkit-scrollbar-track {/*滚动条里面轨道*/ -webkit-box-shadow: inset 0 0 5px rgba(240,240,240,.5)!important;; border-radius: 0!important;; background: rgba(240,240,240,0.5)!important;; cursor: pointer!important; }
I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to the php Chinese website Other related articles!
Related reading:
table tr th and table tr td have too many fonts, how to use CSS to solve it
WOW.js that makes the page move
How to set the 360 speed mode to open by default
The above is the detailed content of How to modify scroll bar style. For more information, please follow other related articles on the PHP Chinese website!