table表格样式更改

element UI里面表格的行高需要自己调整高度和设置padding,直接写style是不行的,里面有 :

1、row-style (行的 style)    

2、header-row-styl   (表头行的 style)

3、cell-style(单元格的 style)

<el-table  border  :span="24" :row-style="{height:'32px'}"  :header-row-style="{height:'32px'}"  :cell-style="{padding:'1px'}">
  <el-table-column></el-table-column>
  <el-table-column></el-table-column>
</el-table>

 

相关文章:

  • 2021-11-16
  • 2022-12-23
  • 2022-12-23
  • 2021-08-28
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
  • 2021-08-30
  • 2021-10-09
  • 2021-11-29
  • 2021-11-04
相关资源
相似解决方案