码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2019-01-05 20:04:55      阅读:194      评论:0      收藏:0      [点我收藏+]

标签:into   NPU   lin   timeout   window   tar   int   time   var   

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

  

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

标签:into   NPU   lin   timeout   window   tar   int   time   var   

原文地址:https://www.cnblogs.com/cx709452428/p/10225592.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!