瀏覽代碼

表格行高修改4404

zhouna 5 年之前
父節點
當前提交
1404b43507

+ 1 - 16
src/css/dayDetail.less

@@ -44,25 +44,12 @@
         /*width: 100%;*/
     }
     table{
-        width: 100%;
+        .table;
         min-width: 1090px;
-        border:1px solid #E2E5EF;
-        border-collapse: collapse;
-        thead{
-            background: #EFF0F9;
-           
-        }
         th,td{
-            height: 40px;
-            box-sizing: border-box;
-            padding: 10px;
-            border:1px solid #E2E5EF;
-            border-collapse: collapse;
             text-align: center;
         }
         th{
-            font-size: 14px;
-            font-weight: 500;
             white-space: nowrap;
         }
         th[code]{
@@ -84,8 +71,6 @@
             }
         }
         td{
-            font-size: 14px;
-            font-weight: 400;
             white-space: nowrap;
         }
         .moduleNumber{

+ 1 - 16
src/css/deptScoreDetail.less

@@ -43,25 +43,12 @@
         /*width: 100%;*/
     }
     table{
-        width: 100%;
+        .table;
         min-width: 1090px;
-        border:1px solid #E2E5EF;
-        border-collapse: collapse;
-        thead{
-            background: #EFF0F9;
-           
-        }
         th,td{
-            height: 40px;
-            box-sizing: border-box;
-            padding: 10px;
-            border:1px solid #E2E5EF;
-            border-collapse: collapse;
             text-align: center;
         }
         th{
-            font-size: 14px;
-            font-weight: 500;
             white-space: nowrap;
         }
         th[code]{
@@ -83,8 +70,6 @@
             }
         }
         td{
-            font-size: 14px;
-            font-weight: 400;
             white-space: nowrap;
         }
         .moduleNumber{

+ 1 - 16
src/css/deptScoreDetailControl.less

@@ -43,25 +43,12 @@
         /*width: 100%;*/
     }
     table{
-        width: 100%;
+        .table;
         min-width: 1090px;
-        border:1px solid #E2E5EF;
-        border-collapse: collapse;
-        thead{
-            background: #EFF0F9;
-           
-        }
         th,td{
-            height: 40px;
-            box-sizing: border-box;
-            padding: 10px;
-            border:1px solid #E2E5EF;
-            border-collapse: collapse;
             text-align: center;
         }
         th{
-            font-size: 14px;
-            font-weight: 500;
             white-space: nowrap;
         }
         th[code]{
@@ -83,8 +70,6 @@
             }
         }
         td{
-            font-size: 14px;
-            font-weight: 400;
             white-space: nowrap;
         }
         .moduleNumber{

+ 1 - 22
src/css/itemManager.less

@@ -19,28 +19,7 @@
         padding-bottom: 50px;
     }
     table{
-        width: 100%;
-        border:1px solid #E2E5EF;
-        border-collapse: collapse;
-        thead{
-            background: #EFF0F9;
-           
-        }
-        th,td{
-            height: 32px;
-            box-sizing: border-box;
-            padding:0 10px;
-            border:1px solid #E2E5EF;
-            border-collapse: collapse;
-        }
-        th{
-            font-size: 14px;
-            font-weight: 500;
-        }
-        td{
-            font-size: 14px;
-            font-weight: 400 
-        }
+        .table;
         .moduleNumber{
             text-align: center;
         }

+ 1 - 16
src/css/jiaji.less

@@ -46,25 +46,12 @@
         /*width: 100%;*/
     }
     table{
-        width: 100%;
+        .table;
         min-width: 1090px;
-        border:1px solid #E2E5EF;
-        border-collapse: collapse;
-        thead{
-            background: #EFF0F9;
-           
-        }
         th,td{
-            height: 40px;
-            box-sizing: border-box;
-            padding: 10px;
-            border:1px solid #E2E5EF;
-            border-collapse: collapse;
             text-align: center;
         }
         th{
-            font-size: 14px;
-            font-weight: 500;
             white-space: nowrap;
         }
         th[code]{
@@ -86,8 +73,6 @@
             }
         }
         td{
-            font-size: 14px;
-            font-weight: 400;
             white-space: nowrap;
         }
         .moduleNumber{

+ 1 - 19
src/css/moduleManager.less

@@ -18,28 +18,10 @@ h2{
     }
 }
 table{
-    width: 100%;
-    border:1px solid #E2E5EF;
-    border-collapse: collapse;/*关键代码*/
+    .table;
     min-width: 800px;
-    thead{
-        background: #EFF0F9;
-       
-    }
     th,td{
-        height: 32px;
-        box-sizing: border-box;
         padding: 0 20px;
-        border:1px solid #E2E5EF;
-        border-collapse: collapse;/*关键代码*/
-    }
-    th{
-        font-size: 14px;
-        font-weight: 500;
-    }
-    td{
-        font-size: 14px;
-        font-weight: 400 
     }
     .moduleNumber{
         text-align: center;

+ 1 - 22
src/css/mukuai.less

@@ -92,28 +92,7 @@
         padding-bottom: 40px;
     }
     table{
-        width: 100%;
-        border:1px solid #E2E5EF;
-        border-collapse: collapse;
-        thead{
-            background: #EFF0F9;
-           
-        }
-        th,td{
-            height: 40px;
-            box-sizing: border-box;
-            padding: 10px;
-            border:1px solid #E2E5EF;
-            border-collapse: collapse;
-        }
-        th{
-            font-size: 14px;
-            font-weight: 500;
-        }
-        td{
-            font-size: 14px;
-            font-weight: 400 
-        }
+        .table;
         .moduleNumber{
             text-align: center;
         }

+ 1 - 16
src/css/partDetail.less

@@ -46,25 +46,12 @@
         /*width: 100%;*/
     }
     table{
-        width: 100%;
+        .table;
         min-width: 1090px;
-        border:1px solid #E2E5EF;
-        border-collapse: collapse;
-        thead{
-            background: #EFF0F9;
-           
-        }
         th,td{
-            height: 40px;
-            box-sizing: border-box;
-            padding: 10px;
-            border:1px solid #E2E5EF;
-            border-collapse: collapse;
             text-align: center;
         }
         th{
-            font-size: 14px;
-            font-weight: 500;
             white-space: nowrap;
         }
         th[code]{
@@ -86,8 +73,6 @@
             }
         }
         td{
-            font-size: 14px;
-            font-weight: 400;
             white-space: nowrap;
         }
         .moduleNumber{

+ 1 - 16
src/css/partDetailControl.less

@@ -46,25 +46,12 @@
         /*width: 100%;*/
     }
     table{
-        width: 100%;
+        .table;
         min-width: 1090px;
-        border:1px solid #E2E5EF;
-        border-collapse: collapse;
-        thead{
-            background: #EFF0F9;
-           
-        }
         th,td{
-            height: 40px;
-            box-sizing: border-box;
-            padding: 10px;
-            border:1px solid #E2E5EF;
-            border-collapse: collapse;
             text-align: center;
         }
         th{
-            font-size: 14px;
-            font-weight: 500;
             white-space: nowrap;
         }
         th[code]{
@@ -86,8 +73,6 @@
             }
         }
         td{
-            font-size: 14px;
-            font-weight: 400;
             white-space: nowrap;
         }
         .moduleNumber{

+ 1 - 16
src/css/payDetail.less

@@ -47,25 +47,12 @@
         /*width: 100%;*/
     }
     table{
-        width: 100%;
+        .table;
         min-width: 1090px;
-        border:1px solid #E2E5EF;
-        border-collapse: collapse;
-        thead{
-            background: #EFF0F9;
-           
-        }
         th,td{
-            height: 40px;
-            box-sizing: border-box;
-            padding: 10px;
-            border:1px solid #E2E5EF;
-            border-collapse: collapse;
             text-align: center;
         }
         th{
-            font-size: 14px;
-            font-weight: 500;
             white-space: nowrap;
         }
         th[code]{
@@ -87,8 +74,6 @@
             }
         }
         td{
-            font-size: 14px;
-            font-weight: 400;
             white-space: nowrap;
         }
         .moduleNumber{

+ 3 - 15
src/css/qcList.less

@@ -17,23 +17,12 @@ h2{
     // overflow: auto;
 }
 table{
-    width: 100%;
+    .table;
     min-width: 1090px;
-    border:1px solid #E2E5EF;
-    border-collapse: collapse;
-    thead th{
-        background: #EFF0F9;
-       
-    }
     th,td{
-        box-sizing: border-box;
-        padding:6px 10px;
-        border:1px solid #E2E5EF;
-        border-collapse: collapse;
+        padding:5px 10px;
     }
     th{
-        font-size: 14px;
-        font-weight: 500;
         white-space: nowrap;
     }
     th[code]{
@@ -55,8 +44,6 @@ table{
         }
     }
     td{
-        font-size: 14px;
-        font-weight: 400;
         white-space: nowrap;
     }
     .moduleNumber{
@@ -70,6 +57,7 @@ table{
 }
 .tabFoot{
     height: 40px;
+    background: none;
     /*border: 1px solid #E2E5EF;
     border-top: none;
     box-sizing: border-box;*/

+ 2 - 15
src/css/qcListDept.less

@@ -17,23 +17,12 @@ h2{
     /*width: 100%;*/
 }
 table{
-    width: 100%;
+    .table;
     min-width: 1090px;
-    border:1px solid #E2E5EF;
-    border-collapse: collapse;
-    thead th{
-        background: #EFF0F9;
-       
-    }
     th,td{
-        box-sizing: border-box;
-        padding:6px 10px;
-        border:1px solid #E2E5EF;
-        border-collapse: collapse;
+        padding:5px 10px;
     }
     th{
-        font-size: 14px;
-        font-weight: 500;
         white-space: nowrap;
     }
     th[code]{
@@ -55,8 +44,6 @@ table{
         }
     }
     td{
-        font-size: 14px;
-        font-weight: 400;
         white-space: nowrap;
     }
     .moduleNumber{

+ 2 - 15
src/css/qcListPerson.less

@@ -17,23 +17,12 @@ h2{
     /*width: 100%;*/
 }
 table{
-    width: 100%;
+    .table;
     min-width: 1090px;
-    border:1px solid #E2E5EF;
-    border-collapse: collapse;
-    thead th{
-        background: #EFF0F9;
-       
-    }
     th,td{
-        box-sizing: border-box;
-        padding:6px 10px;
-        border:1px solid #E2E5EF;
-        border-collapse: collapse;
+        padding:5px 10px;
     }
     th{
-        font-size: 14px;
-        font-weight: 500;
         white-space: nowrap;
     }
     th[code]{
@@ -55,8 +44,6 @@ table{
         }
     }
     td{
-        font-size: 14px;
-        font-weight: 400;
         white-space: nowrap;
     }
     .moduleNumber{

+ 24 - 0
src/css/reset.less

@@ -64,6 +64,29 @@ table {
   border-spacing: 0;
 }
 
+.table{
+  width: 100%;
+  border:1px solid #E2E5EF;
+  border-collapse: collapse;
+  thead{
+    background: #EFF0F9;
+  }
+  th,td{
+    height: @trHeight;
+    box-sizing: border-box;
+    padding:0 10px;
+    border:1px solid #E2E5EF;
+    border-collapse: collapse;
+  }
+  th{
+    font-size: 14px;
+    font-weight: 500;
+  }
+  td{
+    font-size: 14px;
+    font-weight: 400
+  }
+}
 input,
 textarea {
   border: none;
@@ -104,6 +127,7 @@ textarea {
 @warnColor:#FF4D4F;  /**重点红色**/
 @thBgColor:#EFF0F9; /**标题背景色**/
 @tableBorderColor:#E2E5EF;  /**表格边框**/
+@trHeight:30px;   /**表格行高**/
 .h2{
   width: 100%;
   /*box-sizing: border-box;*/

+ 1 - 22
src/css/tiaomu.less

@@ -94,28 +94,7 @@
         padding-bottom: 50px;
     }
     table{
-        width: 100%;
-        border:1px solid #E2E5EF;
-        border-collapse: collapse;
-        thead{
-            background: #EFF0F9;
-           
-        }
-        th,td{
-            height: 40px;
-            box-sizing: border-box;
-            padding: 10px;
-            border:1px solid #E2E5EF;
-            border-collapse: collapse;
-        }
-        th{
-            font-size: 14px;
-            font-weight: 500;
-        }
-        td{
-            font-size: 14px;
-            font-weight: 400 
-        }
+        .table;
         .moduleNumber{
             text-align: center;
         }

+ 1 - 1
src/html/qcList.html

@@ -64,7 +64,7 @@
                 <table>
                     <thead>
                     <tr>
-                        <td colspan="17">
+                        <td colspan="17" style="background: #fff">
                             <div class="tabFoot">
                                 <span class="scoreOpera" data-selectAll=false><img class="iconCheck" src="../images/icon_unchecked.png" alt="checkbox">全选</span>
                                 <span class="recordScoreBtn">评分</span>

+ 1 - 1
src/html/qcListDept.html

@@ -63,7 +63,7 @@
                 <table>
                     <thead>
                         <tr>
-                            <td colspan="17">
+                            <td colspan="17" style="background: #fff">
                                 <div class="tabFoot">
                                     <span class="scoreOpera" data-selectAll=false><img class="iconCheck" src="../images/icon_unchecked.png" alt="checkbox">全选</span>
                                     <span class="recordScoreBtn">评分</span>

+ 1 - 1
src/html/qcListPerson.html

@@ -63,7 +63,7 @@
                 <table>
                     <thead>
                         <tr>
-                            <td colspan="17">
+                            <td colspan="17" style="background: #fff">
                                 <div class="tabFoot">
                                     <span class="scoreOpera" data-selectAll=false><img class="iconCheck" src="../images/icon_unchecked.png" alt="checkbox">全选</span>
                                     <span class="recordScoreBtn">评分</span>