Element-ui设置table 选中某行高亮自定义背景色

Element-ui设置table 选中某行高亮自定义背景色
在el-table标签中添加单选 highlight-current-row

<el-table highlight-current-row @row-click="mainBodySelectionChange">
      </el-table>

在style中设置颜色

/* 设置当前页面element全局table 选中某行时的背景色*/
.el-table__body tr.current-row>td{
  background-color: #69A8EA !important;
  color: #fff;
}

你可能感兴趣的:(ui,elementui)