Style borderRightColor Właściwość
Przykład
Zmień kolor prawej krawędzi elementu <div> na czerwony:
document.getElementById("myDiv").style.borderRightColor = "red";
Definicja i użycie
Właściwość borderRightColor ustawia lub zwraca kolor prawej krawędzi elementu.
Obsługa przeglądarki
Property | |||||
---|---|---|---|---|---|
borderRightColor | Yes | Yes | Yes | Yes | Yes |
Składnia
Zwróć właściwość borderRightColor:
object.style.borderRightColor
Ustaw właściwość borderRightColor:
object.style.borderRightColor = "color|transparent|initial|inherit"
Wartości nieruchomości
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 |
Szczegóły techniczne
Domyślna wartość: | aktualny kolor |
---|---|
Wartość zwrotu: | String, reprezentujący kolor prawej krawędzi elementu |
Wersja CSS | CSS1 |
Więcej przykładów
Przykład
Zwróć prawy kolor obramowania elementu <div>:
alert(document.getElementById("myDiv").style.borderRightColor);
Powiązane strony
Samouczek CSS: obramowanie CSS
Odniesienie CSS: border-right-color property
Odniesienie HTML DOM: border property
❮ Obiekt stylu