Свойство borderRightColor стиля
Пример
Измените цвет правой границы элемента <div> на красный:
document.getElementById("myDiv").style.borderRightColor = "red";
Определение и использование
Свойство borderRightColor задает или возвращает цвет правой границы элемента.
Поддержка браузера
Property | |||||
---|---|---|---|---|---|
borderRightColor | Yes | Yes | Yes | Yes | Yes |
Синтаксис
Верните свойство borderRightColor:
object.style.borderRightColor
Задайте свойство borderRightColor:
object.style.borderRightColor = "color|transparent|initial|inherit"
Значения свойств
Value | Description |
---|---|
color | Specifies the color of the right border. Look at CSS Color Values for a complete list of possible color values. Default color is the current color of the element |
transparent | The color of the right border is transparent (underlying content will shine through) |
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>:
alert(document.getElementById("myDiv").style.borderRightColor);
Связанные страницы
Учебное пособие по CSS: граница CSS
Справочник по CSS: свойство border-right-color
Справочник по HTML DOM: свойство границы
❮ Объект стиля