<ruby>
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
HTML <ruby>
元素的意思是旁註標記。旁註標記用於標示東亞文字的發音。
嘗試一下
內容類型 | 流內容、段落型內容、捫及內容 |
---|---|
允許內容 | 段落型內容 |
標籤省略 | 不允許,開始和結束標籤都是必須的。 |
允許父元素 | Any element that accepts phrasing content |
DOM 介面 | HTMLElement |
屬性
這個元素只支援全域屬性。
範例
範例一:字
html
<ruby>
漢 <rp>(</rp><rt>Kan</rt><rp>)</rp> 字 <rp>(</rp><rt>ji</rt><rp>)</rp>
</ruby>
範例二:詞
html
<ruby> 明日 <rp>(</rp><rt>Ashita</rt><rp>)</rp> </ruby>
規範
Specification |
---|
HTML # the-ruby-element |
瀏覽器相容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
ruby |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.