From a4119ca79a0007dddb745025cdd5951f1e403fff Mon Sep 17 00:00:00 2001 From: ZHAOTONGHUA <2066753415@qq.com> Date: Tue, 26 Nov 2019 14:03:59 +0800 Subject: [PATCH] =?UTF-8?q?a=E5=BA=93=E5=9B=BA=E5=AE=9A=E8=A1=A8=E5=A4=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/views/database/a-index.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/frontend/views/database/a-index.php b/frontend/views/database/a-index.php index 63599aa..e867900 100644 --- a/frontend/views/database/a-index.php +++ b/frontend/views/database/a-index.php @@ -119,7 +119,7 @@ use \common\libs\MyLib;
- +
@@ -146,6 +146,7 @@ use \common\libs\MyLib; beginBlock('footer_js'); ?> + @@ -213,8 +214,21 @@ 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,