wyq преди 4 години
родител
ревизия
1287186bca
променени са 1 файла, в които са добавени 16 реда и са изтрити 1 реда
  1. 16 1
      src/js/staticInfo.js

+ 16 - 1
src/js/staticInfo.js

@@ -27,7 +27,13 @@ let recommend = require('./../images/recommend.png');
 let hel = require('./../images/icon-hel.png');
 
 let showName, noticeName, clinicalPathwayName, isclick
-
+function myBrowser() {
+  var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
+  var isOpera = userAgent.indexOf("Opera") > -1;
+  if (userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1 && !isOpera) {
+    return "IE";
+  }; //判断是否IE浏览器
+}
 
 function getInfomation() {
   var param = {
@@ -206,6 +212,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', //高度自动
+    })
+  }
   addLinkClickEvent(contentWrapClassName);
   adjustHeight();
   adjustWidth()