quotes
Übersicht
Die quotes
CSS Eigenschaft gibt an, wie User Agents Anführungszeichen darstellen sollen.
Initialwert | hängt vom User Agent ab |
---|---|
Anwendbar auf | alle Elemente |
Vererbt | Ja |
Berechneter Wert | wie angegeben |
Animationstyp | diskret |
Syntax
/* Schlüsselwortwert */
quotes: none;
/* <string> Werte */
quotes: "«" "»" /* Setzt open-quote und close-quote auf französische Anführungszeichen */
quotes: "«" "»" "‹" "›" /* Setzt zwei Ebenen von Anführungszeichen */
/* Globale Werte */
quotes: inherit;
quotes: initial;
quotes: unset;
Werte
none
- Die
open-quote
undclose-quote
Werte dercontent
Eigenschaft erzeugen keine Anführungszeichen. [<string> <string>]+
- Ein oder mehrere Paare von
<string>
Werten füropen-quote
undclose-quote
. Das erste Paar stellt die äußere Ebene des Zitats dar, das zweite Paar das erste Unterebene, das nächste die dritte Ebene usw.
Formale Syntax
Beispiele
q { quotes: '"' '"' "'" "'" }
q:before { content: open-quote }
q:after { content: close-quote }
Hinweise
Seit Firefox 3.5 kann der ursprüngliche Wert der quotes
Eigenschaft über -moz-initial (en-US)
gelesen werden. Dies war in früheren Versionen von Firefox nicht möglich.
Spezifikationen
Spezifikation | Status | Kommentar |
---|---|---|
CSS Level 2 (Revision 1) Die Definition von 'quotes' in dieser Spezifikation. |
Empfehlung | Ursprüngliche Definition |
Browser Kompatibilität
BCD tables only load in the browser