在使用jquery mobile和phonegap开发android 4.0网页视图时,当焦点在输入域中时创建输入域的副本

4

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

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

但是没有效果...

1个回答

1
This is what I use... 我使用的是以下代码: 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; }

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接