效果图
代码
table {
display: block;
overflow-x: hidden;
overflow-y: auto;
height: 480px;
border: 1px solid red !important;
}
table::-webkit-scrollbar {
width: 6px;
height: 80px !important;
}
table::-webkit-scrollbar-thumb {
background-color: #2c98ff;
border-radius: 5px;
height: 80px;
}
table::-webkit-scrollbar-track {
background-color: #030c22;
height: 80px;
}
table::-webkit-scrollbar-thumb:hover {
background-color: #2c98ff;
height: 80px;
}
table::-webkit-scrollbar-thumb:active {
background-color: #2c98ff;
height: 80px;
}
参考1