防止键盘把当前输入框挡住代码

$('input[name="tel"],textarea').on('click',function(){
var target=this;
setTimeout(function(){
target.scrollIntoViewIfNeeded();
console.log(scrollIntoViewIfNeeded);
},300);
});

猜你喜欢

转载自blog.csdn.net/qq_39237755/article/details/79314943
今日推荐