很多场景下我们会重设滚动条的样式,下边把具体实现代码贴出来:
// 兼容火狐
::v-deep .el-table__body-wrapper {
overflow-y: scroll;
scrollbar-color: #bebebf transparent;
scrollbar-width: thin;
}
// 兼容谷歌
// 滚动条的宽度
::v-deep .el-table__body-wrapper::-webkit-scrollbar {
width: 6px; // 横向滚动条
height: 6px; // 纵向滚动条 必写
}
// 滚动条的滑块
::v-deep .el-table__body-wrapper::-webkit-scrollbar-thumb {
background-color: #bebebf;
border-radius: 3px;
}
:deep .el-table__body-wrapper::-webkit-scrollbar-track{
background: #CCCCCC !important;
}
最后
以上就是痴情纸飞机最近收集整理的关于element ui 表格滚动条样式重设方法的全部内容,更多相关element内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复