element-ui avue table 在Safari下表格与表头错位的兼容问题

项目是avue做的,在Safari下表格出现样式宽度错乱,这个问题这里用css样式解决:

body .el-table th.gutter {
    
    
  display: table-cell !important;
}

body .el-table colgroup.gutter {
    
    
  display: table-cell !important;
}

table {
    
    
  width: 100% !important;
}

因为表格宽度未设置100%,导致计算每列出现几px的精度差,最后导致整体样式错乱,希望帮助到遇到这个问题的人。
转自:https://blog.csdn.net/HZKang/article/details/90447373

猜你喜欢

转载自blog.csdn.net/weixin_44999830/article/details/107515226