Properti teks-dekorasi-warna CSS
Contoh
Atur warna dekorasi teks menjadi merah:
p
{
text-decoration: underline;
text-decoration-color: red;
}
Definisi dan Penggunaan
Properti text-decoration-color
menentukan warna dekorasi teks (garis bawah, garis luar, garis-garis).
Nilai bawaan: | warna saat ini |
---|---|
Diwarisi: | tidak |
Animasi: | Ya. Baca tentang animasi |
Versi: kapan: | CSS3 |
Sintaks JavaScript: | objek .style.textDecorationColor="merah" |
Dukungan Peramban
Angka-angka dalam tabel menentukan versi browser pertama yang sepenuhnya mendukung properti.
Angka yang diikuti oleh -moz- atau -webkit- menentukan versi pertama yang berfungsi dengan awalan.
Property | |||||
---|---|---|---|---|---|
text-decoration-color | 57.0 | 79.0 | 36.0 6.0 -moz- |
12.1 7.1 -webkit- |
44.0 |
Sintaks CSS
text-decoration-color: color|initial|inherit;
Nilai properti
Value | Description | Play it |
---|---|---|
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 |
Halaman Terkait
Tutorial CSS: Teks CSS
Referensi DOM HTML: properti textDecorationColor