css自定义滚动条样式

// An highlighted block
.system-sub-slidebar::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.system-sub-slidebar::-webkit-scrollbar-button {
    background-color: #11151d;
}

.system-sub-slidebar::-webkit-scrollbar-track {
    background: #11151d;
}

.system-sub-slidebar::-webkit-scrollbar-thumb {
    background: #4a4f5a;
    border-radius: 8px;
}

.system-sub-slidebar::-webkit-scrollbar-corner {
    background: #11151d;
}

.system-sub-slidebar::-webkit-scrollbar-resizer {
    background: #11151d;
}
.robot-box ::-webkit-scrollbar {
  width: 2px;
  height: 2px;
}
.robot-box ::-webkit-scrollbar-thumb {
  border: 0 solid hsla(0, 0%, 100%, 0);
  border-radius: 0;
  background: #bbb;
}

你可能感兴趣的:(css)