【问题标题】:Image resizing issue when keyboard open in android mobile在Android手机中打开键盘时图像大小调整问题
【发布时间】:2016-10-12 03:33:02
【问题描述】:
感谢阅读,我是 cordova 开发的新手,我正在使用 framework7 来开发使用 cordova 的混合应用程序。
我将背景放在登录表单上,但是在移动设备中,当打开键盘进行书写时,背景图像会被调整大小。
我想修复打开 android 键盘时未调整大小的图像位置。
请看下图
谢谢
【问题讨论】:
标签:
android
css
cordova
html5-appcache
html-framework-7
【解决方案1】:
试试这些配置
- Index.html
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width, height=device-height">
- config.xml
<preference name="android-windowSoftInputMode" value="adjustPan" />
<preference name="fullscreen" value="false" />