Javascript 在phonegap应用程序中的android键盘弹出窗口上停止页脚移动

Javascript 在phonegap应用程序中的android键盘弹出窗口上停止页脚移动,javascript,jquery,footer,hybrid-mobile-app,phonegap,Javascript,Jquery,Footer,Hybrid Mobile App,Phonegap,我有一个混合应用程序,每当我点击任何DOM输入时,键盘就会出现,它会把我的页脚也带到顶部。但我需要的是页脚总是卡在底部。最好的方法是什么?我也在使用下面的jquery,但它不能完美地工作。同样在这个jquery中,我需要跳过一些类名不等于项的输入框。如何添加此异常?还有没有其他好办法来完成这项任务 if ('ontouchstart' in window) { /* bind events */

我有一个混合应用程序,每当我点击任何DOM输入时,键盘就会出现,它会把我的页脚也带到顶部。但我需要的是页脚总是卡在底部。最好的方法是什么?我也在使用下面的jquery,但它不能完美地工作。同样在这个jquery中,我需要跳过一些类名不等于项的输入框。如何添加此异常?还有没有其他好办法来完成这项任务

if ('ontouchstart' in window) {     

                        /* bind events */

                        $(document)  
                        .on('focus', 'input[type=text]")', function() { 
                            $('.footer').css('position', 'absolute');
                            $('.footer').css('bottom', ''); 
                        })

                        .on('blur', 'input[type=text]', function() { 
                            $('.footer').css('position', 'fixed');  
                            $('.footer').css('bottom', '0');
                        });



                    }

你找到解决办法了吗@sqlchild@Hemant.Gupta:前面提到的jquery工作正常