Browse Source

IE8样式修改

wyq 3 years ago
parent
commit
822774e4b7
2 changed files with 15 additions and 19 deletions
  1. 6 10
      src/css/staticInfo.less
  2. 9 9
      src/js/staticInfo.js

+ 6 - 10
src/css/staticInfo.less

@@ -158,7 +158,6 @@
     margin-left: 30px;
     padding: 15px 0px 15px 20px;
     border-radius: 4px;
-    
     border: 1px solid #EDFAFF;
     /*background-color: #EDFAFF;*/
     line-height: 19px;
@@ -184,7 +183,6 @@
   height: 16px;
   background: #fff;
   border-radius: 16px;
-  
   position: absolute;
   left: 41px;
   z-index: 1;
@@ -200,7 +198,6 @@
     width: 16px;
     height: 16px;
     border-radius: 8px;
-    
     border: 1px solid @staticMainColor;
     background-color: @staticMainColor;
     left: -10px;
@@ -208,7 +205,7 @@
     z-index: 1;
   }
 .anchors li:first-child i{
-  top:35px;
+  top:37px;
 }
   .anchors a {
     display: inline-block;
@@ -229,10 +226,10 @@
   }
 
   .anchors .active i {
-    width: 26px;
-    height: 16px;
+    width: 30px;
+    height: 15px;
     top: 6px;
-    left: -14px;
+    left: -15px;
     border-radius: 0;
     border: none;
     background-color: #F5F6F7;
@@ -276,7 +273,7 @@
     font-size: 14px;
     color: #333333;
     border-radius: 6px 6px 0px 0px;
-    
+
   }
   .activeTab{
     background: @staticMainColor;
@@ -329,7 +326,6 @@
   /*滚动条里面小方块*/
   width: 6px;
   border-radius: 5px;
-  
   background: @staticMainColor;
   height: 100px;
 }
@@ -337,7 +333,6 @@
 .infos::-webkit-scrollbar-track, .anchors::-webkit-scrollbar-track {
   /*滚动条里面轨道*/
   border-radius: 2px;
-  
   background: #f0f2f5;
   opacity: .2;
 }
@@ -431,6 +426,7 @@
     padding:25px 56px;
     overflow: hidden;
     max-width: 100%;
+    min-width: 100px;
     display: inline-block;
     .result_left{
       display: inline-block;

+ 9 - 9
src/js/staticInfo.js

@@ -227,15 +227,15 @@ function renderContentscale(list, contentWrapClassName, name) {
     }
   }
   $(`.${contentWrapClassName} .infos .infos-box`).scroll(throttle(addScrollEvent, 200));
-  var mb = myBrowser();
-  if ("IE" == mb) {
-    $('.result_left').css({
-      'position': 'relative', //高度自动
-    })
-    $('.result_title').css({
-      'margin-left': '0', //高度自动
-    })
-  }
+  // var mb = myBrowser();
+  // if ("IE" == mb) {
+  //   $('.result_left').css({
+  //     'position': 'relative', //高度自动
+  //   })
+  //   $('.result_title').css({
+  //     'margin-left': '0', //高度自动
+  //   })
+  // }
   addLinkClickEvent(contentWrapClassName);
   adjustHeight();
   adjustWidth()