html5,什么是isContentEditable? [英] html5, what is isContentEditable?
问题描述
chrome支持 isContentEditable
属性(在Inspect Element中列出),但为INPUT报告 false
,FORM - 实际上,一切。
chrome supports the isContentEditable
property (lists it in the "Inspect Element"), but reports false
for INPUT, FORM - actually, everything.
例如,似乎INPUT,非读取,应该是真的。
too me, for example, seems that INPUT, non-readonly, should be true.
有人知道发生了什么吗?
does anybody know what's going on?
推荐答案
isContentEditable
与表格和输入框无关。
它旨在标记内联可编辑的html内容。
isContentEditable
doesn't have anything to do with forms and input boxes.
It was designed to be a way to flag inline editable html content.
您可以在此处看到一个有效的示例: http://www.navioo.com/javascript/dhtml/isContentEditable_Example_4513.html
You can see a working example here: http://www.navioo.com/javascript/dhtml/isContentEditable_Example_4513.html
你可以在这里阅读
: http://www.w3.org/TR/2009/WD-html5-20090423/editing.html
或: http://blog.whatwg.org/ the-road-to-html-5-contenteditable
这篇关于html5,什么是isContentEditable?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!