Selaa lähdekoodia

Merge remote-tracking branch 'origin/TCM0513' into testNew

zhouna 4 vuotta sitten
vanhempi
commit
66765fd546
2 muutettua tiedostoa jossa 6 lisäystä ja 3 poistoa
  1. 3 3
      src/css/cdssHorizontal.less
  2. 3 0
      src/js/tcmiss.js

+ 3 - 3
src/css/cdssHorizontal.less

@@ -524,7 +524,7 @@
                 width: 60px;
                 position: absolute;
                 left: 502px;
-              bottom: 6px;
+                bottom: 4px;
             }
             li {
                 margin-bottom: 6px;
@@ -547,9 +547,9 @@
                   overflow: hidden;
                   text-overflow: ellipsis;
                   white-space: nowrap;
-                  &:nth-child(2) {
+                  /*&:nth-child(2) {    //ie8不兼容,用jquery
                     width: 420px;
-                  }
+                  }*/
                 }
 
             }

+ 3 - 0
src/js/tcmiss.js

@@ -108,6 +108,9 @@ function renderTcm(data, num = 3) {
         }
     }
     $('.detail ul').html(str);
+    if(data.length > num){
+        $(".detail .val:nth-child(2) .desc").css("width",'420px')
+    }
     //更多治法
     $("#goTreat").on('click', function () {
         openNewWin(window.encodeURI(treatUrl), true);