方法一:直接通过CSS设置透明背景 确定样式设置方式: 你可以在组件的<style>标签内直接编写CSS。 或者通过外部CSS文件来设置el-table的样式。 设置背景透明: 使用CSS的background-color属性,并将其值设置为transparent。 应用样式: 你可以通过选择器来应用这个样式。对于el-table,可以直接使用.el-table类选...
/deep/ .el-table, /deep/ .el-table__expanded-cell{ background-color: transparent; } /* 表格内背景颜色 */ /deep/ .el-table th, /deep/ .el-table tr, /deep/ .el-table td { background-color: transparent; } 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. stylus则用>>>...
el-table背景色透明 .tableTransparent /deep/ .el-table, .el-table__expanded-cell{background-color:transparent; }.tableTransparent /deep/ .el-table tr{background-color:rgba(255, 255, 255, 0.1 ) !important; }.tableTransparent >>> .el-table th{background-color:rgba(245,247,250, 0.5 ) !
.el-table__expanded-cell { background-color: transparent; } ::v-deep .el-table tr { background-color: transparent !important; } ::v-deep .el-table__body td,::v-deep .el-table__header th, .el-table .cell { background-color: transparent; } ::v-deep .el-table::before { //去...
1、在el-table外加div并自定义class <div class="table"><el-table:data="tableData" :header-cell-><el-table-columnlabel="a" type="index"></el-table-column><el-table-columnlabel="b" prop="data"></el-table-column></el-table></div> ...
需求el-table 透明背景 固定列 滚动条的处理 头疼~ 基础node:14.17.3@vue/cli 5.0.1vue:2.6.12element-ui:2.15.61.设置表格透明背景后,清除表格下边框线 ...
/*最外层透明*/::v-deep.el-table,::v-deep.el-table__expanded-cell{background-color:transparent!important;}/* 表格内背景颜色 */::v-deep.el-table th,::v-deep.el-table tr,::v-deep.el-table td{background-color:transparent!important;border:0;//去除表格}/*去除底边框*/::v-deep.el-...
工具/原料 电脑所有型号 win10 方法/步骤 1 打开一个vue文件,添加一个有加载效果的el-table组件,然后设置表格显示内容为姓名和地址。如图 2 在el-table标签上添加element-loading-background属性,设置值为半透明的黑色。如图 3 保存vue文件后使用浏览器打开, 即可看到加载背景已经变为半透明的黑色。如图 ...
</el-table> </el-col> </el-row> </div> </template> <script> export default { props: { // 是否显示操作 title: { type: String, default: "", }, contentTableConfig: { type: Object, require: true, default: () => ({}), ...
el-table背景色透明 .tableTransparent /deep/ .el-table, .el-table__expanded-cell{background-color:transparent; }.tableTransparent /deep/ .el-table tr{background-color:rgba(255, 255, 255, 0.1 ) !important; }.tableTransparent >>> .el-table th{background-color:rgba(245,247,250, 0.5 ) ...