1.局部滚动条样式:
/deep/ .el-table__body-[wrapper](https:
width: 6px;
height: 6px;
}\
/deep/ .el-table__body-wrapper::-[webkit](https:
background-color: #ddd;\
border-radius: 3px;\
}
2、全局滚动条样式:
::-webkit-scrollbar {\
width: 8px;\
height: 8px;\
background-color: #e4e4e4;\
border-radius: 6px;\
}\
::-webkit-scrollbar-thumb {\
background-color: #a1a3a9;\
border-radius: 6px;\
}
滚动条样式存在兼容性问题,以上的样式是在webkit浏览器下可生效的
3、修改滚动条样式
.treeScrollbar::-webkit-scrollbar-track-piece {\
background-color: #f1f1f1;\
}\
.treeScrollbar::-webkit-scrollbar {\
width: 10px;\
height: 10px;\
}\
.treeScrollbar::-webkit-scrollbar-thumb {\
background-color: #c1c1c1;\
background-clip: padding-box;\
min-height: 28px;\
border-radius: 8px;\
}\
.treeScrollbar::-webkit-scrollbar-thumb:hover {\
background-color: #a8a8a8;\
}
blog.csdn.net/qq_40576178…