Citazioni di stile Proprietà
Esempio
Modifica le virgolette:
document.getElementById("myQ").style.quotes = "'\253' '\273'";
Definizione e utilizzo
La proprietà quotes imposta o restituisce il tipo di virgolette per le virgolette incorporate.
Supporto browser
Property | |||||
---|---|---|---|---|---|
quotes | Yes | Yes | Yes | Yes | Yes |
Sintassi
Restituisci la proprietà delle citazioni:
object.style.quotes
Imposta la proprietà delle virgolette:
object.style.quotes = "none|string string string string|initial|inherit"
Valori di proprietà
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 |
Dettagli tecnici
Valore di default: | nessuno |
---|---|
Valore di ritorno: | Una stringa, che rappresenta il tipo di virgolette per le virgolette incorporate |
Versione CSS | CSS2 |
Altri esempi
Esempio
Restituisci la proprietà delle citazioni:
alert(document.getElementById("myQ").style.quotes);
Pagine correlate
Riferimento CSS: proprietà quotes
❮ Oggetto stile