Báo giá phong cách Tài sản
Thí dụ
Thay đổi dấu ngoặc kép:
document.getElementById("myQ").style.quotes = "'\253' '\273'";
Định nghĩa và Cách sử dụng
Thuộc tính dấu ngoặc kép đặt hoặc trả về loại dấu ngoặc kép cho các trích dẫn được nhúng.
Hỗ trợ trình duyệt
Property | |||||
---|---|---|---|---|---|
quotes | Yes | Yes | Yes | Yes | Yes |
Cú pháp
Trả lại thuộc tính báo giá:
object.style.quotes
Đặt thuộc tính dấu ngoặc kép:
object.style.quotes = "none|string string string string|initial|inherit"
Giá trị tài sản
Value | Description |
---|---|
none | Specifies that the open-quote and close-quote values will not produce any quotation marks. This is default |
string string string string | Specifies which quotation marks to use. The first two values specifies the first level of quotation embedding, the next two values specifies the next level of quote embedding, etc |
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: | không ai |
---|---|
Giá trị trả lại: | Một chuỗi, đại diện cho loại dấu ngoặc kép cho các trích dẫn được nhúng |
Phiên bản CSS | CSS2 |
Các ví dụ khác
Thí dụ
Trả lại thuộc tính báo giá:
alert(document.getElementById("myQ").style.quotes);
Các trang liên quan
Tham chiếu CSS: trích dẫn thuộc tính
❮ Đối tượng phong cách