Stil metniDekorasyonStyle Özellik
Örnek
a öğesinin altında dalgalı bir çizgi görüntüleyin:
document.getElementById("demo").style.textDecorationStyle = "wavy";
Tanım ve Kullanım
textDecorationStyle özelliği, varsa satırın nasıl görüntüleneceğini ayarlar veya döndürür.
Tarayıcı Desteği
Property | |||||
---|---|---|---|---|---|
textDecorationStyle | 57.0 | 79.0 | 36.0 6.0 Moz |
12.1 | 44.0 |
Sözdizimi
textDecorationStyle özelliğini döndürün:
object.style.textDecorationStyle
textDecorationStyle özelliğini ayarlayın:
object.style.textDecorationStyle = "solid|double|dotted|dashed|wavy|initial|inherit"
Mülk değerleri
Value | Description |
---|---|
solid | Default value. The line will display as a single line |
double | The line will display as a double line |
dotted | The line will display as a dotted line |
dashed | The line will display as a dashed line |
wavy | The line will display as a wavy line |
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: | sağlam |
---|---|
Geri dönüş değeri: | Bir öğenin metin süsleme stili özelliğini temsil eden bir Dize |
CSS Sürümü | CSS3 |
İlgili Sayfalar
CSS referansı: metin süsleme stili özelliği
❮ Stil Nesnesi