复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47以下为表格透明样式代码。 .el-table::before { background-color: transparent; // background-color: linear-gradient(to top, #CF5A64, #CB555F); } ::v-deep .el-table__header tr, ::v-deep .el-table th, .el-table tr { background-color: transparent; } ::v-deep .el-table__header{ background-color: linear-gradient(to top, #1871FE, #1871FE); } ::v-deep .el-table th > .cell { font-weight: 700; color: #fff; font-size: 12px; } ::v-deep .el-table tbody tr td:nth-child(-n + 2) div { color: #fff; } ::v-deep .el-table tbody tr td div { font-size: 14px; } ::v-deep .el-table td, ::v-deep .el-table th.is-leaf{ border-bottom: 1px solid #06214a; } ::v-deep .el-table__body { // border-collapse: separate !important; // border-spacing: 0 15px !important; // table-layout: auto !important; tbody tr{ background-color: transparent; } } ::v-deep .el-table .cell{ color: #fff; } ::v-deep .el-table, .el-table__expanded-cell { background-color: transparent !important; } ::v-deep .el-table--enable-row-transition .el-table__body td, .el-table .cell { background-color: transparent; }
复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31// 分页样式改造 /deep/ .el-pagination.is-background .btn-prev{ background: transparent; border-radius: 2px; border: 1px solid #295a85; color: #fff; } /deep/ .el-pagination.is-background .btn-next{ background: transparent; border-radius: 2px; border: 1px solid #295a85; color: #fff; } /deep/ .el-pagination.is-background .el-pager li{ background: transparent; border-radius: 2px; border: 1px solid #295a85; color: #fff; } /deep/ .el-pagination.is-background .el-pager li:not(.disabled).active{ background: #409eff; } /deep/ .el-pagination__editor.el-input .el-input__inner{ background: transparent; border: 1px solid #295a85; color: #fff; } /deep/ .el-pagination__total, /deep/ .el-pagination__jump{ color: #fff; }
分页效果如下:
最后
以上就是纯情香水最近收集整理的关于element-ui 表格,分页器背景样式改造的全部内容,更多相关element-ui内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复