::webkit-scrollbar{
设置滚动条宽高
}
::webkit-scrollbar-thum{
滚动条滑块,设置背景 边框
}
::webkit-scrollbar-track{
滚动条内轨道
}
滚动条悬停让滑块变宽,例如直接设置宽度并不行
::webkit-scrollbar-thum:hover{
width:12px;
}
解决方法:
::webkit-scrollbar-thum{
width:8px;
border:2px solid transparent;
background-clip:padding-box;
}
::webkit-scrollbar-thum:hover{
background-clip:border-box;
}