<rtc>:Ruby 文本容器元素

Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

<rtc> HTML 元素包含在 <ruby> 元素内部使用的 <rb> 元素的 ruby 中呈现的字符的语义注释。<rb> 元素可以同时具有发音 (<rt>) 和语义 (<rtc>) 注释。

¥The <rtc> HTML element embraces semantic annotations of characters presented in a ruby of <rb> elements used inside of <ruby> element. <rb> elements can have both pronunciation (<rt>) and semantic (<rtc>) annotations.

Try it

属性

¥Attributes

该元素仅包含 全局属性

¥This element only includes the global attributes.

示例

¥Examples

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

结果

¥Result

技术总结

¥Technical summary

内容类别 没有任何。
允许的内容 措辞内容<rt> 元素。
标签遗漏 如果结束标记后面紧跟着 <rb><rtc><rt> 元素开始标记或其父结束标记,则可以省略结束标记。
允许的父级 <ruby> 元素。
允许的 ARIA 角色 任何
DOM 接口 HTMLElement

规范

Specification
HTML Standard
# rtc

¥Specifications

浏览器兼容性

BCD tables only load in the browser

¥Browser compatibility

也可以看看

¥See also