스타일 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 |
기술적 세부 사항
기본값: | 현재 색상 |
---|---|
반환 값: | 요소의 오른쪽 테두리 색상을 나타내는 String |
CSS 버전 | CSS1 |
더 많은 예
예시
<div> 요소의 오른쪽 테두리 색상을 반환합니다.
alert(document.getElementById("myDiv").style.borderRightColor);
관련 페이지
CSS 튜토리얼: CSS 테두리
CSS 참조: border-right-color 속성
HTML DOM 참조: 테두리 속성
❮ 스타일 개체