<del>
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
HTML 的 <del>
标签表示一些被从文档中删除的文字内容。比如可以在需要显示修改记录或者源代码差异的情况使用这个标签。<ins>
标签的作用恰恰于此相反:表示文档中添加的内容。
这个标签通常(但不一定要)在文字上显示删除线。
属性
示例
html
<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.~~
规范
Specification |
---|
HTML # the-del-element |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
del | ||||||||||||
cite | ||||||||||||
datetime |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.