gpt4 book ai didi

HTML5 'contenteditable' 有效值

转载 作者:太空宇宙 更新时间:2023-11-04 14:24:11 27 4
gpt4 key购买 nike

我可以为属性 contenteditable 选择什么值。

最佳答案

它可以包含:

  • true
  • 错误
  • 继承

引用:

The contentEditable DOM attribute, on getting, must return the string "true" if the content attribute is set to the true state, false" if the content attribute is set to the false state, and "inherit" otherwise. On setting, if the new value is case-insensitively equal to the string "inherit" then the content attribute must be removed, if the new value is case-insensitively equal to the string "true" then the content attribute must be set to the string "true", if the new value is case-insensitively equal to the string "false" then the content attribute must be set to the string "false", and otherwise the attribute setter must raise a SYNTAX_ERR exception.

来源: http://www.w3.org/TR/2008/WD-html5-20080610/editing.html

关于HTML5 'contenteditable' 有效值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4116833/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com