关闭通过HTML / CSS进行的Chrome / Safari拼写检查 [英] Turn off Chrome/Safari spell checking by HTML/css

查看:2972
本文介绍了关闭通过HTML / CSS进行的Chrome / Safari拼写检查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于网络开发者有没有办法关闭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 inputs 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">

http://www.whatwg.org/specs/web-apps/current-work/multipage/editing.html#spelling-and-grammar-checking

更新:现在支持所有浏览器的最新版本。

Update: This is now supported in the latest versions of all browsers.

这篇关于关闭通过HTML / CSS进行的Chrome / Safari拼写检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆