在浏览 display properties 的 css 草稿规范时遇到这个属性
显示: ruby
一些用于显示日语字符的搜索说明。
- 这是唯一的用例吗? (将它用于普通文本并没有做任何特别的事情,此外,chrome 将其标记为无效属性)
- 它与我们通常使用的 block 容器有何不同?
最佳答案
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/