在火狐浏览器下,置于页面顶部的laydate控件会“向上”显示,导致无法选择日期。网上有之前版本的解决方法:https://blog.csdn.net/weixin_45861144/article/details/103000248
我这个是2.5.6的解决方法
T.prototype.position = function () { var e = this, t = e.config, n = e.bindElem || t.elem[0], a = n.getBoundingClientRect(), i = e.elem.offsetWidth, r = e.elem.offsetHeight, o = function (e) { return e = e ? "scrollLeft" : "scrollTop", document.body[e] | document.documentElement[e] }, s = function (e) { return document.documentElement[e ? "clientWidth" : "clientHeight"] }, l = 5, d = a.left, c = a.bottom; d + i + l > s("width") && (d = s("width") - i - l), c + r + l > s("height") && (c = a.top > r ? a.top - r : s("height") - r, c -= 2 * l), t.position && (e.elem.style.position = t.position), e.elem.style.left = d + ("fixed" === t.position ? 0 : o(1)) + "px", e.elem.style.top = c + ("fixed" === t.position ? 0 : o()) + "px" },
红色为更改部分!