赞
踩
那我们开始,上代码
<div class="user_skills" style="margin-top:20px;">
<el-table :data="skills" :header-cell-style="getRowClass" >
<el-table-column label="#" type="index"></el-table-column>
<el-table-column label="专业技能" prop="data"></el-table-column>
</el-table>
</div>
.user_skills{
width: 50%;
margin: auto;
}
.user_skills /deep/ .el-table--fit{
padding: 20px;
}
.user_skills /deep/ .el-table, .el-table__expanded-cell {
background-color: transparent;
}
.user_skills /deep/ .el-table tr {
background-color: transparent!important;
}
.user_skills /deep/ .el-table--enable-row-transition .el-table__body td, .el-table .cell{
background-color: transparent;
}
.el-table::before {//去除底部白线
left: 0;
bottom: 0;
width: 100%;
height: 0px;
}
参考博客:地址
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。