Trích dẫn CSS
Ví dụ
Chỉ định dấu ngoặc kép cho đoạn trích:
#a {
quotes: "'" "'";
}
Hãy tự mình thử »
Định nghĩa và cách sử dụng
Thuộc tính quotes
đặt loại dấu ngoặc kép cho các trích dẫn.
Đưa ra bản chạy thử ❯
Giá trị mặc định: | không được chỉ định |
---|
Thừa hưởng: | Đúng |
---|
Hoạt hình: | KHÔNG. Đọc về hoạt hình |
---|
Phiên bản: | CSS2 |
---|
Cú pháp JavaScript: | object .style.quotes="'\253' '\273'" Hãy thử nó |
---|
Hỗ trợ trình duyệt
Các số trong bảng chỉ định phiên bản trình duyệt đầu tiên hỗ trợ đầy đủ thuộc tính.
Property |
|
|
|
|
|
quotes |
11.0 |
8.0 |
1.5 |
5.1 |
4.0 |
Cú pháp CSS
quotes: none| string |initial|inherit;
Giá trị tài sản
Value |
Description |
Demo |
none |
Specifies that the "open-quote" and "close-quote" values of the "content" property will not produce any quotation marks |
Demo ❯ |
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 |
Demo ❯ |
initial |
Sets this property to its default value. Read about initial |
|
inherit |
Inherits this property from its parent element. Read about inherit |
|
Ký tự dấu ngoặc kép
Result |
Description |
Entity Number |
" |
double quote |
\0022 |
' |
single quote |
\0027 |
‹ |
single, left angle quote |
\2039 |
› |
single, right angle quote |
\203A |
« |
double, left angle quote |
\00AB |
» |
double, right angle quote |
\00BB |
‘ |
left quote (single high-6) |
\2018 |
’ |
right quote (single high-9) |
\2019 |
“ |
left quote (double high-6) |
\201C |
” |
right quote (double high-9) |
\201D |
„ |
double quote (double low-9) |
\201E |
Trang liên quan
Tham chiếu DOM HTML: thuộc tính trích dẫn
Người tìm đường W3schools
Theo dõi tiến trình của bạn - hoàn toàn miễn phí!