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
}

  

posted @ 2020-11-18 16:10  翻脸不如翻身  阅读(3758)  评论(0编辑  收藏  举报