瀏覽代碼

表格颜色4613

zhouna 5 年之前
父節點
當前提交
7892f60462
共有 3 個文件被更改,包括 9 次插入1 次删除
  1. 5 0
      src/css/qcScore.less
  2. 3 0
      src/css/reset.less
  3. 1 1
      src/html/qcScore.html

+ 5 - 0
src/css/qcScore.less

@@ -553,6 +553,11 @@
       text-indent: 20px;
     }
   }
+  .interval-color{
+    tr:nth-child(2n){
+      background: #EFF1F6;
+    }
+  }
   table{
     width: 97%;
     border:1px solid #E2E5EF;

+ 3 - 0
src/css/reset.less

@@ -71,6 +71,9 @@ table {
   thead{
     background: #EFF0F9;
   }
+  tr:nth-child(2n){
+    background: #EFF1F6;
+  }
   th,td{
     height: @trHeight;
     box-sizing: border-box;

+ 1 - 1
src/html/qcScore.html

@@ -246,7 +246,7 @@
                 {{/each}}
                 </tbody>
             </table>
-            {{else}}<table code="${title}">
+            {{else}}<table code="${title}" class="interval-color">
             <thead>
             <tr>
                 <th width="100" align="center">序号</th>