标签:pre target settime code 输入框 col document var html
$(‘input‘).on(‘click‘, function () { var target = this; // 使用定时器是为了让输入框上滑时更加自然 setTimeout(function(){ target.scrollIntoView(true); },100); $(‘body,html‘).height(document.documentElement.clientHeight) });
标签:pre target settime code 输入框 col document var html
原文地址:https://www.cnblogs.com/NB-JDzhou/p/10303310.html