::-webkit-scrollbar-button — 滚动条上的按钮 (上下箭头).一设置,滚动条两端的按钮图标就消失,但可以重新设置图片、新样式.
::-webkit-scrollbar-thumb — 滚动条上的滚动滑块.
::-webkit-scrollbar-thumb:hover — 滑块悬浮.
::-webkit-scrollbar-thumb:vertical:hover — 纵向滑块悬浮.
::-webkit-scrollbar-thumb:horizontal:hover — 横向滑块悬浮.
::-webkit-scrollbar-track — 滚动条轨道.外层轨道.
::-webkit-scrollbar-track-piece — 滚动条没有滑块的轨道部分.内层轨道,它会覆盖外层轨道 scrollbar-track 的样式.
::-webkit-scrollbar-corner — 当同时有垂直滚动条和水平滚动条时交汇的部分.
::-webkit-resizer — 某些元素的corner部分的部分样式(例:textarea的可拖动按钮).
::-webkit-scrollbar {
width: 10px; // y轴滚动条宽度
height: 10px; // x轴滚动条宽度
border-radius: 10px;
background-color: #F5F5F5;
}
::-webkit-scrollbar-thumb {
border-radius: 10px;
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
border-radius: 10px;
background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0.44,rgb(60,186,146)),color-stop(0.72,rgb(253,187,45)),color-stop(0.86,rgb(253,187,45)));
transition: 0.3s ease-in-out;
}
::-webkit-scrollbar-track {
border-radius: 10px;
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
background-color: #F5F5F5;
}