工作中遇到的问题(修改element table组件样式)

347 阅读1分钟
 //去除fks-table最外层一条小白线的方法
    .fks-table::before {
      height: 0px;
    }
    .fks-table--border::after {
      width: 0px;
    }
    .fks-table--border {
      border: none;
    }
    //修改fks-table样式的方法
    /deep/.fks-table{
      // background: rgba(0, 84, 153, 0.7);
      // opacity: 0.7;
      background-color: transparent;
    }
    /deep/.fks-table tr{
      // background: rgba(0, 84, 153, 0.7) !important;
      background-color: transparent;
    }
    //修改头部颜色
    /deep/.fks-table__header-wrapper{
      background: rgba(0, 0, 0, 0.2);
    }
    //修改每一行的颜色
    /deep/.fks-table__row{
      // background: rgba(0, 84, 153, 0.7);
      background-color: transparent;
    }
    //修改偶数行的样色
    /deep/.fks-table--striped .fks-table__body tr.fks-table__row--striped td {
      // background: rgba(0, 84, 153, 0.7);
      background-color: transparent;
    }