diff --git a/frontend/views/finance/ticheng-jisuan.php b/frontend/views/finance/ticheng-jisuan.php index f8410df..2e6fea7 100644 --- a/frontend/views/finance/ticheng-jisuan.php +++ b/frontend/views/finance/ticheng-jisuan.php @@ -235,11 +235,13 @@ use \common\libs\MyLib; }); //使得table有一定的高度,出现滚动条 - var a=$(".gray-bg").height(); //获取body高度 - var b=$('#searchFrm').height(); //获取条件选择高度 - var c=$('.ibox-title').height() //获取标题高度 - var d=a-b-c-100; - $('.fixed-table-body').css({'height': d}); + //获取body高度 + var a=$(".gray-bg").height(); + //获取条件选择高度 + var b=$('#searchFrm').height(); + //获取标题高度 + var c=$('.ibox-title').height(); + $('.fixed-table-body').css({'height': a-b-c-100}); }); endBlock(); ?> diff --git a/frontend/views/menu/index.php b/frontend/views/menu/index.php index 7fde60a..bd03163 100644 --- a/frontend/views/menu/index.php +++ b/frontend/views/menu/index.php @@ -100,8 +100,20 @@ use \common\libs\MyLib; }); } + //使得table有一定的高度,出现滚动条 + function table(){ + //获取body高度 + var a=$(".gray-bg").height(); + //获取条件选择高度 + var b=$('#searchFrm').height(); + //获取标题高度 + var c=$('.ibox-title').height(); + $('.fixed-table-body').css({'height': a-b-c-100}); + } $(function() { search(); + table(); + }); endBlock(); ?> diff --git a/frontend/views/permissions/index.php b/frontend/views/permissions/index.php index b2f0ffe..140ff53 100644 --- a/frontend/views/permissions/index.php +++ b/frontend/views/permissions/index.php @@ -97,8 +97,17 @@ use \common\libs\MyLib; }); } + //使得table有一定的高度,出现滚动条 + function table(){ + //获取body高度 + var a=$(".gray-bg").height(); + //获取标题高度 + var c=$('.ibox-title').height(); + $('.fixed-table-body').css({'height': a-c-100}); + } $(function() { search(); + table(); }); endBlock(); ?>