diff --git a/frontend/views/menu/index.php b/frontend/views/menu/index.php index ca2bb2d..4718f8f 100644 --- a/frontend/views/menu/index.php +++ b/frontend/views/menu/index.php @@ -21,7 +21,7 @@ use \common\libs\MyLib;
- +
@@ -107,6 +107,11 @@ use \common\libs\MyLib; //table设置一定的高度 var tab=$("#listTable").attr('data-height'); $('.fixed-table-body').css({'height':tab-40}); + //当浏览器窗口变化时,表头与表格不对齐解决 + $('#table').bootstrapTable(); + $(window).resize(function () { + $('#table').bootstrapTable('resetView'); + }); }); endBlock(); ?> diff --git a/frontend/views/permissions/index.php b/frontend/views/permissions/index.php index 55311ad..484d8ff 100644 --- a/frontend/views/permissions/index.php +++ b/frontend/views/permissions/index.php @@ -21,7 +21,7 @@ use \common\libs\MyLib;
-
ID
+
@@ -103,6 +103,11 @@ use \common\libs\MyLib; //table设置一定的高度 var tab=$("#listTable").attr('data-height'); $('.fixed-table-body').css({'height':tab-40}); + //当浏览器窗口变化时,表头与表格不对齐解决 + $('#table').bootstrapTable(); + $(window).resize(function () { + $('#table').bootstrapTable('resetView'); + }); }); endBlock(); ?>
ID