Teks gayaProperti GayaDekorasi
Contoh
Menampilkan garis bergelombang di bawah elemen an:
document.getElementById("demo").style.textDecorationStyle = "wavy";
Definisi dan Penggunaan
Properti textDecorationStyle menyetel atau mengembalikan bagaimana garis, jika ada, akan ditampilkan.
Dukungan Peramban
Property | |||||
---|---|---|---|---|---|
textDecorationStyle | 57.0 | 79.0 | 36.0 6.0 Moz |
12.1 | 44.0 |
Sintaksis
Kembalikan properti textDecorationStyle:
object.style.textDecorationStyle
Setel properti textDecorationStyle:
object.style.textDecorationStyle = "solid|double|dotted|dashed|wavy|initial|inherit"
Nilai properti
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 |
Detail Teknis
Nilai Bawaan: | padat |
---|---|
Nilai Kembali: | Sebuah String, mewakili properti teks-dekorasi-gaya dari suatu elemen |
Versi CSS | CSS3 |
Halaman Terkait
Referensi CSS: properti bergaya dekorasi teks
Objek Gaya