fix: 修复 IE11 下页脚消失问题
This commit is contained in:
parent
86ad98edcd
commit
ec3de4fd96
|
@ -238,7 +238,9 @@
|
||||||
footer: function (options) {
|
footer: function (options) {
|
||||||
var op = $.extend({ header: "header", content: "body > section:first", ele: 'footer' }, options);
|
var op = $.extend({ header: "header", content: "body > section:first", ele: 'footer' }, options);
|
||||||
var $ele = $(op.ele);
|
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) {
|
formatUrl: function (url) {
|
||||||
if (!url) return url;
|
if (!url) return url;
|
||||||
|
|
Loading…
Reference in New Issue