Bladeren bron

Table: Set the background color of striped table on the td element (#917)

李名凯 8 jaren geleden
bovenliggende
commit
81477a9af9
1 gewijzigde bestanden met toevoegingen van 4 en 2 verwijderingen
  1. 4 2
      packages/theme-default/src/table.css

+ 4 - 2
packages/theme-default/src/table.css

@@ -312,9 +312,11 @@
     @modifier striped {
       & .el-table__body {
         & tr:nth-child(2n) {
-          background: #FAFAFA;
+          td {
+            background: #FAFAFA;
+          }
 
-          &.current-row {
+          &.current-row td {
             background: #EFF7FF;
           }
         }