?
This document uses PHP Chinese website manual Release
HTML 的<rp>
元素被用于對不支持使用<ruby>
元素的 ruby 注釋的顯示的瀏覽器提供回退括號元件。
Content categories | 無 |
---|---|
允許的內(nèi)容 | 文本 |
標(biāo)簽省略 | 不允許,開始標(biāo)簽和結(jié)束標(biāo)簽都不能省略。 |
允許的父元素 |
|
允許的 ARIA 角色 | 任意 |
DOM 接口 | HTMLElement |
只包含全局屬性。
Ruby 注解用于展示東亞文字的發(fā)音,例如使用日語羅馬音和漢語拼音的文字。 <rp>
元素用于不支持<ruby>
元素的情況。 <rp>
的內(nèi)容提供了應(yīng)該展示的東西,通常是圓括號,以便表示 ruby 注解的存在。
<ruby> 漢 <rp>(</rp><rt>Kan</rt><rp>)</rp> 字 <rp>(</rp><rt>ji</rt><rp>)</rp></ruby>
Specification | Status | Comment |
---|---|---|
HTML Living StandardThe definition of '<rp>' in that specification. | Living Standard | |
HTML5The definition of '<rp>' in that specification. | Recommendation |
Feature | Chrome | Edge | Firefox | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic Support | 5 | No | 38 | 5 | 15 | 5 |
Feature | Android | Chrome for Android | Edge mobile | Firefox for Android | IE mobile | Opera Android | iOS Safari |
---|---|---|---|---|---|---|---|
Basic Support | (Yes) | (Yes) | No | 38 | (Yes) | 15 | (Yes) |