css - 什么是显示:ruby

标签 css display

在浏览 display properties 的 css 草稿规范时遇到这个属性

显示: ruby

一些用于显示日语字符的搜索说明。

  • 这是唯一的用例吗? (将它用于普通文本并没有做任何特别的事情,此外,chrome 将其标记为无效属性)
  • 它与我们通常使用的 block 容器有何不同?

最佳答案

From HTML5 docs

The ruby element allows one or more spans of phrasing content to be marked with ruby annotations. Ruby annotations are short runs of text presented alongside base text, primarily used in East Asian typography as a guide for pronunciation or to include other annotations

所以你基本上用它来发音任何语言。但它并不限制您仅将其用于此目的。

关于css - 什么是显示:ruby,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42897783/

相关文章:

css - 滚动不显示具有百分比宽度的元素

javascript - 切换 jquery offsetParent() 方法

html - 文本分隔符适用于第 n 个子项,但不适用于无序列表下的列表项的 li + li

html - 在一列中,另一个高度的一个 div flex

java - 为成员(member)显示不同月份

html - 如何让我的汉堡包菜单直接出现在我的汉堡包图标下方?

javascript - 在html中显示react javascript

height - 100% 高度问题

html - 如何使用 polymer 改变字体样式

html - 如何对图片进行编码以将其用作显示屏?