处理Android键盘覆盖input和textarea框的问题

Posted 时空旅人

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了处理Android键盘覆盖input和textarea框的问题相关的知识,希望对你有一定的参考价值。

        $(window).resize(function(){
            $(‘input[type="text"],textarea‘).on(‘click‘, function () {
            var target = this;
            setTimeout(function(){
                    target.scrollIntoViewIfNeeded();
                    // console.log(‘scrollIntoViewIfNeeded‘);
                },400);
            });         
        });

  

以上是关于处理Android键盘覆盖input和textarea框的问题的主要内容,如果未能解决你的问题,请参考以下文章