获取table高度

webUi
赵桐华 5 years ago
parent 0133b733da
commit 4fe157a213
  1. 10
      frontend/views/database/b-index.php

@ -123,7 +123,6 @@ use \common\libs\MyLib;
<?php $this->beginBlock('footer_js'); ?>
<script src="/assets/js/jquery.min.js"></script>
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
<script src="/assets/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
@ -158,7 +157,14 @@ use \common\libs\MyLib;
function fix(){
//table设置一定的高度
var tab=$("#listTable").attr('data-height');
console.log($('#listTable').height());
var a=$(".ibox-content").height();
var b=$("#searchFrm").height();
var c=a-b;
console.log(c);
if(c<490){
alert("不够");
}
//$('.fixed-table-body').css({'height':tab-40});
//当浏览器窗口变化时,表头与表格不对齐解决

Loading…
Cancel
Save