Kutipan gaya Properti
Contoh
Ubah tanda kutip:
document.getElementById("myQ").style.quotes = "'\253' '\273'";
Definisi dan Penggunaan
Properti kutipan menyetel atau mengembalikan tipe tanda kutip untuk kutipan yang disematkan.
Dukungan Peramban
Property | |||||
---|---|---|---|---|---|
quotes | Yes | Yes | Yes | Yes | Yes |
Sintaksis
Kembalikan properti kutipan:
object.style.quotes
Setel properti kutipan:
object.style.quotes = "none|string string string string|initial|inherit"
Nilai properti
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 |
Detail Teknis
Nilai Bawaan: | tidak ada |
---|---|
Nilai Kembali: | Sebuah String, mewakili jenis tanda kutip untuk kutipan yang disematkan |
Versi CSS | CSS2 |
Lebih Banyak Contoh
Contoh
Kembalikan properti kutipan:
alert(document.getElementById("myQ").style.quotes);
Halaman Terkait
Referensi CSS: mengutip properti
Objek Gaya