rt

<rt>

HTML<rt>element 包含字符的发音,字符在 ruby 注解中出现,它用于描述东亚字符的发音。这个元素始终在<ruby>元素中使用。

内容类别没有。
允许的内容 Phrasing content.
标记遗漏如果<rt>元素之后紧跟着一个<rt>或<rp>元素,或者父元素中没有更多内容,则可以省略结束标签
允许父母一个<ruby>元素。
允许ARIA角色任何
DOM界面HTML元素

属性

这个元素只包含全局属性。

例子

<ruby> 漢 <rt>Kan</rt> 字 <rt>ji</rt> </ruby>

规范

SpecificationStatusComment
HTML Living StandardThe definition of '<rt>' in that specification.Living Standard
HTML5The definition of '<rt>' in that specification.Recommendation

浏览器兼容性

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic Support5No385155

FeatureAndroidChrome for AndroidEdge mobileFirefox for AndroidIE mobileOpera AndroidiOS Safari
Basic Support(Yes)(Yes)No38(Yes)15(Yes)