English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
HTML Ruby 文本 ( <rt>) 元素包含字符的发音,字符在 ruby 注解中出现,它用于描述东亚字符的发音。这个元素始终在 <ruby> 元素中使用。
一个 ruby 注释:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>基础教程(oldtoolbag.com)</title> </head> <body> <ruby> 汉 <rt>Hàn</rt> 字 <rt>Zì</rt> </ruby> </body> </html>Test and see ‹/›
IEFirefoxOperaChromeSafari
IE 9+Firefox, Opera, Chrome and Safari support the <rt> tag.
Note:IE 8 or earlier versions of IE browsers do not support the <rt> tag.
The <rt> tag defines the explanation or pronunciation of characters (Chinese phonetic or characters).
combine the <rt> tag with <ruby> and <rp> used together with tags:
The <ruby> element consists of one or more characters that need to be explained/characters of pronunciation and a <rt> element that provides this information, including an optional <rp> element, which defines the content to be displayed when the browser does not support the "ruby" element.
If the <rt> element is immediately followed by another <rt> or <rp> element, or there is no more content in the parent element, the closing tag can be omitted.
The <rt> tag is an HTML5 new tags.
Support for <rt> Tag Global Attributes of HTML.
Support for <rt> Tag HTML Event Attributes.