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