首页 > 其他 > 详细

bootstrap datagrid表格高度自适应修改

时间:2020-02-21 19:33:14      阅读:185      评论:0      收藏:0      [点我收藏+]

onPostBody:function(){
$(‘.fixed-table-container‘).css(‘height‘, "");//先让高度出现
if(jQuery(document).height() >jQuery(window).height() ){//如果页面高度大于窗口高度
          $(‘.fixed-table-container‘).css(‘height‘, ($(document.body).height()-$(".box").height()-$(".fixed-table-toolbar").height()-$(".fixed-table-pagination").height()-20) + ‘px‘);//修改高度
         }
     }

bootstrap datagrid表格高度自适应修改

原文:https://www.cnblogs.com/pcancer/p/12342231.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!