如何修改table的背景色为透明或者是取消背景色
::v-deep .el-table,
::v-deep .el-table--border {
background-color: transparent !important;
color: #ffffff;
}
::v-deep .el-table .el-table__header-wrapper th {
background-color: rgba(0, 62, 90, 0.5);
}
::v-deep .el-table tr,
::v-deep .el-table__body tr:hover>td {
background-color: transparent !important;
}
::v-deep .el-table th.el-table__cell,
.el-table th.el-table__cell.is-leaf {
border: none !important;
}
::v-deep .el-table__inner-wrapper::before {
background-color: rgba(0, 62, 90, 0.5);
}
::v-deep .el-table td.el-table__cell,
.el-table th.el-table__cell.is-leaf {
border-bottom-color: #003E5A !important;
}
效果