-
Notifications
You must be signed in to change notification settings - Fork 8k
/
index.md
72 lines (58 loc) · 1.6 KB
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
---
title: <rtc>
slug: Web/HTML/Element/rtc
---
{{HTMLSidebar}}{{deprecated_header}}
**HTML `<rtc>` 元素**包含文字的语义注解,它们在 {{HTMLElement("rb")}} 元素中展示。{{HTMLElement("rb")}} 元素可以拥有发音 ({{HTMLElement("rt")}}) 和语义 ({{HTMLElement("rtc")}}) 注解。
<table class="properties">
<tbody>
<tr>
<th scope="row"><a href="/zh-CN/docs/Web/HTML/Content_categories">内容分类</a></th>
<td>无</td>
</tr>
<tr>
<th scope="row">允许的内容</th>
<td><a href="/zh-CN/docs/Web/HTML/Content_categories#Phrasing_content">短语内容</a> 或者 {{HTMLElement("rt")}} 元素</td>
</tr>
<tr>
<th scope="row">标签省略</th>
<td>如果它紧紧跟随{{HTMLElement("rb")}},{{HTMLElement("rtc")}} 或者 {{HTMLElement("rt")}} 元素的起始标签,或父元素的闭合标签,它的闭合标签就可以省略。</td>
</tr>
<tr>
<th scope="row">允许的父元素</th>
<td>{{HTMLElement("ruby")}} 元素。</td>
</tr>
<tr>
<th scope="row">允许的 ARIA 角色</th>
<td>任意</td>
</tr>
<tr>
<th scope="row">DOM 接口</th>
<td>{{domxref("HTMLElement")}}</td>
</tr>
</tbody>
</table>
## 属性
该元素仅仅包含 [全局属性](/zh-CN/docs/HTML/Global_attributes)
## 示例
```html
<ruby>
<rb>旧</rb>
<rb>金</rb>
<rb>山</rb>
<rt>jiù</rt>
<rt>jīn</rt>
<rt>shān</rt>
<rtc>San Francisco</rtc>
</ruby>
```
## 规范
{{Specifications}}
## 浏览器兼容性
{{Compat}}
## 参见
- {{HTMLElement("ruby")}}
- {{HTMLElement("rp")}}
- {{HTMLElement("rb")}}
- {{HTMLElement("rt")}}
{{HTMLSidebar}}