unicode-bidi

設定有關雙向演算法的內嵌層級。

語法

{ unicode-bidi: sEmbedLevel }

可能的值

sEmbedLevel

指定下列其中一個值的字串:

normal

預設值。元素不會開啟額外的內嵌層級。針對內嵌元素,可以跨元素邊界進行隱含重新排序。

bidi-override

除了在元素內部的情況以外,與 embed 值相同,會根據 direction 屬性精確依序重新排序。此值會覆寫隱含的雙向演算法。

embed

元素會開啟額外的內嵌層級。 direction 屬性的值會指定內嵌層級。重新排序在元素內部隱含進行。

此屬性的預設值為 normal ,而且不是繼承屬性。

備註

unicode-bidi 屬性需與 direction 屬性搭配使用。

Unicode 雙向演算法會根據內嵌字元順序的固有方向自動將內嵌字元順序反轉。例如,英文文件的基本方向是由左至右。如果文件內的段落有部分包含由右至左閱讀順序的語言,該語言的方向會正確顯示為由右至左。套用雙向演算法的瀏覽器會正確反轉語言方向。

標準資訊

您可以在 Cascading Style Sheets (CSS), Level 2 (CSS2) (階層式樣式表 (CSS) 層級 2 (CSS2)) Ee371300.xtlink_newWindow(zh-tw,Expression.40).png 找到此屬性的定義。

適用範圍

a, abbr, acronym, address, b, bdo, big, blockquote, body, button, caption, center, cite, code, col, colgroup, custom, dd, defaults, del, dfn, div, dl, dt, em, embed, fieldset, font, form, hn, i, img, input type=button, input type=checkbox, input type=file, input type=image, input type=password, input type=radio, input type=reset, input type=submit, input type=text, ins, li, object, ol, option, p, q, rt, ruby, s, select, span, sub, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, var, xmp

另請參閱

概念

direction