HTML 5 <bdo> 標(biāo)簽
定義和用法
<bdo> 標(biāo)簽覆蓋默認(rèn)的文本方向。
HTML 4.01 與 HTML 5 之間的差異
NONE
例子:
<bdo dir="rtl">Here is some text</bdo>
屬性
屬性 | 值 | 描述 | 4 | 5 |
---|---|---|---|---|
dir |
|
必需。定義文本方向。 | 4 | 5 |
標(biāo)準(zhǔn)屬性
class, contenteditable, contextmenu, dir, draggable, id, irrelevant, lang, ref, registrationmark, tabindex, template, title
如需完整的描述,請訪 HTML 5 中標(biāo)準(zhǔn)屬性。
事件屬性
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 實例
- 文字方向
- 此例演示如何改變文字的方向。