如何禁用iPhone上文本输入的拼写检查器 [英] How can I disable the spell checker on text inputs on the iPhone
本文介绍了如何禁用iPhone上文本输入的拼写检查器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有时拼写检查器是不必要的,验证码,用户名,电子邮件等。有没有办法在一些文本输入/文本区域禁用它? 解决方案正如我的好友Jonathan Stark所指出的,您应该可以使用自动更正和自动完成等属性来达到您要查找的效果:
< input type =textplaceholder =My Fieldname =myfield
autocapitalize =noneautocorrect =offautocomplete =off/> ;
刚刚在OS4中测试过,它正在运行。
更新:在上
和 off
值> autocapitalize 已被弃用。使用 none
完全禁用自动大写。
Sometimes the spell checker is unnecessary, captchas, usernames, emails, etc. Is there a way disable it on some text inputs/text areas?
解决方案
As noted by my buddy Jonathan Stark, you should be able to use attributes like autocorrect and autocomplete to achieve the effect you're looking for:
<input type="text" placeholder="My Field" name="myfield"
autocapitalize="none" autocorrect="off" autocomplete="off" />
Just tested in OS4 and it's working.
UPDATE: As of iOS5 on
and off
values in autocapitalize
have been deprecated. Use none
to completely disable automatic capitalization.
这篇关于如何禁用iPhone上文本输入的拼写检查器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文