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

概述

+ +

HTML元素 <i> 用于表现因某些原因需要区分普通文本的一系列文本。例如技术术语、外文短语或是小说中人物的思想活动等,它的内容通常以斜体显示。

+ + + +

属性

+ +

该元素只包含 全局属性

+ +

示例

+ +
<p>The Latin phrase <i class="latin">Veni, vidi, vici</i> is often
+mentioned in music, art, and literature</p>
+
+ +

效果

+ +

The Latin phrase Veni, vidi, vici is often mentioned in music, art, and literature

+ +

注释

+ +

在较早版本的 HTML 技术参数声明中,<i> 标签只是一个用于将文本显示为斜体的表示性元素,很像 {{HTMLElement("b")}} 标签被用来将文本显示为粗体。情况不再是这样了,因为这些标签现在定义了更多的语义而不只是排版外观。<i> 标签应表现一系列带有不同语义的文本,它的典型样式显示为斜体。这意味着浏览器通常任会将内容显示为斜体,但是,根据定义,不再是必须的。

+ +

该元素只在没有更适合的语义元素表示时使用。例如:

+ + + +

使用class属性用来识别为何使用该元素是一个很好的办法,这样的话,如果该表示以后需要改变,就可以有选择性地改变样式表。

+ +

技术参数

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('HTML WHATWG', 'text-level-semantics.html#the-i-element', '<i>')}}{{Spec2('HTML WHATWG')}} 
{{SpecName('HTML5 W3C', 'text-level-semantics.html#the-i-element', '<i>')}}{{Spec2('HTML5 W3C')}} 
{{SpecName('HTML4.01', 'present/graphics.html#h-15.2.1', '<b>')}}{{Spec2('HTML4.01')}} 
+ +

浏览器兼容性

+ +
{{CompatibilityTable}}
+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support1.0{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
+
+ +

{{HTMLRef}}

-- cgit v1.2.3-54-g00ecf