0


element ui el-table表头单独设置字体大小

1.给el-table-column加上类名class-name

<el-table-column class-name="column" prop="program_name">
    <template slot-scope="{row}"><span>{{ row.program_name }}</span></template>
</el-table-column>

2.在css中设置字体大小

<style scoped lang="less">
::v-deep .column {
   .cell {
    font-size: 18px;
    }
}
</style>

本文转载自: https://blog.csdn.net/qq_43440547/article/details/135130327
版权归原作者 qq_43440547 所有, 如有侵权,请联系我们删除。

“element ui el-table表头单独设置字体大小”的评论:

还没有评论