Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

<del>

这篇翻译不完整。请帮忙从英语翻译这篇文章

HTML 删除文字元素(<del>)表示已经从文档中删除的文本范围。此元素通常是(但不必)呈现删除线的文本。

Content categories Phrasing content or flow content.
Permitted content Transparent.
Tag omission 不允许,开始标签和结束标签都不能省略。
Permitted parent elements Any element that accepts phrasing content.
DOM interface HTMLModElement

属性

This element includes the global attributes.

cite
A URI for a resource that explains the change (for example, meeting minutes).
datetime
This attribute indicates the time and date of the change and must be a valid date with an optional time string. If the value cannot be parsed as a date with an optional time string, the element does not have an associated time stamp.

示例

<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 >

Result

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

This paragraph has been deleted.

Specifications

Specification Status Comment
WHATWG HTML Living Standard
<del>
Living Standard  
HTML5
<del>
Recommendation  
HTML 4.01 Specification
<del>
Recommendation  

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) 1.0 (1.7 or earlier) (Yes) (Yes) (Yes)

相关链接

  • <ins> 是用于插入文本的元素

文档标签和贡献者

标签: 
 此页面的贡献者: Ende93
 最后编辑者: Ende93,