效果
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/9df6655d7028b6019c1f584002230413.png)
template部分
<el-table
:header-cell-style="{
backgroundColor: 'transparent',
color: '#ffffff',
fontSize: fontSize(12),
textAlign: 'center'
}"
:cell-style="{
color: '#fff',
backgroundColor: 'transparent',
fontSize: fontSize(8),
textAlign: 'center'
}"
:row-style="{
color: '#fff',
backgroundColor: 'transparent',
fontSize: fontSize(8),
textAlign: 'center'
}"
:data="projectTableData"
style="width: 100%"
>
<el-table-column prop="cat" label="分类"> </el-table-column>
<el-table-column label="2022">
<el-table-column prop="num2022" label="数量" width="60">
</el-table-column>
<el-table-column prop="jine2022" label="金额" width="60">
</el-table-column>
</el-table-column>
</el-table>
css部分
.t_btn2 /deep/ .el-table,
.el-table__expanded-cell {
background-color: transparent;
}
.t_btn2 /deep/ .el-table tr {
background-color: transparent !important;
}
.t_btn2 /deep/ .el-table--enable-row-transition .el-table__body td,
.el-table .cell {
padding: 0;
background-color: transparent;
}
.el-table::before {
height: 0px;
}