log*_*nit 4 android jquery-mobile cordova
我有一个使用Phonegap和JQuery Mobile构建的应用程序.每当软键盘显示 - 在表单输入等 - 整个页面调整大小.图像,按钮和文字.我假设是打破CSS的东西?
其他人有这个问题,或者知道为什么会出现这个问题?我不得不重新启动应用程序以重置布局.
任何想法赞赏!
谢谢!
log*_*nit 14
我在这里找到了答案:
http://solutions.michaelbrooks.ca/2011/07/05/android-soft-keyboard-resizes-web-view/
http://comments.gmane.org/gmane.comp.handhelds.phonegap/10207
添加的组合:
android:windowSoftInputMode="adjustPan"
Run Code Online (Sandbox Code Playgroud)
到AndroidManifest.xml
和 <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, target-densityDpi=device-dpi" />
到index.html,为我做了这份工作.
希望这有助于某人.
| 归档时间: |
|
| 查看次数: |
5542 次 |
| 最近记录: |