PhoneGap的输入类型密码字段焦点字段、密码、类型、焦点

2023-09-12 07:37:23 作者:你有矿泉水那么纯。么?

我开发的PhoneGap的应用程序。 在输入标签,如果我给类型='文本'这是行之有效的。 但是当我给INPUT TYPE ='密码'的另一个领域是开放在当前字段。

I developed an app in phonegap . In input tag if i give type='text' it is works well . but when i give input type='password' an another field is opening over to the current field.

如何删除上述领域。

我的CSS是

.login-screen input.login {-webkit-border-radius:4px; width:90%; border:none; height:33px; -webkit-box-shadow: inset 0px 1px 2px 0px rgba(150, 150, 150, 0.9);
-moz-box-shadow: inset 0px 1px 2px 0px rgba(150, 150, 150, 0.9); box-shadow: inset 0px 1px 2px 0px rgba(150, 150, 150, 0.9);  padding-left:10px; margin-bottom:10px;}

HTML

html

<td align="center"><input type="text" id="vEmail" name="vEmail"  title="Enter Email" value="" alt="" class="login"  /></td>
      </tr>
      <tr>
        <td align="center" ><input type="password" id="vPassword"  name="vPassword"  title="Enter Password" value="" alt=""   class="login"/></td>
      </tr>

我希望u可以看到这个图片了解更多!

i hope u can understand more by seeing this image!

如果我删除我的滚动工作正常...我怎么可以让它工作,即使我滚动时

if i remove the i scroll its working fine... how can i make it work even though i scroll is used

推荐答案

我已经能够避免这种使用的安卓windowSoftInputMode =adjustNothing的。 + Sandy09是对的覆盖+位置。看来唯一的好办法,以避免这种情况是prevent Android的移动内容上IME启动(adjustNothing),而且也是$ P $移动在所有pventing web视图里面的内容。这也似乎打破所有的CSS3 3D / 3D转换,即使是简单的规模和改造产能打破它。

I've been able to avoid this be using android:windowSoftInputMode="adjustNothing". +Sandy09 is right about the overlay + position. It seems the only good way to avoid this is to prevent android from moving the contents on IME start (adjustNothing), and also be preventing the contents inside the webview from moving at all. This also seems to break all CSS3 3d/3d transforms, even simple scales and transform-origin can break it.

还有更坏的消息寿:在某些时候,我有密码箱工作正常,那么由于CSS的改变它回来了永久。在某些时候,如果浏览器变慢足够的(Canvas)的窗口似乎失去其跟踪输入框的能力。对我们来说,这导致SIGSEGVs我们每次pressed的IME的7(七)关键时期。这是无论版本对所有的Andr​​oid设备也。

There is worse news tho: at some point i had password boxes working fine, then due to CSS changes it came back permanently. At some point if the browser is slowed down enough (canvas) the Window seems to lose its ability to track the input box. For us, this led to SIGSEGVs every time we pressed the 7 (seven) key on the IME. This was on ALL android devices too, Regardless of version.

我放弃了这一切,只是做了我自己的KeyboardView.我现在有点幸福。

I gave up on all of this and just made my own KeyboardView. I'm a little happier now.