title | slug |
---|---|
<ruby> |
Web/HTML/Element/ruby |
{{HTMLSidebar}}
HTML <ruby>
元素的意思是旁註標記。旁註標記用於標示東亞文字的發音。
{{EmbedInteractiveExample("pages/tabbed/ruby.html", "tabbed-shorter")}}
內容類型 | 流內容、段落型內容、捫及內容 |
---|---|
允許內容 | 段落型內容 |
標籤省略 | 不允許,開始和結束標籤都是必須的。 |
允許父元素 | Any element that accepts phrasing content |
DOM 介面 | {{domxref("HTMLElement")}} |
這個元素只支援全域屬性。
<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>
{{Specifications}}
{{Compat}}
- {{HTMLElement("rt")}}
- {{HTMLElement("rp")}}
- {{HTMLElement("rb")}}
- {{HTMLElement("rtc")}}
- {{HTMLElement("rbc")}}
- {{CSSxRef("text-transform")}}: full-size-kana