Android 2.2的Web视图窗口向上移动时,会出现虚拟键盘视图、键盘、窗口、Android

2023-09-05 01:15:49 作者:不负遇见

我正在开发使用PhoneGap的Andr​​oid上的应用程序。一切工作正常OS 2.2在OS 2.1,但是,当我们点击出现的键盘输入任何类型的文本字段和整个窗口移动到UP端和输入类型字段变为不可见。谁能告诉我到底是什么问题,可以在使用JavaScript来解决?如何停止在Android 2.2的窗口大小调整功能?

I am developing an Application using Phonegap on Android. Everything works fine on OS 2.1 but on OS 2.2 when we click on any input type text field the keyboard appears and whole window moves to UP side and the input type field becomes invisible. Can anybody tell me what exactly be the problem and can it be solved using javascript? How to stop windows resizing functionality on Android 2.2?

我发现Text输入的android手机是不是在视图时,键盘的WebView来了?还可以,但不是解决办法。

I found the same problem on Text Input on android phone is not in view when the keyboard for webview comes up? also, but not the solution.

推荐答案

我试图把下面的CSS属性,它是为我工作在Android 2.2

I tried to put following css property and it was working for me on Android 2.2

HTML,身体{溢出:隐藏;}

html, body{overflow: hidden;}

不知道为什么它是工作,但它是工作...

Not sure why it is working, but it is working...

注:我用iScroll插件滚动在我的应用

Note: I used "iScroll" plugin for scrolling in my application.