From 255bc9b6fb031f76d53427444b2bea5c5cb0d433 Mon Sep 17 00:00:00 2001 From: ZHAOTONGHUA <2066753415@qq.com> Date: Tue, 26 Nov 2019 09:57:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BA=E5=AE=9A=E8=A1=A8=E5=A4=B4=E6=96=B9?= =?UTF-8?q?=E6=B3=95=EF=BC=8C=E7=9B=B4=E6=8E=A5=E5=9C=A8js=E9=87=8C?= =?UTF-8?q?=E9=9D=A2=E8=AE=BE=E7=BD=AE=E4=B8=80=E5=AE=9A=E7=9A=84=E9=AB=98?= =?UTF-8?q?=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/views/menu/index.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/frontend/views/menu/index.php b/frontend/views/menu/index.php index 7ea3ced..674b05f 100644 --- a/frontend/views/menu/index.php +++ b/frontend/views/menu/index.php @@ -99,8 +99,26 @@ use \common\libs\MyLib; } }); } + + //使得table有一定的高度,出现滚动条 + function table(){ + //获取body高度 + var a=$(".gray-bg").height(); + //获取条件选择高度 + var b=$('#searchFrm').height(); + //获取标题高度 + var c=$('.ibox-title').height(); + //获取table高度 + var e=$("#listTable").height(); + var f=$(".ibox-content").height(); + var d=a-c-100; + console.log(e); + console.log(f); + $('.fixed-table-body').css({'height':d}); + } $(function() { search(); + table(); }); endBlock(); ?>