如何解决ElementPlus的el-table底白线问题以及表格内线条透明

该文章展示了一段用于修改元素内el-table组件的CSS代码,主要目标是定制表格的样式,包括颜色、背景色、边框、行高以及去除底部白线,以达到特定的前端显示效果。
摘要由CSDN通过智能技术生成

在这里插入图片描述效果图

 <div class="tableList" style="margin-top:10px;">
        <el-table :data="projectList"  
        height="auto" 
        style="width: 96%;margin: auto;color: rgb(23, 177, 208);" 
        >
         </el-table> 
      </div>
.tableList:deep(.el-table th){ 
      color:	#87CEEB; 
      background-color:rgba(109, 103, 103, 0) !important; 
      border-color:#274954;
      
    }

    .tableList{
     max-width: 99%;
     
    }
    .tableList:deep(.el-table--fit){
      padding: 2px;
    }
    .tableList :deep(.el-table, .el-table__expanded-cell){
      background-color: transparent;
    }
    .tableList :deep(.el-table tr) {
      background-color: transparent!important;
    }
    .tableList:deep( .el-table--enable-row-transition .el-table__body td, .el-table .cell){
     background-color: transparent;
     line-height: 20px;
     padding: 15px 0px;
     border-color:#274954;
    }
    // 去除底部table有白线
    :deep(.el-table__inner-wrapper::before) {
      left: 0;
      bottom: 0;
      width: 100%;
      height: 0;
      z-index: 3;
      }
  • 4
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值