Android 2.2的Web视图窗口向上移动时,会出现虚拟键盘 [英] Android 2.2 Web View windows moves up when Virtual Keyboard appears

查看:135
本文介绍了Android 2.2的Web视图窗口向上移动时,会出现虚拟键盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发使用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?

我发现<一个同样的问题href="http://stackoverflow.com/questions/4305079/text-input-on-android-phone-is-not-in-view-when-the-keyboard-for-webview-comes-up">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.

这篇关于Android 2.2的Web视图窗口向上移动时,会出现虚拟键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆