Tạo kiểu unicodeBidi Property
Thí dụ
Ghi đè văn bản trong phần tử <p>:
document.getElementById("myP").style.unicodeBidi = "bidi-override";
Định nghĩa và Cách sử dụng
Thuộc tính unicodeBidi được sử dụng với thuộc tính hướng để đặt hoặc trả về liệu văn bản có nên được 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ả lại 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: | thông thường |
---|---|
Giá trị trả lại: | Một chuỗi, đại diện cho mức độ nhúng đối với thuật toán hai chiều |
Phiên bản CSS | CSS2 |
Các ví dụ khác
Thí dụ
Trả lại thuộc tính unicodeBidi:
alert(document.getElementById("myP").style.unicodeBidi);
Các trang liên quan
Hướng dẫn CSS: Văn bản CSS
Tham chiếu CSS: thuộc tính unicode-bidi
❮ Đối tượng phong cách