我知道前一个为可读写,后一个为只读。对么?
解决方案 »
- 怎么用javascript解决IE6不支持的:hover
- 请问矢量图为什么不会变模糊 它的最小单位是什么??是正方形还是圆??
- 请教,如何用javascript获取treeview中TreeNode.Value的值
- 自己做的一个简单的AJAX树,附上源代码.另求哪位高手帮这颗树改成线条的(就像CSDN那样)
- javascript改变字体颜色粗细问题
- 关于提取字符串长度的问题
- innerHTML 是不是不适用于<table>标签?如何解决?
- 没有分了,单选框如何变灰,也就是不能选择?
- 请问如何改变一个图片的背景色,急
- 我想让table中的某行可见
- 点击链接弹出DIV。
- 如何把window.open改成window.showModalDialog
应该不太一样
ID 为“foo”的元素是否可以被编辑:
返回是bool类型
result=foo.isContentEditable; 处于可编辑状态
contentEditable=true
后者是用来设置属性的.
isContentEditable Property
---------------------------
Retrieves the value indicating whether the user can edit the contents of the object.SyntaxHTML N/A
Scripting [ bCanEdit = ] object.isContentEditable Possible ValuesbCanEdit Boolean that receives one of the following values.false The content cannot be edited.
true The content can be edited.
The property is read-only. The property has no default value.CONTENTEDITABLE Attribute | contentEditable Property
----------------------------------------------------
Sets or retrieves the string that indicates whether the user can edit the content of the object.SyntaxHTML <ELEMENT CONTENTEDITABLE = sCanEdit... >
Scripting object.contentEditable(v) [ = sCanEdit ] Possible ValuessCanEdit String that specifies or receives one of the following values.inherit Default. Content's ability to be edited by user is inherited from object's parent.
false Content cannot be edited by the user.
true Content can be edited by the user. The property is read/write. The property has a default value of inherit.