Browse Source

修改infomation高度自适应

zhangxc 5 năm trước cách đây
mục cha
commit
58934ad4fa
3 tập tin đã thay đổi với 14 bổ sung2 xóa
  1. 8 0
      src/css/indexHorizontal.less
  2. 1 1
      src/css/indexVert.less
  3. 5 1
      src/js/information.js

+ 8 - 0
src/css/indexHorizontal.less

@@ -162,6 +162,14 @@
         float: left;
     }
 }
+.recommendInfoItem {
+    .infoMsg,
+    .infoMsgOn {
+        position: absolute;
+        top: 4px;
+        right: 0px;
+    }
+}
 .infoMsg,
 .infoMsgOn {
     position: absolute;

+ 1 - 1
src/css/indexVert.less

@@ -360,5 +360,5 @@
     }
   }
 .medicineWaringDis:hover {
-color: @grayColor;
+    color: @grayColor;
 }

+ 5 - 1
src/js/information.js

@@ -80,4 +80,8 @@ function addLinkClickEvent() {
 function adjustHeight() {
   var ht = window.innerHeight;
   $(".content").height(ht - 145 + "px");
-}
+}
+$(window).on('resize', function(){
+  adjustHeight()
+})
+