CSS quotes 屬性
定義和用法
quotes 屬性設(shè)置嵌套引用(embedded quotation)的引號類型。
默認(rèn)值: | not specified |
---|---|
繼承性: | yes |
版本: | CSS2 |
JavaScript 語法: | object.style.quotes="none" |
實例
q:lang(en)
{
quotes: '"' '"' "'" "'";
}
HTML 代碼:
<html lang="en"> <head> </head> <body> <p><q>This is a <q>big</q> quote</q></p> </body> </html>
輸出:
"This is a 'big' quote"
瀏覽器支持
所有瀏覽器都支持 quotes 屬性。
注釋:如果已規(guī)定 !DOCTYPE,那么 Internet Explorer 8 (以及更高版本)支持 quotes 屬性。
可能的值
值 | 描述 |
---|---|
none | 規(guī)定 "content" 屬性的 "open-quote" 和 "close-quote" 的值不會產(chǎn)生任何引號。 |
string string string string |
定義要使用的引號。 前兩個值規(guī)定第一級引用嵌套,后兩個值規(guī)定下一級引號嵌套。 |
inherit | 規(guī)定應(yīng)該從父元素繼承 quotes 屬性的值。 |
引號字符

相關(guān)頁面
HTML DOM 參考手冊:quotes 屬性