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

内容范畴 流式内容, 短语内容, palpable content.
允许内容 短语内容
标签省略 不允许,开始标签和结束标签都不能省略。
允许的父级元素 See prose
DOM 接口 HTMLElement

属性

本元素支持 全局属性

示例

示例1: 字

<ruby>
  漢 <rp>(</rp><rt>Kan</rt><rp>)</rp>
  字 <rp>(</rp><rt>ji</rt><rp>)</rp>
</ruby>

示例2: 词

<ruby>
  明日 <rp>(</rp><rt>Ashita</rt><rp>)</rp>
</ruby>

规范

Specification Status Comment
HTML Living Standard
<ruby>
Living Standard  
HTML5
<ruby>
Recommendation  

浏览器兼容性

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
rubyChrome Full support 5Edge Full support YesFirefox Full support 38IE Full support 5Opera Full support 15Safari Full support 5WebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 38Opera Android Full support 14Safari iOS Full support YesSamsung Internet Android Full support Yes

Legend

Full support  
Full support

参阅

文档标签和贡献者

标签: 
最后编辑者: zhangchen,