Android Webview (Phonegap):禁用自动更正、自动大写和自动完成不起作用
我的登录页面有问题,该页面加载到 Android 上的 Web 视图中(Phonegap)。 我对输入字段和表单标记使用了属性 auto Correct="off" autocomplete="off" autocapitalize="off"
但它不起作用。当我输入字母或数字时,设备会显示相似的单词,并且内容会上下变化。
有人知道我该如何解决这个问题吗?
干杯
i have a problem with my loginpage which is loaded in a Webview on Android (Phonegap).
i used the attributes autocorrect="off" autocomplete="off" autocapitalize="off"
for my input fields and form tag but it doesn't work. the device shows simmilar words and the content goes up and down when i type a letter or number.
have anybody an idea how i can fix this problem?
cheers
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我有同样的问题,经过几个小时的谷歌搜索,最后我得到了
使用以下属性的
解决方案autocomplete="off" auto Correct="off" autocapitalize="off"pellcheck="false"
我在 android 4.2 上测试了它及其工作
< a href="https://stackoverflow.com/questions/15298890/turn-off-predictive-text-for-password-field-on-websites">关闭密码字段的预测文本网站
i have the same problem and after googling for hours , finally i got the solution
used the following attributes
autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
I tested it on android 4.2 and its working
Turn off predictive text for password field on websites
我认为这些属性不适用于 Android。它们是 iPhone 专用的。自动更正选项是通过 Android 中的主设置进行配置的。
I don't think these attributes apply to Android. They are iPhone specific. The autocorrect options are configured via the main Settings in Android.
您应该尝试使用 cordovasoftkeyboard 插件并在输入文本焦点上显示它,在模糊时隐藏它。这对我来说避免了很多奇怪的行为。但是,这将始终显示基本的软键盘(不是数字软键盘、电子邮件软键盘等...)
https:// /github.com/phonostar/PhoneGap-SoftKeyboard
You should try to use a cordovasoftkeyboard plugin and show it on input text focus, hide it on blur. This avoid a lot of weird behaviors for me. However this will always show the basic soft keyboard (not the number soft, email soft etc...)
https://github.com/phonostar/PhoneGap-SoftKeyboard
我刚刚发现了它!,您只需在输入中添加:
name="password"
即可解决问题。I just discovered it!, you only have to add into your input this:
name="password"
and that solves it.