[英]Java script working in Chrome, Fire Fox but not in IE
Hi the following java script is working in both Chrome , fire fox and IE except IE 11: 嗨,以下Java脚本可在Chrome,Firefox和IE 11(IE 11除外)中同时运行:
$(window).scroll(function () {
if ($(window).scrollTop() >= $(document).height() - $(window).height()) {
// DO something
}
});
Only in IE 11 we have this problem, in a windows 8.1 operating system. 仅在IE 11中,在Windows 8.1操作系统中有此问题。 System : Sony Vaio Duo
系统:索尼Vaio Duo
Try this 尝试这个
$(window).scroll(function () {
if ($(window).scrollTop() >= parseFloat($(document).height()) - parseFloat($(window).height())) {
// DO something
}
});
Try this 尝试这个
$(window).scroll(function () {
if ($(window).scrollTop() >=(parseFloat($(document).height()) - parseFloat($(window).height()))) {
// DO something
}
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.