Kiểu unicodeBidi Thuộc tính
Ví dụ
Ghi đè văn bản trong phần tử <p>:
document.getElementById("myP").style.unicodeBidi = "bidi-override";
Hãy tự mình thử »Sự miêu tả
Thuộc tính unicodeBidi được sử dụng cùng với thuộc tính Direction để đặt hoặc trả về liệu văn bản có bị ghi đè để hỗ trợ nhiều ngôn ngữ trong cùng một tài liệu hay không.
Hỗ trợ trình duyệt
Property | |||||
---|---|---|---|---|---|
unicodeBidi | Yes | Yes | Yes | Yes | Yes |
Cú pháp
Trả về thuộc tính unicodeBidi:
object .style.unicodeBidi
Đặt thuộc tính unicodeBidi:
object .style.unicodeBidi = "normal|embed|bidi-override|initial|inherit"
Giá trị tài sản
Value | Description |
---|---|
normal | Does not use an additional level of embedding. This is default |
embed | Creates an additional level of embedding |
bidi-override | Creates an additional level of embedding. Reordering depends on the direction property |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Chi tiết kỹ thuật
Giá trị mặc định: | Bình thường |
---|---|
Giá trị trả về: | Một Chuỗi, biểu thị mức độ nhúng đối với thuật toán hai chiều |
Phiên bản CSS | CSS2 |
Thêm ví dụ
Ví dụ
Trả về thuộc tính unicodeBidi:
alert(document.getElementById("myP").style.unicodeBidi);
Hãy tự mình thử »Trang liên quan
Hướng dẫn CSS: Văn bản CSS
Tham chiếu CSS: thuộc tính unicode-bidi