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