?
This document uses PHP Chinese website manual Release
HTML <ruby>元素代表一個(gè)ruby注釋。Ruby注釋用于顯示東亞字符的發(fā)音。
內(nèi)容類別 | Flow content, phrasing content, palpable content. |
---|---|
允許的內(nèi)容 | Phrasing content. |
標(biāo)記遺漏 | 沒有,起始和結(jié)束標(biāo)簽都是強(qiáng)制性的。 |
允許父母 | 任何接受 phrasing content的元素。 |
允許ARIA角色 | 任何 |
DOM界面 | HTML元素 |
這個(gè)元素只包含全局屬性。
<ruby> 漢 <rp>(</rp><rt>Kan</rt><rp>)</rp> 字 <rp>(</rp><rt>ji</rt><rp>)</rp></ruby>
<ruby> 明日 <rp>(</rp><rt>Ashita</rt><rp>)</rp></ruby>
Specification | Status | Comment |
---|---|---|
HTML Living StandardThe definition of '<ruby>' in that specification. | Living Standard | |
HTML5The definition of '<ruby>' in that specification. | Recommendation |
Feature | Chrome | Edge | Firefox | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic Support | 5 | (Yes) | 38 | 5 | 15 | 5 |
Feature | Android | Chrome for Android | Edge mobile | Firefox for Android | IE mobile | Opera Android | iOS Safari |
---|---|---|---|---|---|---|---|
Basic Support | (Yes) | (Yes) | (Yes) | 38 | No | 15 | (Yes) |