element-ui表格修改背景色、文字和去掉边框和底部的白线和增加斑马线和

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
48
49
50
51
// 修改表格的背景色
.common-table-container .el-table,
.common-table-container .el-table__expanded-cell {
  //background-color: transparent !important;
  background-color: #313856;
  color: #fff;
}
// 去掉表格的边框
.common-table-container .el-table th,
.common-table-container .el-table td {
  background-color: transparent !important;
}
.assets-table-container .el-table th,
.assets-table-container .el-table td,
.order-table-container .el-table th,
.order-table-container .el-table td
{
  border: none !important;
}
//修改表格的斑马线
.el-table tr:nth-child(even) {background: #283049}
.el-table tr:nth-child(odd) {background: transparent}
 
//表格文字居中
.audit__table-container .cell {
  text-align: center !important;
}
//去掉表格单元格边框
.audit__table-container .el-table tr th,
.audit__table-container .el-table tr td{
  border: none;
}
//表格文字颜色
.audit__table-container .el-table tr td{
  color: #909399;
}
//表格单元格右边框
.audit__table-container .el-table tr td:not(:last-child) {
  border-right: 1px solid #eee;
}
//去掉底部的白线
.common-table-container .el-table::before {
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0px;
}
 // 表格高度100%
  .el-tabs{
  height: 100%;
}

  

posted @   bruce_lee_1  阅读(1226)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
点击右上角即可分享
微信分享提示