zhouna 4 年之前
父節點
當前提交
b9f5bd90e2
共有 1 個文件被更改,包括 8 次插入2 次删除
  1. 8 2
      src/js/utils.js

+ 8 - 2
src/js/utils.js

@@ -302,13 +302,19 @@ $('.modal .close').click(function() {
 //计算容器高度
 function setBoxHeight() {
   const ht = window.innerHeight;
-  $('.content-box').height(ht - 60 + 'px');
+  const hw = window.innerWidth;
+  if(hw<1169){
+      $('.content-box').height(ht - 110 + 'px');
+  }else{
+      $('.content-box').height(ht - 60 + 'px');
+  }
+  //$('.content-box').height(ht - 60 + 'px');
   $('.flaw-table').height(ht - 70 + 'px');
   $('.content-ht').height(ht - 120 + 'px');
   $('.scroll-table tbody').css('max-height', ht - 210 + 'px');
 }
 setBoxHeight();
-$(window).resize(function() {
+$(window).resize(function() {console.log(32)
   setBoxHeight();
 });