禁用HTML文本字段的拼写检查 [英] Disable spell-checking on HTML textfields
本文介绍了禁用HTML文本字段的拼写检查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我能以某种方式禁用HTML文本字段的拼写检查吗(例如在Safari中看到的)?
Can I somehow disable spell-checking on HTML textfields (as seen in e.g. Safari)?
推荐答案
更新:正如评论者所建议的(额外功劳),使用它来处理所有桌面和移动浏览器。
Update: As suggested by a commenter (additional credit to How can I disable the spell checker on text inputs on the iPhone), use this to handle all desktop and mobile browsers.
<tag autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
原始答案:Javascript无法覆写使用者设定,除非您使用文字栏以外的其他机制,不(或不应该)可能。
Original answer: Javascript cannot override user settings, so unless you use another mechanism other than textfields, this is not (or shouldn't be) possible.
这篇关于禁用HTML文本字段的拼写检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文