el-table表格加上border属性,边框错位问题。

在el-table表格上加上border属性后,边框错位问题。

原因:是由于页面缩放导致的。

在App.vue或者index.html加上下面一种样式即可。

解决一:

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

解决二:

body .el-table--boder th.gutter:last-of-type {
    display: block !important
}

  

原文地址:https://www.cnblogs.com/chip-gan/p/14000452.html