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

{{HTMLRef}}

+ +

HTML <ruby> 元素 被用来展示东亚文字注音或字符注释。

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
内容范畴流式内容, 短语内容, palpable content.
允许内容短语内容
标签省略{{no_tag_omission}}
允许的父级元素See prose
DOM 接口{{domxref("HTMLElement")}}
+ +

属性

+ +

本元素支持 全局属性

+ +

示例

+ +

示例1: 字

+ +
<ruby>
+  汉 <rp>(</rp><rt>han</rt><rp>)</rp>
+  字 <rp>(</rp><rt>zi</rt><rp>)</rp>
+</ruby>
+ +

示例2: 词

+ +
<ruby>
+  明 日 <rp>(</rp><rt>ming ri</rt><rp>)</rp>
+</ruby>
+ +

规范

+ + + + + + + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('HTML WHATWG', 'text-level-semantics.html#the-ruby-element', '<ruby>')}}{{Spec2('HTML WHATWG')}}
{{SpecName('HTML5 W3C', 'text-level-semantics.html#the-ruby-element', '<ruby>')}}{{Spec2('HTML5 W3C')}}
+ +

浏览器兼容性

+ +
{{Compat("html.elements.ruby")}}
+ +

参阅

+ + + +
+
+
-- cgit v1.2.3-54-g00ecf