Stil metniDekorasyonRenk Özellik
Örnek
Altı çizili bir metinde çizginin rengini değiştirin:
document.getElementById("demo").style.textDecorationColor = "red";
Tanım ve Kullanım
textDecorationColor özelliği, metin dekorasyonunun rengini belirtir (alt çizgiler, üst çizgiler, çizgiler).
Not: textDecorationColor özelliği, yalnızca görünür bir metin dekorasyonuna sahip öğeler üzerinde bir etkiye sahip olacaktır.
Tarayıcı Desteği
Property | |||||
---|---|---|---|---|---|
textDecorationColor | 57 | 79.0 | 36.0 6.0 Moz |
7.1 Webkit | 44.0 |
Sözdizimi
textDecorationColor özelliğini döndürün:
object.style.textDecorationColor
textDecorationColor özelliğini ayarlayın:
object.style.textDecorationColor = "color|initial|inherit"
Mülk değerleri
Value | Description |
---|---|
color | Specifies the color of the text-decoration |
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: | geçerliRenk |
---|---|
Geri dönüş değeri: | Bir öğenin metin-dekorasyon-renk özelliğini temsil eden bir Dize |
CSS Sürümü | CSS3 |
İlgili Sayfalar
CSS referansı: metin-dekorasyon-renk özelliği
❮ Stil Nesnesi