Vlastnost CSS border-bottom-style
Příklad
Nastavte styl pro spodní okraj:
div {border-bottom-style: dotted;}
Další příklady „Vyzkoušejte si to sami“ níže.
Definice a použití
Vlastnost border-bottom-style
nastavuje styl spodního okraje prvku.
Výchozí hodnota: | žádný |
---|---|
Zděděno: | Ne |
Animovatelné: | Ne. Přečtěte si o tématu Animable |
Verze: | CSS1 |
Syntaxe JavaScriptu: | objekt .style.borderBottomStyle="tečkovaný" |
Podpora prohlížeče
Čísla v tabulce určují první verzi prohlížeče, která plně podporuje vlastnost.
Property | |||||
---|---|---|---|---|---|
border-bottom-style | 1.0 | 5.5 | 1.0 | 1.0 | 9.2 |
Syntaxe CSS
border-bottom-style: none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|initial|inherit;
Hodnoty vlastností
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 |
Další příklady
Příklad
Přerušovaný spodní okraj:
div {border-bottom-style: dashed;}
Příklad
Pevný spodní okraj:
div {border-bottom-style: solid;}
Příklad
Dvojitý spodní okraj:
div {border-bottom-style: double;}
Příklad
Odstraňte spodní okraj:
div {border-bottom-style: none;}
Příklad
Spodní okraj drážky:
div {
border-bottom-style: groove;
border-bottom-color: coral;
border-bottom-width: 7px;
}
Příklad
Spodní okraj hřebene:
div {
border-bottom-style: ridge;
border-bottom-color: coral;
border-bottom-width: 7px;
}
Příklad
Vložený spodní okraj:
div {
border-bottom-style: inset;
border-bottom-color: coral;
border-bottom-width: 7px;
}
Příklad
Počáteční spodní okraj:
div {
border-bottom-style: outset;
border-bottom-color: coral;
border-bottom-width: 7px;
}
Související stránky
CSS tutoriál: CSS Border
CSS reference: vlastnost border-bottom
HTML DOM reference: vlastnost borderBottomStyle