固定表头方法,导入框架在table里面填入数值,然后在js里面设置一定的高度

webUi
赵桐华 5 years ago
parent c75f36ab1e
commit 8ad9d0f27f
  1. 4
      frontend/views/menu/index.php

@ -120,6 +120,10 @@ use \common\libs\MyLib;
}
$(function() {
search();
var tab=$("#listTable").attr('data-height');
console.log(tab);
$('.fixed-table-body').css({'height':tab});
});
</script>
<?php $this->endBlock(); ?>

Loading…
Cancel
Save