html5 spellcheck属性如何工作? [英] How does the html5 spellcheck attribute work?

查看:671
本文介绍了html5 spellcheck属性如何工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

html5 spellcheck 属性如何工作?



我看到本页面中,Chrome 17应该支持 spellcheck << textarea> ,(但是不是< input type ='text'> ),但是当我输入该页面给出的textarea中的某些非单词时,我看不到任何改变。 / p>

解决方案

属性仍然很差(如果有的话)浏览器。例如,当我访问您在Chrome 18中提到的页面并在拼写错误的单词中键入拼写错误的单词应检查此文本区域是否有拼写错误的单词。浏览器将单词标记为拼写错误。双击其他一些单词也会使其表示为拼写错误。解释是我把西班牙语定为拼写检查语言。注意:可以通过右键单击输入法并选择拼写检查设置来更改此语言,但是在页面重新加载之前,更改无效。



在浏览器中查看这些设置。请注意,此处有一个复选框,用于控制是否正在使用拼写检查。


How does the html5 spellcheck attribute work?

I am seeing this page with Chrome 17, which is supposed to support spellcheck on <textarea>, (but not on <input type='text'>), but when I type in some non-words in the textarea given in that page, I see no change.

解决方案

The spellcheck attribute is still poorly (if at all) implemented in browsers. For example, when I visit the page you mention in Chrome 18 and type misspelled words into the box "This text area should be checked for mispelled words." the browser marks "words" as misspelled. Double clicking on some other word makes it indicated as misspelled, too. The explanation is that I had Spanish set as the spellchecking language. Note: This language can be changed by right-clicking on the input are and selecting the spellcheck settings, but the change does not take effect before the page is reloaded.

So check out those settings in your browser. Note that there’s a checkbox there that controls whether spellchecking is in use at all.

这篇关于html5 spellcheck属性如何工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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