fix: 修复 IE11 下页脚消失问题

This commit is contained in:
Argo-Dell 2019-08-23 16:17:00 +08:00
parent 86ad98edcd
commit ec3de4fd96
1 changed files with 3 additions and 1 deletions

View File

@ -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;