diff --git a/frontend/views/database/c-index.php b/frontend/views/database/c-index.php index aade234..f7e36d1 100644 --- a/frontend/views/database/c-index.php +++ b/frontend/views/database/c-index.php @@ -97,7 +97,7 @@ use \common\libs\MyLib;
@@ -122,6 +122,7 @@ use \common\libs\MyLib; beginBlock('footer_js'); ?> + @@ -156,9 +157,20 @@ use \common\libs\MyLib; }); return false; } - +//固定表头 + function fix(){ + //table设置一定的高度 + var tab=$("#listTable").attr('data-height'); + $('.fixed-table-body').css({'height':tab-40}); + //当浏览器窗口变化时,表头与表格不对齐解决 + $('.table').bootstrapTable(); + $(window).resize(function () { + $('.table').bootstrapTable('resetView'); + }); + } $(function() { search(); + fix(); $('.input-daterange').datepicker({ keyboardNavigation: false, forceParse: false, |
---|