【问题标题】:Creates a duplicate of an input field when focused in android 4.0 webview using jquery mobile and phonegap使用 jquery mobile 和 phonegap 在 android 4.0 webview 中聚焦时创建输入字段的副本
【发布时间】:2013-05-30 10:32:01
【问题描述】:

我正在使用 webview 开发一个 phonegap 应用程序。但是,当焦点位于任何输入文本框时,会自动创建文本框的副本,并且我输入的任何内容都将在此文本框中。聚焦时,此值显示在默认文本框中。我试图通过以下方式避免这种情况:

input {
    -webkit-appearance: none;
    background: none;
    border: 0;
    outline: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

但是没有效果……

【问题讨论】:

    标签: android css jquery-mobile cordova android-4.0-ice-cream-sandwich


    【解决方案1】:

    这是我用的...

    input[type="text"]:not(.selectbox), input[type="number"], input[type="password"] { -webkit-user-modify: read-write-plaintext-only; -webkit-tap-highlight-color: rgba(0,0,0,0); outline-style: none; }

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-07-19
      • 1970-01-01
      • 2017-02-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-12-17
      • 1970-01-01
      相关资源
      最近更新 更多