From 32e65ae9182d4f50bb20c8b5dab157e801383e7f Mon Sep 17 00:00:00 2001
From: ZHAOTONGHUA <2066753415@qq.com>
Date: Tue, 26 Nov 2019 11:46:41 +0800
Subject: [PATCH] =?UTF-8?q?=E5=9B=BA=E5=AE=9A=E8=A1=A8=E5=A4=B4=E6=96=B9?=
=?UTF-8?q?=E6=B3=95=EF=BC=8C=E5=AF=BC=E5=85=A5=E6=A1=86=E6=9E=B6=E5=9C=A8?=
=?UTF-8?q?table=E9=87=8C=E9=9D=A2=E5=A1=AB=E5=85=A5=E6=95=B0=E5=80=BC?=
=?UTF-8?q?=EF=BC=8C=E7=84=B6=E5=90=8E=E5=9C=A8js=E9=87=8C=E9=9D=A2?=
=?UTF-8?q?=E8=AE=BE=E7=BD=AE=E4=B8=80=E5=AE=9A=E7=9A=84=E9=AB=98=E5=BA=A6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/views/menu/index.php | 7 ++++++-
frontend/views/permissions/index.php | 7 ++++++-
2 files changed, 12 insertions(+), 2 deletions(-)
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;
-
+
ID |
@@ -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(); ?>