滚动条透明代码
.resizable-div {
resize: both;
overflow: auto;
}
.resizable-div::-webkit-scrollbar {
width: 4px;
height: 4px;
}
.resizable-div::-webkit-scrollbar-thumb {
background: transparent;
border-radius: 4px;
}
.resizable-div::-webkit-scrollbar-thumb:hover {
background: rgba(0, 0, 0, 0.1);
}
.resizable-div::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-track-piece {
background-color: transparent;
}
设置滚动条颜色

.resizable-div {
overflow: auto;
}
.resizable-div::-webkit-scrollbar {
width: 4px;
height: 4px;
}
.resizable-div::-webkit-scrollbar-thumb {
background: red;
border-radius: 4px;
}
.resizable-div::-webkit-scrollbar-thumb:hover {
background: rgba(0, 0, 0, 0.1);
}
.resizable-div::-webkit-scrollbar-track {
background: greenyellow;
}
::-webkit-scrollbar-track-piece {
background-color: aqua;
}