vue+element给el-table头部换背景颜色


直接上代码:

 :header-cell-style(头部样式)

 :header-cell-style="{background:'#eef1f6',color:'#606266'}"

<el-table ref="commonTable" :data="dataSource" :max-height="tableHeight" @selection-change="handleSelectionChange"
        v-bind="tableProps" @sort-change="handleSortChange" :header-cell-style="{background:'#EFF0F3',color:'#A2AAB4'}">

</el-table>


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM