Heim >Web-Frontend >HTML-Tutorial >html中设置滚动条的样式_html/css_WEB-ITnose
一、效果图
二、css
::-webkit-srollbar-track-piece{background:none;-webkit-border-radius:0;}::-webkit-scrollbar{width:8px;height:8px;}::-webkit-scrollbar-thumb:vertical{height:50px;background-color:#bbbbbb;-webkit-border-radius:4px;outline:0px solid #ffffff;ouline-offset:-2px;border:2px solid #ffffff;}::-webkit-scrollbar-thumb:hover{height:50px;background-color:#999999;-webkit-border-radius:4px;}::-webkit-scrollbar-thumb:horizontal{width:50px;background-color:#bbbbbb;-webkit-border-radius:4px;outline:0px solid #ffffff;ouline-offset:-2px;border:2px solid #ffffff;}