HTML Ruby 文本 (<rt>) 元素包含字符的发音,字符在 ruby 注解中出现,它用于描述东亚字符的发音。这个元素始终在 ruby 元素中使用。
<table class="properties"> <tbody> <tr> <th scope="row"><a href="/zh-CN/docs/Web/HTML/Guides/Content_categories">内容分类</a></th> <td>无</td> </tr> <tr> <th scope="row">允许的内容</th> <td><a href="/zh-CN/docs/Web/HTML/Guides/Content_categories#Phrasing_content">短语内容</a></td> </tr> <tr> <th scope="row">标签省略</th> <td>如果 rt 元素紧紧跟随 rt 或者 rp 元素,或者父元素中没有更多内容了,结束标签可以省略。</td> </tr> <tr> <th scope="row">允许的父元素</th> <td>ruby 元素</td> </tr> <tr> <th scope="row">允许的 ARIA 角色</th> <td>任意 </td> </tr> <tr> <th scope="row">DOM 接口</th> <td>HTMLElement</td> </tr> </tbody> </table>
属性
该元素仅仅包含 全局属性。
示例
<ruby> 汉 <rt>Hàn</rt> 字 <rt>Zì</rt> </ruby>
规范
浏览器兼容性
参见
- ruby
- rp
- rb
- rtc
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
