亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

Verzeichnis suchen
Attributes accesskey (attribute) class (attribute) contenteditable (attribute) contextmenu (attribute) data-* (attribute) dir (attribute) draggable (attribute) dropzone (attribute) Global attributes hidden (attribute) id (attribute) itemid (attribute) itemprop (attribute) itemref (attribute) itemscope (attribute) itemtype (attribute) lang (attribute) slot (attribute) spellcheck (attribute) style (attribute) tabindex (attribute) title (attribute) translate (attribute) Elements a abbr address area article aside audio b base bdi bdo blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 head header hr html i iframe img input input type="button" input type="checkbox" input type="color" input type="date" input type="datetime"-local input type="email" input type="file" input type="hidden" input type="image" input type="month" input type="number" input type="password" input type="radio" input type="range" input type="reset" input type="search" input type="submit" input type="tel" input type="text" input type="time" input type="url" input type="week" ins kbd label legend li link main map mark menu menuitem meta meter nav noscript object ol optgroup option output p param picture pre progress q rp rt rtc ruby s samp script section select slot small source span strong style sub summary sup table tbody td template textarea tfoot th thead time title tr track u ul var video wbr Miscellaneous Attributes Block-level elements CORS enabled image CORS settings attributes Element Inline elements Kinds of HTML content Link types Microdata Optimizing your pages for speculative parsing Preloading content Reference Supported media formats Using the application cache Obsolete acronym applet basefont big blink center command content dir element font frame frameset hgroup image input type="datetime" isindex keygen listing marquee nextid noframes plaintext strike tt xmp
Figuren

全局屬性dir是一個(gè)指示元素中文本方向的枚舉屬性。它的取值如下:

  • ltr, 指從,用于那種從左向右書(shū)寫(xiě)的語(yǔ)言(比如英語(yǔ));

  • rtl, 指從,用于那種從右向左書(shū)寫(xiě)的語(yǔ)言(比如阿拉伯語(yǔ));

  • auto, 指由用戶代理決定方向。它在解析元素中字符時(shí)會(huì)運(yùn)用一個(gè)基本算法,直到發(fā)現(xiàn)一個(gè)具有強(qiáng)方向性的字符,然后將這一方向應(yīng)用于整個(gè)元素。

使用說(shuō)明

這個(gè)屬性對(duì)有不同語(yǔ)義的<bdo>元素是必須的。

  • 這個(gè)屬性在<bdi>元素中不可繼承。未賦值時(shí),它的默認(rèn)值是auto。

  • 這個(gè)屬性可以被CSS屬性directionunicode-bidi覆蓋,如果CSS網(wǎng)頁(yè)有效且該元素支持這些屬性的話。

  • 由于文本的方向是和內(nèi)容的語(yǔ)義而不是和表現(xiàn)相關(guān),因此有可能的話,網(wǎng)頁(yè)開(kāi)發(fā)者使用這一屬性而非CSS屬性是被推薦的。這樣,即使在不支持CSS或禁用CSS的瀏覽器中,文本也會(huì)正常顯示。

  • auto應(yīng)當(dāng)用于方向未知的數(shù)據(jù),如用戶輸入的數(shù)據(jù),最終保存在數(shù)據(jù)庫(kù)中的數(shù)據(jù)。

規(guī)范

規(guī)范

狀態(tài)

評(píng)論

WHATWG HTML生活標(biāo)準(zhǔn)該規(guī)范中'dir'的定義。

生活水平

最新的快照HTML5.1沒(méi)有變化

HTML5.1該規(guī)范中'dir'的定義。

建議

WHATWG HTML Living Standard的快照,HTML5沒(méi)有改變

HTML5該規(guī)范中'dir'的定義。

建議

WHATWG HTML Living Standard的快照,從HTML 4.01規(guī)范中增加了自動(dòng)值,現(xiàn)在是一個(gè)真正的全局屬性。

HTML 4.01規(guī)范該規(guī)范中'dir'的定義。

建議

除<applet>,<base>,<basefont>,<bdo>,<br>,<frame>,<frameset>,<iframe>,<param>和<script>外的所有元素均受支持。

瀏覽器兼容性

Feature

Chrome

Firefox (Gecko)

Internet Explorer

Opera

Safari

Basic support

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

Feature

Android

Chrome for Android

Firefox Mobile (Gecko)

IE Mobile

Opera Mobile

Safari Mobile

Basic support

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

Vorheriger Artikel: N?chster Artikel: