<strike>
Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.
<strike>
HTML 元素在文本上放置删除线(水平线)。
¥The <strike>
HTML element places a strikethrough (horizontal line) over text.
警告:此元素在 HTML 4 和 XHTML 1 中已弃用,并在 HTML 生活标准 中废弃。如果语义上合适,即如果它代表已删除的内容,请改用
<del>
。在所有其他情况下使用<s>
。¥Warning: This element is deprecated in HTML 4 and XHTML 1, and obsoleted in the HTML Living Standard. If semantically appropriate, i.e., if it represents deleted content, use
<del>
instead. In all other cases use<s>
.
属性
示例
结果
技术总结
规范
Specification |
---|
HTML Standard # strike |
浏览器兼容性
BCD tables only load in the browser
也可以看看
¥See also
<s>
元素。- 如果数据已被删除,则应使用
<del>
元素。 - CSS
text-decoration
属性可用于设置带删除线的文本样式。