css 滚动条两端,加上下左右箭头,点击可以滑动
/* Up */
::-webkit-scrollbar-button:single-button:vertical:decrement {
width: 8px;
height: 8px;
background: url('./assets/common/arrow_up.png') no-repeat;
background-size: 100% 100%;
}
/* Down */
::-webkit-scrollbar-button:single-button:vertical:increment {
width: 8px;
height: 8px;
background: url('./assets/common/arrow_down.png') no-repeat;
background-size: 100% 100%;
}
/* left */
::-webkit-scrollbar-button:single-button:horizontal:decrement {
width: 8px;
height: 8px;
background: url('./assets/common/arrow_left.png') no-repeat;
background-size: 100% 100%;
}
/* right */
::-webkit-scrollbar-button:single-button:horizontal:increment {
width: 8px;
height: 8px;
background: url('./assets/common/arrow_right.png') no-repeat;
background-size: 100% 100%;
}
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar:hover {
width: 8px;
height: 8px;
z-index: 9999;
overflow: overlay;
}
::-webkit-scrollbar-thumb {
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
background-color: var(--input-border-color) !important;
}
::-webkit-scrollbar-track {
border-radius: 3px;
}