参照:https://blog.csdn.net/hanshileiai/article/details/40398177
/* 整体,width:横向宽 height:竖向宽 */
::-webkit-scrollbar {
width: 16px;
height: 16px;
}
/* 滚动条的轨道(里面装有Thumb) */
::-webkit-scrollbar-track {
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
background-color: #fff;
}
/* 滚动条里面的小方块,能向上向下移动 */
::-webkit-scrollbar-thumb {
background-color: red;
}
/* 滚动条的轨道的两端按钮 */
::-webkit-scrollbar-button {
background-color: gray;
}
/* 边角,即两个滚动条的交汇处 */
::-webkit-scrollbar-corner {
background-color: black;
}