文章目录 前言 1. 自定义标题颜色 2. 行颜色自定义 3. 无数据时背景色 4. 表格自动滚动 5. 表格和页面去除滚动条 前言 自定义表格颜色、样式方法整理 1. 自定义标题颜色 :header-cell-style="{ background:'#121626' , color:'#606266' }" 实战演示 2. 行颜色自定义 方法1 直接定义 :row-style="{backgroundColor:'#121626'}" 实战演示 方法2 动态颜色 // 组件添加 :row-class-name="tableRowClassName" // 方法区 tableRowClassName({ row, rowIndex})<