1.浏览器滚动条高度增宽
div::-webkit-scrollbar{
height:10px;
margin-top: 10px;
}
- 注意:表格滚动后可能出现错位
.el-table__fixed-body-wrapper .el-table__body{padding-bottom:8px}
2.解决el-table设置了固定列导致的滚动条无法拖动问题
.el-table__fixed-right::before, .el-table__fixed::before{//解决固定后有一条缝隙
height:0;
}
.el-table__fixed {//左固定列
height: auto !important;
bottom: 10px;
}
.el-table__fixed-right {//右固定列
height: auto !important;
bottom: 10px;// 改为自动高度后,设置与父容器的底部距离,高度会动态改变,值可以设置比滚动条的高度稍微大一些
}