ios移动端input输入内容时向上偏移
作者:互联网
$(document).on('blur', 'input', function () {undefined setTimeout(function () {undefined var scrollHeight = document.documentElement.scrollTop || document.body.scrollTop || 0; window.scrollTo(0, Math.max(scrollHeight - 1, 0)); }, 100); });
标签:function,undefined,ios,偏移,scrollTop,input,document,scrollHeight 来源: https://www.cnblogs.com/yugueilou/p/15597119.html