element-ui table 表格内出现一根横线

756 阅读1分钟

问题:

element-ui table表格组件 , 在使用固定左侧列的时候 , 而且只有在数据只有一行的时候 , 经常会出现 这种情况 , 底部出现一根横线

3674746-46b3b3aa246d4013[1].png

解决:

设置全局样式 ,记住是加在全局样式上 , 不能加在含有scope的style上。

**.el-table__fixed-right{
**

  height: 100% !important;

}

3674746-07e59f83786b2f79[1].png