From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/zh-cn/web/html/element/del/index.html | 109 ++++++++++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 files/zh-cn/web/html/element/del/index.html (limited to 'files/zh-cn/web/html/element/del/index.html') diff --git a/files/zh-cn/web/html/element/del/index.html b/files/zh-cn/web/html/element/del/index.html new file mode 100644 index 0000000000..ebb6162f64 --- /dev/null +++ b/files/zh-cn/web/html/element/del/index.html @@ -0,0 +1,109 @@ +--- +title: +slug: Web/HTML/Element/del +tags: + - Element + - HTML + - HTML edits + - Web + - del +translation_of: Web/HTML/Element/del +--- +

HTML的<del>标签表示一些被从文档中删除的文字内容。比如可以在需要显示修改记录或者源代码差异的情况使用这个标签。{{HTMLElement("ins")}}标签的作用恰恰于此相反:表示文档中添加的内容。

+ +

这个标签通常(但不一定要)在文字上显示删除线。

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
内容分类短语元素 或者 流式元素 。
允许的内容透明内容模型
标签省略{{no_tag_omission}}
允许的父元素任意短语元素 
允许的 ARIA 角色任意
DOM 接口{{domxref("HTMLModElement")}}
+ +

属性

+ +

这个标签包含全局属性

+ +
+
{{htmlattrdef("cite")}}
+
提供一个URI,其中的资源解释作出修改的原因(比如:根据某次会议讨论)。
+
{{htmlattrdef("datetime")}}
+
这个属性说明修改的时间和日期,这里的时间和日期格式要符合规范。如果设置的值不符合该规范,那么它将没有任何意义。
+
+ +

示例

+ +
<p><del>This text has been deleted</del>, here is the rest of the paragraph.</p>
+<del ><p >This paragraph has been deleted.</p ></del >
+ +

结果

+ +

This text has been deleted, here is the rest of the paragraph.

+ +

This paragraph has been deleted.

+ +

规范

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
规范状态评论
{{SpecName('HTML WHATWG', 'edits.html#the-del-element', '<del>')}}{{Spec2('HTML WHATWG')}} 
{{SpecName('HTML5 W3C', 'edits.html#the-del-element', '<del>')}}{{Spec2('HTML5 W3C')}} 
{{SpecName('HTML4.01', 'struct/text.html#h-9.4', '<del>')}}{{Spec2('HTML4.01')}} 
+ +

浏览器兼容性

+ + + +

{{Compat("html.elements.del")}}

+ +

相关链接

+ + + +
{{HTMLRef}}
-- cgit v1.2.3-54-g00ecf