$("input").blur(function() { setTimeout(function(){ var scrollHeight = document.documentElement.scrollTop || document.body.scrollTop || 0; window.scrollTo(0, Math.max(scrollHeight - 1, 0)); }, 100); });
转载自:https://blog.csdn.net/lianghaigui/article/details/85323399