Pārlūkot izejas kodu

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

李名凯 8 gadi atpakaļ
vecāks
revīzija
81477a9af9
1 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  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;
           }
         }