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

webUi
赵桐华 5 years ago
parent 84ef6d6687
commit 22ecab8599
  1. 4
      frontend/views/menu/index.php

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

Loading…
Cancel
Save