element-ui table 樣式更改


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>

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM