Style borderBottomColor Property
Contoh
Ubah warna batas bawah elemen <div> menjadi merah:
document.getElementById("myDiv").style.borderBottomColor = "red";
Lebih banyak contoh "Coba Sendiri" di bawah ini.
Definisi dan Penggunaan
Properti borderBottomColor menyetel atau mengembalikan warna batas bawah elemen.
Dukungan Peramban
Angka-angka dalam tabel menentukan versi browser pertama yang sepenuhnya mendukung properti.
Property | |||||
---|---|---|---|---|---|
borderBottomColor | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
Sintaksis
Kembalikan properti borderBottomColor:
object.style.borderBottomColor
Setel properti borderBottomColor:
object.style.borderBottomColor = "color|transparent|initial|inherit"
Nilai properti
Value | Description |
---|---|
color | Specifies the color of the bottom border. Look at CSS Color Values for a complete list of possible color values. Default color is the current color of the element |
transparent | The color of the bottom border is transparent (underlying content will shine through) |
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: | warna saat ini |
---|---|
Nilai Kembali: | Sebuah String, mewakili warna batas bawah elemen |
Versi CSS | CSS1 |
Lebih Banyak Contoh
Contoh
Kembalikan warna batas bawah elemen <div>:
alert(document.getElementById("myDiv").style.borderBottomColor);
Halaman Terkait
Tutorial CSS: Perbatasan CSS
Referensi CSS: properti border-bottom-color
Referensi DOM HTML: properti perbatasan