direction
英 [d??rek?n]? ?美 [d??r?k??n, da?-]??
n.方向;趨勢;方面;用法說明
css direction屬性 語法
作用:direction 屬性規(guī)定文本的方向 / 書寫方向。
說明:該屬性指定了塊的基本書寫方向,以及針對 Unicode 雙向算法的嵌入和覆蓋方向。不支持雙向文本的用戶代理可以忽略這個屬性。?
注釋:所有瀏覽器都支持 direction 屬性。任何的版本的 Internet Explorer (包括 IE8)都不支持屬性值 "inherit"。
css direction屬性 示例
<html> <head> <style type="text/css"> div.one { direction: rtl } div.two { direction: ltr } </style> </head> <body> <div class="one">Some text. Right-to-left direction.</div> <div class="two">Some text. Left-to-right direction.</div> </body> </html>
點擊 "運行實例" 按鈕查看在線實例