<strike>

已弃用: 不再推荐使用该特性。虽然一些浏览器仍然支持它,但也许已从相关的 web 标准中移除,也许正准备移除或出于兼容性而保留。请尽量不要使用该特性,并更新现有的代码;参见本页面底部的兼容性表格以指导你作出决定。请注意,该特性随时可能无法正常工作。

<strike> HTML 元素在文本上添加删除线(水平线)。

警告: 该元素在 HTML 4 和 XHTML 1 中已被弃用,并且在 HTML 动态标准被弃用。如果语义合适,即表示已删除的内容,请使用 <del> 来代替。在所有其他情况下,请使用 <s>

属性

这个元素包含全局属性

示例

html
&lt;strike&gt;: <strike>今日特供:鲑鱼</strike> 已售罄<br />
&lt;s&gt;: <s>今日特供:鲑鱼</s> 已售罄

结果

技术概要

DOM 接口 HTMLElement

规范

Specification
HTML
# strike

浏览器兼容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
strike
Deprecated

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Deprecated. Not for use in new websites.
See implementation notes.

参见

  • <s> 元素。
  • <del> 元素应该在数据已经删除的情况下使用。
  • 可以使用 CSS 的 text-decoration 属性为文本添加删除线样式。