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/strike/index.html | 47 ++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 files/zh-cn/web/html/element/strike/index.html (limited to 'files/zh-cn/web/html/element/strike') diff --git a/files/zh-cn/web/html/element/strike/index.html b/files/zh-cn/web/html/element/strike/index.html new file mode 100644 index 0000000000..c9481e3c88 --- /dev/null +++ b/files/zh-cn/web/html/element/strike/index.html @@ -0,0 +1,47 @@ +--- +title: +slug: Web/HTML/Element/strike +translation_of: Web/HTML/Element/strike +--- +
{{ Obsolete_header() }}
+ +

Summary

+ +

HTML <strike> 元素(或者 HTML 删除线元素)在文本上放置删除线。

+ +
+

使用注解:这个元素在 HTML4 和 XHTML1 中废除了,并且在 HTML5 中移除。如果语义上合适的话(也就是如果表示删除的内容),使用 {{ HTMLElement("del") }} 来代替。在所有其它的情况中,使用 {{ HTMLElement("s") }}。

+
+ +

属性

+ +

这个元素仅仅包含 全局属性

+ +

DOM 接口

+ +

这个元素实现了 {{domxref('HTMLElement')}} 接口。

+ +
+

实现注解:直到 Gecko 1.9.2(包含),Firefox 为这个元素实现了  {{domxref('HTMLSpanElement')}} 接口。

+
+ +

示例

+ +
<strike>Today's Special: Salmon</strike> SOLD OUT<br />
+<s>Today's Special: Salmon</s> SOLD OUT
+
+ +

代码结果为:

+ +

Today's Special: Salmon SOLD OUT
+ Today's Special: Salmon SOLD OUT

+ +

另见

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