CSS border-top-style 속성
예시
상단 테두리의 스타일 설정:
div {border-top-style: dotted;}
아래에서 더 많은 "직접 사용해 보기" 예를 살펴보세요.
정의 및 사용
속성 은 border-top-style
요소의 위쪽 테두리 스타일을 설정합니다.
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
Property | |||||
---|---|---|---|---|---|
border-top-style | 1.0 | 5.5 | 1.0 | 1.0 | 9.2 |
CSS 구문
border-top-style: none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|initial|inherit;
속성 값
Value | Description | Play it |
---|---|---|
none | Specifies no border. This is default | |
hidden | The same as "none", except in border conflict resolution for table elements | |
dotted | Specifies a dotted border | |
dashed | Specifies a dashed border | |
solid | Specifies a solid border | |
double | Specifies a double border | |
groove | Specifies a 3D grooved border. The effect depends on the border-color value | |
ridge | Specifies a 3D ridged border. The effect depends on the border-color value | |
inset | Specifies a 3D inset border. The effect depends on the border-color value | |
outset | Specifies 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 |
더 많은 예
예시
파선 상단 테두리:
div {border-top-style: dashed;}
예시
단단한 상단 테두리:
div {border-top-style: solid;}
예시
이중 상단 테두리:
div {border-top-style: double;}
예시
상단 테두리 제거:
div {border-top-style: none;}
예시
그루브 상단 테두리:
div {
border-top-style: groove;
border-top-color: coral;
border-top-width: 7px;
}
예시
능선 경계:
div {
border-top-style: ridge;
border-top-color: coral;
border-top-width: 7px;
}
예시
삽입된 상단 테두리:
div {
border-top-style: inset;
border-top-color: coral;
border-top-width: 7px;
}
예시
첫 번째 상단 테두리:
div {
border-top-style: outset;
border-top-color: coral;
border-top-width: 7px;
}
관련 페이지
CSS 튜토리얼: CSS 테두리
CSS 참조: border-top 속성
HTML DOM 참조: borderTopStyle 속성