Properti bergaya perbatasan-bawah CSS
Contoh
Tetapkan gaya untuk batas bawah:
div {border-bottom-style: dotted;}
Lebih banyak contoh "Coba Sendiri" di bawah ini.
Definisi dan Penggunaan
Properti border-bottom-style
menetapkan gaya batas bawah elemen.
Nilai bawaan: | tidak ada |
---|---|
Diwarisi: | tidak |
Animasi: | tidak. Baca tentang animasi |
Versi: kapan: | CSS1 |
Sintaks JavaScript: | objek .style.borderBottomStyle="bertitik" |
Dukungan Peramban
Angka-angka dalam tabel menentukan versi browser pertama yang sepenuhnya mendukung properti.
Property | |||||
---|---|---|---|---|---|
border-bottom-style | 1.0 | 5.5 | 1.0 | 1.0 | 9.2 |
Sintaks CSS
border-bottom-style: none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|initial|inherit;
Nilai properti
Value | Description | Play it |
---|---|---|
none | Specifies no border. This is default | |
hidden | The same as "none", except in border conflict resolution for table elements | |
dotted | Specifies a dotted border | |
dashed | Specifies a dashed border | |
solid | Specifies a solid border | |
double | Specifies a double border | |
groove | Specifies a 3D grooved border. The effect depends on the border-color value | |
ridge | Specifies a 3D ridged border. The effect depends on the border-color value | |
inset | Specifies a 3D inset border. The effect depends on the border-color value | |
outset | Specifies a 3D outset border. The effect depends on the border-color value | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
Lebih Banyak Contoh
Contoh
Batas bawah putus-putus:
div {border-bottom-style: dashed;}
Contoh
Batas bawah yang solid:
div {border-bottom-style: solid;}
Contoh
Batas bawah ganda:
div {border-bottom-style: double;}
Contoh
Hapus batas bawah:
div {border-bottom-style: none;}
Contoh
Batas bawah alur:
div {
border-bottom-style: groove;
border-bottom-color: coral;
border-bottom-width: 7px;
}
Contoh
Batas bawah punggungan:
div {
border-bottom-style: ridge;
border-bottom-color: coral;
border-bottom-width: 7px;
}
Contoh
Batas bawah sisipan:
div {
border-bottom-style: inset;
border-bottom-color: coral;
border-bottom-width: 7px;
}
Contoh
Batas bawah awal:
div {
border-bottom-style: outset;
border-bottom-color: coral;
border-bottom-width: 7px;
}
Halaman Terkait
Tutorial CSS: Perbatasan CSS
Referensi CSS: properti border-bottom
Referensi DOM HTML: properti borderBottomStyle