HTML5中的拼写检查
在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
在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
觉得可用,就经常来吧! 欢迎评论哦! html5教程,巧夺天工,精雕玉琢。小宝典献丑了!
声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!
若转载请注明出处: HTML5中的拼写检查
本文地址: https://pptw.com/jishu/586581.html