Properti bergaya tepi kiri CSS
Contoh
Tetapkan gaya untuk batas kiri:
div {border-left-style: dotted;}
Lebih banyak contoh "Coba Sendiri" di bawah ini.
Definisi dan Penggunaan
Properti border-left-style
menetapkan gaya batas kiri elemen.
Nilai bawaan: | tidak ada |
---|---|
Diwarisi: | tidak |
Animasi: | tidak. Baca tentang animasi |
Versi: kapan: | CSS1 |
Sintaks JavaScript: | objek .style.borderLeftStyle="bertitik" |
Dukungan Peramban
Angka-angka dalam tabel menentukan versi browser pertama yang sepenuhnya mendukung properti.
Property | |||||
---|---|---|---|---|---|
border-left-style | 1.0 | 5.5 | 1.0 | 1.0 | 9.2 |
Sintaks CSS
border-left-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 kiri putus-putus:
div {border-left-style: dashed;}
Contoh
Batas kiri yang solid:
div {border-left-style: solid;}
Contoh
Batas kiri ganda:
div {border-left-style: double;}
Contoh
Hapus batas kiri:
div {border-left-style: none;}
Contoh
Batas kiri alur:
div {
border-left-style: groove;
border-left-color: coral;
border-left-width: 7px;
}
Contoh
Batas kiri punggungan:
div {
border-left-style: ridge;
border-left-color: coral;
border-left-width: 7px;
}
Contoh
Batas kiri sisipan:
div {
border-left-style: inset;
border-left-color: coral;
border-left-width: 7px;
}
Contoh
Batas kiri awal:
div {
border-left-style: outset;
border-left-color: coral;
border-left-width: 7px;
}
Halaman Terkait
Tutorial CSS: Perbatasan CSS
Referensi CSS: properti border-left
Referensi DOM HTML: properti borderLeftStyle