【问题标题】:JQueryMobile 1.4.2 + Android 2.2/2.3 formsJQueryMobile 1.4.2 + Android 2.2/2.3 表单
【发布时间】: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


【解决方案1】:

我遇到了你用 android 2.3 设备解释的问题,并解决了它从所有 css 文件中删除以下属性:-webkit-backface-visibility。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-03-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-01-27
    • 2011-08-17
    • 2012-03-07
    相关资源
    最近更新 更多