菜单
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE
     ❯   

HTML <ruby> 标签


示例

Ruby 注释

<ruby>
漢 <rt> ㄏㄢˋ </rt>
</ruby>
自己动手试一试 »

定义和用法

The <ruby> tag specifies a ruby annotation. (ruby 标签定义了一个 ruby 标注。)

A ruby annotation is a small extra text, attached to the main text to indicate the pronunciation or meaning of the corresponding characters. This kind of annotation is often used in Japanese publications. (Ruby 标注是附加在主文本上的一个小文本,用于指示相应字符的发音或含义。这类标注常用于日文出版物。)

Use <ruby> together with <rt> and <rp>: The <ruby> element consists of one or more characters that needs an explanation/pronunciation, and an <rt> element that gives that information, and an optional <rp> element that defines what to show for browsers that do not support ruby annotations. (将 <ruby><rt><rp> 一起使用:<ruby> 元素包含一个或多个需要解释/发音的字符,以及一个提供该信息的 <rt> 元素,还有一个可选的 <rp> 元素,它定义了不支持 Ruby 标注的浏览器应显示的内容。)


浏览器支持

表格中的数字表示完全支持该元素的首个浏览器版本。

元素
<ruby> 5.0 5.5 38.0 5.0 15.0

全局属性

The <ruby> tag also supports the Global Attributes in HTML. (ruby 标签也支持 HTML 中的全局属性。)


事件属性

The <ruby> tag also supports the Event Attributes in HTML. (ruby 标签也支持 HTML 中的事件属性。)


×

联系销售

如果您想将 W3Schools 服务用于教育机构、团队或企业,请发送电子邮件给我们
sales@w3schools.com

报告错误

如果您想报告错误,或想提出建议,请发送电子邮件给我们
help@w3schools.com

W3Schools 经过优化,旨在方便学习和培训。示例可能经过简化,以提高阅读和学习体验。教程、参考资料和示例会不断审查,以避免错误,但我们无法保证所有内容的完全正确性。使用 W3Schools 即表示您已阅读并接受我们的使用条款Cookie 和隐私政策

版权所有 1999-2024 Refsnes Data。保留所有权利。W3Schools 由 W3.CSS 提供支持