表格最后一列右侧固定,倒数第二列右边框消失了。原因固定列遮住了该边框。
1.给固定列设置一条左边框
注意:这条消失的边框,气人的是有时又出现了,这样导致会有重复的边框线;
所以保险做法是:添加的同时,去掉前一个格的右边框线;
>>>.el-table__row td:not(.is-hidden):last-child {
border-left:1px solid #EBEEF5;
}
>>>.el-table__header th:not(.is-hidden):last-child{
border-left:1px solid #EBEEF5;
}
>>>.el-table__header-wrapper tr th:nth-last-child(3){
border-right:none;
}
>>>.el-table__body-wrapper tr td:nth-last-child(2){
border-right:none;
}
2.固定列像右移动1边框像素
注意:这样会导致表格右侧边框消失
>>>.el-table__row td:not(.is-hidden):last-child {
/*left:1px; */
right:-1px;
}