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