Phonegap输入类型密码字段焦点 [英] Phonegap input type password field focus

查看:101
本文介绍了Phonegap输入类型密码字段焦点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在phonegap开发了一个应用程序。
在输入标签中如果我给type ='text',它是很好。
但是当我给输入类型='密码'另一个字段打开到当前字段。

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.

如何删除上面的字段..

how can i remove the above 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

<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>

我希望你能看到这张图片,了解更多!

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

推荐答案

我已经能够避免使用 android:windowSoftInputMode =adjustNothing。 + Sandy09就是关于叠加+位置。它似乎唯一的好方法,以避免这是防止android移动内容在IME start(adjustNothing),也阻止webview中的内容移动。这也似乎打破了所有的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.

有更糟的消息tho:在某一点,我有密码箱工作正常,然后由于CSS更改它回来永久。在某些时候,如果浏览器减慢了足够(画布),窗口似乎失去跟踪输入框的能力。对我们来说,每当我们按下IME上的7(七)键时,就会产生SIGSEGV。这是在所有Android设备上,不管版本。

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.

这篇关于Phonegap输入类型密码字段焦点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆