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(); ?>