Stil tırnak Özellik
Örnek
Tırnak işaretlerini değiştirin:
document.getElementById("myQ").style.quotes = "'\253' '\273'";
Tanım ve Kullanım
Tırnak özelliği, gömülü alıntılar için tırnak işareti türünü ayarlar veya döndürür.
Tarayıcı Desteği
Property | |||||
---|---|---|---|---|---|
quotes | Yes | Yes | Yes | Yes | Yes |
Sözdizimi
Tırnak özelliğini döndürün:
object.style.quotes
Tırnak özelliğini ayarlayın:
object.style.quotes = "none|string string string string|initial|inherit"
Mülk değerleri
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 |
Teknik detaylar
Varsayılan değer: | Yok |
---|---|
Geri dönüş değeri: | Gömülü alıntılar için tırnak işareti türünü temsil eden bir Dize |
CSS Sürümü | CSS2 |
Daha fazla örnek
Örnek
Tırnak özelliğini döndürün:
alert(document.getElementById("myQ").style.quotes);
İlgili Sayfalar
CSS referansı: tırnak özelliği
❮ Stil Nesnesi