ruby-tag

Adjust the vertical positioning of ruby text

独自空忆成欢 提交于 2019-12-04 01:20:42
问题 I'd like to use HTML <ruby> to mark up Japanese text with its pronunciation. However, I've found that at large font sizes, the baseline of the <rt> text is well above the top of the characters it's marking up. Here's an example which shows what I mean: ruby { font-size: 72pt; } <ruby>遅<rt>おそ</rt>い</ruby> For reference, this is how it appears in my current browser (Firefox on Linux), though I've seen similar behavior in other browsers: What I would like is to adjust the height of the ruby text

Adjust the vertical positioning of ruby text

人盡茶涼 提交于 2019-12-01 04:52:15
I'd like to use HTML <ruby> to mark up Japanese text with its pronunciation. However, I've found that at large font sizes, the baseline of the <rt> text is well above the top of the characters it's marking up. Here's an example which shows what I mean: ruby { font-size: 72pt; } <ruby>遅<rt>おそ</rt>い</ruby> For reference, this is how it appears in my current browser (Firefox on Linux), though I've seen similar behavior in other browsers: What I would like is to adjust the height of the ruby text to be something more like this: However, nothing I try seems to have any effect on the positioning of