刮风这天,我试过解决bug……
<el-table :data="tableData" style="width: 100%" border height="245px" class='tableHei'></el-table>
<style scoped>
.tableHei /deep/ th {
padding: 0 !important;
height: 25px;
line-height: 15px;
text-align: center;
}
.tableHei /deep/ td {
padding: 0 !important;
height: 35px;
line-height: 30px;
text-align: center;
}
</style>
如果不生效,可能是你代码中有重复的给覆盖了,记得仔细看代码……
从前,从前