Стиль borderBottomStyle Свойство
Пример
Добавьте «сплошную» нижнюю границу к элементу <div>:
document.getElementById("myDiv").style.borderBottomStyle = "solid";
Определение и использование
Свойство borderBottomStyle задает или возвращает стиль нижней границы элемента.
Поддержка браузера
Цифры в таблице указывают на первую версию браузера, которая полностью поддерживает это свойство.
Property | |||||
---|---|---|---|---|---|
borderBottomStyle | 1.0 | 5.5 | 1.0 | 1.0 | 9.2 |
Примечание . Значение «скрытый» не поддерживается в IE7 и более ранних версиях. IE9 и более поздние версии поддерживают «скрытый».
Синтаксис
Верните свойство borderBottomStyle:
object.style.borderBottomStyle
Задайте свойство borderBottomStyle:
object.style.borderBottomStyle = value
Значения свойств
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 |
Технические детали
Значение по умолчанию: | никто |
---|---|
Возвращаемое значение: | Строка, представляющая стиль нижней границы элемента. |
CSS-версия | CSS1 |
Дополнительные примеры
Пример
Измените стиль нижней границы элемента <div> на «точечный»:
document.getElementById("myDiv").style.borderBottomStyle = "dotted";
Пример
Вернуть стиль нижней границы элемента <div>:
alert(document.getElementById("myDiv").style.borderBottomStyle);
Пример
Демонстрация всех различных значений:
var listValue = selectTag.options[selectTag.selectedIndex].text;
document.getElementById("myDiv").style.borderBottomStyle = listValue;
Связанные страницы
Учебное пособие по CSS: граница CSS
Справочник по CSS: свойство border-bottom-style
Справочник по HTML DOM: свойство границы