From ec3de4fd96af1aaefe46c3ba075a79953de8e37d Mon Sep 17 00:00:00 2001 From: Argo-Dell Date: Fri, 23 Aug 2019 16:17:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20IE11=20=E4=B8=8B?= =?UTF-8?q?=E9=A1=B5=E8=84=9A=E6=B6=88=E5=A4=B1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/wwwroot/lib/longbow/longbow.common.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Bootstrap.Admin/wwwroot/lib/longbow/longbow.common.js b/Bootstrap.Admin/wwwroot/lib/longbow/longbow.common.js index f200abe3..4a6a3632 100644 --- a/Bootstrap.Admin/wwwroot/lib/longbow/longbow.common.js +++ b/Bootstrap.Admin/wwwroot/lib/longbow/longbow.common.js @@ -238,7 +238,9 @@ footer: function (options) { var op = $.extend({ header: "header", content: "body > section:first", ele: 'footer' }, options); var $ele = $(op.ele); - return $(op.header).outerHeight() + $(op.content).outerHeight() + $ele.outerHeight() > $(window).height() ? $ele.removeClass('position-fixed') : $ele.addClass('position-fixed'); + + // 增加 1px 修复 IE11 下由于小数点导致页脚消失bug + return $(op.header).outerHeight() + $(op.content).outerHeight() + $ele.outerHeight() > $(window).height() + 1 ? $ele.removeClass('position-fixed') : $ele.addClass('position-fixed'); }, formatUrl: function (url) { if (!url) return url;