排名
6
文章
199
粉丝
4
评论
3
ICP备案 :渝ICP备18016597号-1
网站信息:2018-2025TNBLOG.NET
技术交流:群号656732739
联系我们:contact@tnblog.net
公网安备:
50010702506256


欢迎加群交流技术

最近在做大屏项目,需要修改Table背景为透明色,查阅了一些,最终成功,故记录一下,希望大家可以用到
代码:
/* 表格内背景颜色 */
::v-deep .el-table th,
::v-deep .el-table tr,
::v-deep .el-table td {
background-color: transparent;
}
::v-deep .el-table td.el-table__cell,
::v-deep .el-table th.el-table__cell.is-leaf {
border-bottom: 0;
}
::v-deep.el-table--enable-row-transition .el-table__body td.el-table__cell {
background-color: transparent !important;
}
::v-deep.el-table td.el-table__cell div.cell {
background-color: transparent !important;
}
::v-deep .el-table {
background-color: transparent !important;
}
::v-deep .el-table__row {
background-color: transparent ;
}
/* 去除底部白线 */
.el-table::before{
background-color: transparent;
}
注意这里很多地方使用到了!important,可能会造成设置的样式无效,所以需要根据实际情况调整是否使用!important。
欢迎加群讨论技术,1群:677373950(满了,可以加,但通过不了),2群:656732739。有需要软件开发,或者学习软件技术的朋友可以和我联系~(Q:815170684)
评价