スタイル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 Border
CSSリファレンス:border-right-colorプロパティ
HTML DOMリファレンス:borderプロパティ
❮スタイルオブジェクト