el-table 修改鼠标移入的高亮以及选中此行的高亮!!!记录

//选中
::v-deep .el-table__body tr.current-row > td.el-table__cell {
  background-color: skyblue;
}
//移入
::v-deep .el-table tbody tr:hover > td.el-table__cell {
  background-color: skyblue !important; //修改成自己想要的颜色即可
}
<el-table
              :data="tableData"
              highlight-current-row
              style="
                width: 100%;
                background: #052954;
                color: rgba(255, 255, 255, 0.9);
              "
            >

猜你喜欢

转载自blog.csdn.net/qq_59175937/article/details/128644198