关闭通过HTML / CSS进行的Chrome / Safari拼写检查 [英] Turn off Chrome/Safari spell checking by HTML/css
问题描述
对于网络开发者有没有办法关闭Chrome / Safari / WebKit对特定输入
或的拼写检查, textarea
元素?我的意思是通过特殊的标签属性或专有的CSS指令。
Is there a way for a web developer to turn off Chrome/Safari/WebKit's spellchecking on particular input
or textarea
elements? I mean either by special tag attribute or a proprietary CSS instruction.
有一个CSS指令关闭输入
因此我认为也可能存在。我知道用户如何做。
There is a CSS instruction for turning off outlining of input
s so I thought that might also exist. I know how a user can do it.
或者,作为用户,我可以为某些特定域禁用它吗?
Or, as a user, can I disable it for some particular domain?
推荐答案
是的,有HTML5 spellcheck属性。
Yes, there is the HTML5 spellcheck attribute.
code>< textarea spellcheck =false> 或< input type =textspellcheck =false>
<textarea spellcheck="false">
or <input type="text" spellcheck="false">
更新:现在支持所有浏览器的最新版本。
Update: This is now supported in the latest versions of all browsers.
这篇关于关闭通过HTML / CSS进行的Chrome / Safari拼写检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!