Báo giá phong cách
Ví dụ
Thay đổi dấu ngoặc kép:
document.getElementById("myQ").style.quotes = "'\253' '\273'";
Hãy tự mình thử »Sự miêu tả
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ả về 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 có |
---|---|
Giá trị trả về: | Một Chuỗi, biểu thị loại dấu ngoặc kép cho các trích dẫn được nhúng |
Phiên bản CSS | CSS2 |
Thêm ví dụ
Ví dụ
Trả về thuộc tính báo giá:
alert(document.getElementById("myQ").style.quotes);
Hãy tự mình thử »Trang liên quan
Tham chiếu CSS: thuộc tính trích dẫn