固定表头方法,直接在js里面设置一定的高度

webUi
赵桐华 5 years ago
parent 10ce1efe00
commit 3556e5efe4
  1. 7
      frontend/views/permissions/index.php

@ -103,13 +103,10 @@ use \common\libs\MyLib;
var a=$(".gray-bg").height();
//获取标题高度
var c=$('.ibox-title').height();
//获取table高度
var e=$("row").height();
var d=a-c-100;
if(e>d){
$('.fixed-table-body').css({'height':d});
console.log("滚动条");
}
}
$(function() {

Loading…
Cancel
Save