element-ui 中table 边框如何去除
/* 去除表格的边框 */
.table_box /deep/ td.el-table__cell {
border: none;
}
.table_box /deep/ th.el-table__cell {
border: none;
}
.user_box /deep/ .el-table::before {
left: 0;
bottom: 0;
width: 100%;
height: 0;
}
注:
- 此处的 .table_box 要改为你 table 的父标签的名称,不然不生效
- 代码写在vue 中,样式不能写在scope 中,不然不生效