Cytaty stylu nieruchomości
Przykład
Zmień cudzysłowy:
document.getElementById("myQ").style.quotes = "'\253' '\273'";
Definicja i użycie
Właściwość cytatów ustawia lub zwraca typ cudzysłowów dla osadzonych cytatów.
Obsługa przeglądarki
Property | |||||
---|---|---|---|---|---|
quotes | Yes | Yes | Yes | Yes | Yes |
Składnia
Zwróć właściwość cytatów:
object.style.quotes
Ustaw właściwość cytatów:
object.style.quotes = "none|string string string string|initial|inherit"
Wartości nieruchomości
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 |
Szczegóły techniczne
Domyślna wartość: | Żaden |
---|---|
Wartość zwrotu: | String, reprezentujący typ cudzysłowów dla osadzonych cytatów |
Wersja CSS | CSS2 |
Więcej przykładów
Przykład
Zwróć właściwość cytatów:
alert(document.getElementById("myQ").style.quotes);
Powiązane strony
Odniesienie CSS: własność cytatów
❮ Obiekt stylu