处理Android键盘覆盖input和textarea框的问题
时间:2019-01-05 18:58:02
收藏:0
阅读:150
$(window).resize(function(){ $(‘input[type="text"],textarea‘).on(‘click‘, function () { var target = this; setTimeout(function(){ target.scrollIntoViewIfNeeded(); // console.log(‘scrollIntoViewIfNeeded‘); },400); }); });
原文:https://www.cnblogs.com/cx709452428/p/10225592.html
评论(0)