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

webUi
赵桐华 5 years ago
parent 22ecab8599
commit 36494a7c10
  1. 5
      frontend/views/permissions/index.php

@ -109,10 +109,7 @@ use \common\libs\MyLib;
if(e>d){ if(e>d){
$('.fixed-table-body').css({'height':d}); $('.fixed-table-body').css({'height':d});
console.log("滚动条"); console.log("滚动条");
}else{ }
$('.fixed-table-body').css({'height':e});
console.log("没有滚动条");
}
} }
$(function() { $(function() {

Loading…
Cancel
Save