CSS -grens-onder-styl eiendom
Voorbeeld
Stel 'n styl vir die onderste rand:
div {border-bottom-style: dotted;}
Meer "Probeer dit self" voorbeelde hieronder.
Definisie en gebruik
Die border-bottom-style
eienskap stel die styl van 'n element se onderste rand.
Standaard waarde: | geen |
---|---|
Geërf: | geen |
Animateerbaar: | geen. Lees oor animeerbaar |
Weergawe: | CSS1 |
JavaScript-sintaksis: | voorwerp .style.borderBottomStyle="dotted" |
Blaaierondersteuning
Die nommers in die tabel spesifiseer die eerste blaaierweergawe wat die eiendom ten volle ondersteun.
Property | |||||
---|---|---|---|---|---|
border-bottom-style | 1.0 | 5.5 | 1.0 | 1.0 | 9.2 |
CSS-sintaksis
border-bottom-style: none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|initial|inherit;
Eiendomswaardes
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 |
Meer voorbeelde
Voorbeeld
'n Gestreepte onderrand:
div {border-bottom-style: dashed;}
Voorbeeld
'n Soliede onderrand:
div {border-bottom-style: solid;}
Voorbeeld
'n Dubbel onderste rand:
div {border-bottom-style: double;}
Voorbeeld
Verwyder die onderste rand:
div {border-bottom-style: none;}
Voorbeeld
'n Groef onderste rand:
div {
border-bottom-style: groove;
border-bottom-color: coral;
border-bottom-width: 7px;
}
Voorbeeld
'n Rif onderste rand:
div {
border-bottom-style: ridge;
border-bottom-color: coral;
border-bottom-width: 7px;
}
Voorbeeld
'n Ingevoegde onderste rand:
div {
border-bottom-style: inset;
border-bottom-color: coral;
border-bottom-width: 7px;
}
Voorbeeld
'n Begin onderste rand:
div {
border-bottom-style: outset;
border-bottom-color: coral;
border-bottom-width: 7px;
}
Verwante bladsye
CSS handleiding: CSS Border
CSS verwysing: grens-onder eiendom
HTML DOM verwysing: borderBottomStyle eiendom