English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
<bdo>-Element (HTML-Dual-Directional-Overlay-Element) wird verwendet, um die Ausrichtung des aktuellen Textes zu überlagern, was dazu führt, dass die Zeichen in der angegebenen Richtung angeordnet werden.
Textausrichtung angeben:
!doctype html <html> <head> <meta charset="UTF-8"> <title>HTML5 Beispiel von de.oldtoolbag.com/title> </head> <body> <h1>Berühmte Küstenlieder/h1> <p>Die englische Lied "Oh, ich liebe es, am Meer zu sein"/p> <p>Sieht so aus auf Hebräisch: <span dir="rtl">Ah, ich liebe es, am Meer zu sein</span>/span>/p> <p>Im Computer39Erinnerung, dies wird gespeichert, als <bdo dir="ltr">Ah, ich liebe es, am Meer zu sein</bdo>/bdo></p> <p>The text in this paragraph is displayed from left to right.</p> <p><bdo dir="rtl">The text in this paragraph is displayed from right to left.</bdo></p> </body> </html>Test and see ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the <bdo> tag.
bdo stands for bidi override (Bi-directional Override).-Directional Override).
<bdo> Tag is used to override the default text direction.
None.
Attribute | Value | Description |
---|---|---|
dir | ltr rtl | Required. Specifies the text direction within the <bdo> element. The attribute value can be: |
<bdo> Tag Supported HTML Global Attributes.
<bdo> Tag Supported HTML Event Attributes.