当前位置: 移动技术网 > IT编程>网页制作>Html5 > HTML5中的拼写检查

HTML5中的拼写检查

2018年12月27日  | 移动技术网IT编程  | 我要评论

在html5 中,多了不少标签和属性,其中一个的是
contenteditable属性,可以让用户在页面上编辑属性,比如:
<!doctype html><html>
<body>
this is an editable paragraph.
this is not an editable paragraph.

</body>
</html>
  设置contenteditable为true,用户可以编辑中的内容了,
甚至可以加入拼写检查,比如:
spellcheck="true"
<!doctype html>
<html>
<body>
<p  contenteditable="true" spellcheck="true" >this blog is for progammers(programmers)

</body>
</html>
  则如果拼写错误,则会下划线指出输入错误

 


摘自 jackyrong

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网