Style borderBottomStyle Property
Przykład
Dodaj „solidne” dolne obramowanie do elementu <div>:
document.getElementById("myDiv").style.borderBottomStyle = "solid";
Definicja i użycie
Właściwość borderBottomStyle ustawia lub zwraca styl dolnej krawędzi elementu.
Obsługa przeglądarki
Liczby w tabeli określają pierwszą wersję przeglądarki, która w pełni obsługuje tę właściwość.
Property | |||||
---|---|---|---|---|---|
borderBottomStyle | 1.0 | 5.5 | 1.0 | 1.0 | 9.2 |
Uwaga: wartość „ukryty” nie jest obsługiwana w IE7 i wcześniejszych wersjach. IE9 i nowsze obsługują "ukryte".
Składnia
Zwróć właściwość borderBottomStyle:
object.style.borderBottomStyle
Ustaw właściwość borderBottomStyle:
object.style.borderBottomStyle = value
Wartości nieruchomości
Value | Description |
---|---|
none | Defines no border. This is default |
hidden | Same as "none", except in border conflict resolution for table elements |
dotted | Defines a dotted border |
dashed | Defines a dashed border |
solid | Defines a solid border |
double | Defines two borders. The width of the two borders are the same as the border-width value |
groove | Defines a 3D grooved border. The effect depends on the border-color value |
ridge | Defines a 3D ridged border. The effect depends on the border-color value |
inset | Defines a 3D inset border. The effect depends on the border-color value |
outset | Defines 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 |
Szczegóły techniczne
Domyślna wartość: | Żaden |
---|---|
Wartość zwrotu: | String, reprezentujący styl dolnej krawędzi elementu |
Wersja CSS | CSS1 |
Więcej przykładów
Przykład
Zmień styl dolnej krawędzi elementu <div> na „dotted”:
document.getElementById("myDiv").style.borderBottomStyle = "dotted";
Przykład
Zwróć styl dolnej krawędzi elementu <div>:
alert(document.getElementById("myDiv").style.borderBottomStyle);
Przykład
Demonstracja wszystkich różnych wartości:
var listValue = selectTag.options[selectTag.selectedIndex].text;
document.getElementById("myDiv").style.borderBottomStyle = listValue;
Powiązane strony
Samouczek CSS: obramowanie CSS
Odniesienie CSS: właściwość w stylu border-bottom
Odniesienie HTML DOM: border property