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

webUi
赵桐华 5 years ago
parent ecf9ae19ac
commit 002a843357
  1. 2
      frontend/views/menu/index.php

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

Loading…
Cancel
Save