element-plus table表头错位elementPlus表头错位

1,163 阅读1分钟

element-plus el-table 在页面放大时会出现表头和内容错位的情况

现象在这里插入图片描述

解决方法如下:

// 关键css代码
.el-table__header col[name="gutter"] {
  display: table-cell !important;
}

测试链接 链接: link. codepen.io/yeyue1992/p…