< element contentEditable =" true">有什么用?在HTML? [英] What's the use of <element contentEditable="true"> in html?
本文介绍了< element contentEditable =" true">有什么用?在HTML?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
编辑:参见 here
解决方案
这通常用于富文本输入。虽然像< code>< input type =text>< / code>这样的常规表单元素不提供真正的富文本编辑选项,但具有
contentEditable
设置为
true
可以。
大多数可用于Web的富文本编辑器(例如FCK编辑器)都是使用< iframe />
并使用 contentEditable
设置为
true
。
It seems it allows you to edit the content of an element, but what is actually happening? What's the use of this property?
EDIT: see here
解决方案
This is usually used for rich text input. While regular form elements like <input type="text"/>
don't provide real rich text editing options, elements with contentEditable
set to true
can.
Most rich text editors (e.g. FCK Editor) available for the web are built using an <iframe/>
with contentEditable
set to true
.
这篇关于< element contentEditable =" true">有什么用?在HTML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文