HTML Ruby 文本容器 ( <rtc> ) element embraces semantic annotations of characters presented in a ruby of <rb> elements used inside of <ruby> 元素。 <rb> elements can have both pronunciation ( <rt> ) and semantic ( <rtc> ) annotations.

The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.

内容类别 None.
准许内容 措词内容 or <rt> 元素。
Tag omission The closing tag can be omitted if it is immediately followed by a <rb> , <rtc> or <rt> element opening tag or by its parent closing tag.
Permitted parents A <ruby> 元素。
Permitted ARIA roles 任何
DOM 接口 HTMLElement

属性

此元素只包括 全局属性 .

范例

<div class="info">
  <ruby>
    <rbc>
      <rb>旧</rb><rt>jiù</rt>
      <rb>金</rb><rt>jīn</rt>
      <rb>山</rb><rt>shān</rt>
    </rbc>
    <rtc>San Francisco</rtc>
  </ruby>
</div>
					
.info {
  padding-top: 10px;
  font-size: 36px;
}
					

规范

规范 状态 注释
HTML 5.2
The definition of '<rtc>' in that specification.
推荐
HTML 5.1
The definition of '<rtc>' in that specification.
推荐
HTML5
The definition of '<rtc>' in that specification.
推荐 初始定义。

浏览器兼容性

The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. 更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
rtc Chrome 不支持 No Edge 不支持 No Firefox 完整支持 33 IE 不支持 No Opera 不支持 No Safari 不支持 No WebView Android 不支持 No Chrome Android 不支持 No Firefox Android 完整支持 33 Opera Android 不支持 No Safari iOS 不支持 No Samsung Internet Android 不支持 No

图例

完整支持

完整支持

不支持

不支持

另请参阅

元数据

  • 最后修改: