如何禁用 iPhone 上文本输入的拼写检查器

发布于 2024-09-13 05:15:56 字数 55 浏览 0 评论 0原文

有时拼写检查器是不必要的,验证码、用户名、电子邮件等。有没有办法在某些文本输入/文本区域禁用它?

Sometimes the spell checker is unnecessary, captchas, usernames, emails, etc. Is there a way disable it on some text inputs/text areas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

节枝 2024-09-20 05:15:56

正如我的好友 Jonathan Stark 所指出的,您应该能够使用自动更正和自动完成等属性来实现您正在寻找的效果:

<input type="text" placeholder="My Field" name="myfield"
    autocapitalize="none" autocorrect="off" autocomplete="off" />

刚刚在 OS4 中进行了测试,它正在工作。

更新:从 iOS5 开始,autocapitalize 中的 onoff 值已被弃用。使用none 完全禁用自动大写。

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.

卸妝后依然美 2024-09-20 05:15:56

HTML5 中有一个拼写检查属性:

<textarea spellcheck="false">

Re: http://blog .whatwg.org/the-road-to-html-5-spellchecking

浏览器支持有限。

There is a spell check attribute in HTML5:

<textarea spellcheck="false">

Re: http://blog.whatwg.org/the-road-to-html-5-spellchecking

Browser support is limited.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文