$("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

相关文章:

  • 2021-10-20
  • 2022-12-23
  • 2021-10-24
  • 2021-08-11
  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-03
  • 2021-07-08
相关资源
相似解决方案