【发布时间】:2014-03-28 16:55:32
【问题描述】:
我正在使用 JQueryMobile 1.4.2 进行 phonegap 项目,但我遇到了旧 android 设备的问题。它适用于 android 现代版本,但表单在 2.2 和 2.3 版本中存在问题。
在 Android 2.2 设备上:我无法使用输入,因为当我点击屏幕(任意位置)按钮时被按下。
在 Android 2.3 设备上:当我开始在输入文本字段上书写时,屏幕开始上下滚动。
有什么想法吗? 头:
<link rel="stylesheet" href="./css/jquery.mobile-1.4.2.css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.mobile-1.4.2.js"></script>
表格:
<form id="form_login" method="post" name="form_login" onsubmit="login();">
<div id="modulo_login">
<div data-i18n="acces.subtit" id="tit_mlu"></div><input id="nif_nie"
name="nif_nie" tabindex="1" type="text" /> <input id="pwd" name="pwd"
tabindex="2" type="password" />
<div id="pwd_mlu">
<a data-i18n="acces_particular.olv" data-transition="slide" href=
"rec_contr.html"></a>
</div>
</div><input class="btn" data-i18n="[value]acces.entrar" tabindex="3" type=
"submit" />
</form>
【问题讨论】:
-
很确定这些 SDK 中的 webview 不支持数据属性。
-
谢谢,但 data-i18n 有效,问题出在 JQueryMobile
标签: javascript android css jquery-mobile cordova