element ui 设置table背景透明

设置背景透明时,要注意如下几点

1、重写样式要加(/deep/),一定要写,不然不会生效

2、th、td、tr都要有背景颜色,不然不会生效

 /deep/.el-table, .el-table tr, .el-table td, .el-table th {
    background-color: transparent!important;
}


相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-01
  • 2022-12-23
  • 2021-11-17
  • 2021-12-27
  • 2021-10-15
  • 2021-07-28
猜你喜欢
  • 2021-08-28
  • 2021-12-27
  • 2021-10-06
  • 2021-06-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案