目录搜索
文字
分享

HTML 5 <bdo> 标签

定义和用法

<bdo> 标签覆盖默认的文本方向。

HTML 4.01 与 HTML 5 之间的差异

NONE

例子:

1

<bdo dir="rtl">Here is some text</bdo>

属性

属性 描述 4 5
dir
  • ltr
  • rtl
必需。定义文本方向。 4 5

标准属性

1

2

class, contenteditable, contextmenu, dir, draggable, id, irrelevant,

lang, ref, registrationmark, tabindex, template, title

如需完整的描述,请访 HTML 5 中标准属性。

事件属性

1

2

3

4

5

onabort, onbeforeunload, onblur, onchange, onclick, oncontextmenu,

ondblclick, ondrag, ondragend, ondragenter, ondragleave, ondragover,

ondragstart, ondrop, onerror, onfocus, onkeydown, onkeypress, onkeyup,

onload, onmessage, onmousedown, onmousemove, onmouseover, onmouseout,

onmouseup, onmousewheel, onresize, onscroll, onselect, onsubmit, onunload

如需完整的描述,请访 HTML 5 中事件属性。

TIY 实例

文字方向
此例演示如何改变文字的方向。