Latest web development tutorials
×

CSS 참조 설명서

CSS 참조 설명서 CSS 선택자 CSS 음성 참조 CSS Web 안전 글꼴 CSS 생기 CSS 단위 CSS 색 CSS 법률 색상 값 CSS 색 이름 CSS 16 진수 색상 값 CSS 브라우저 지원

CSS 재산

align-content align-items align-self all animation animation-delay animation-direction animation-duration animation-fill-mode animation-iteration-count animation-name animation-play-state animation-timing-function appearance backface-visibility background background-attachment background-blend-mode background-clip background-color background-image background-origin background-position background-repeat background-size border border-bottom border-bottom-color border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-collapse border-color border-image border-image-outset border-image-repeat border-image-slice border-image-source border-image-width border-left border-left-color border-left-style border-left-width border-radius border-right border-right-color border-right-style border-right-width border-spacing border-style border-top border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width border-width bottom box-align box-direction box-flex box-flex-group box-lines box-ordinal-group box-orient box-pack box-shadow box-sizing caption-side clear clip color column-count column-fill column-gap column-rule column-rule-color column-rule-style column-rule-width column-span column-width columns content counter-increment counter-reset cursor direction display empty-cells filter flex flex-basis flex-direction flex-flow flex-grow flex-shrink flex-wrap float font @font-face font-family font-size font-size-adjust font-stretch font-style font-variant font-weight grid-columns grid-rows hanging-punctuation height icon justify-content @keyframes left letter-spacing line-height list-style list-style-image list-style-position list-style-type margin margin-bottom margin-left margin-right margin-top max-height max-width @media min-height min-width nav-down nav-index nav-left nav-right nav-up opacity order outline outline-color outline-offset outline-style outline-width overflow overflow-x overflow-y padding padding-bottom padding-left padding-right padding-top page-break-after page-break-before page-break-inside perspective perspective-origin position punctuation-trim quotes resize right rotation tab-size table-layout target target-name target-new target-position text-align text-align-last text-decoration text-decoration-color text-decoration-line text-decoration-style text-indent text-justify text-outline text-overflow text-shadow text-transform text-wrap top transform transform-origin transform-style transition transition-delay transition-duration transition-property transition-timing-function unicode-bidi vertical-align visibility white-space width word-break word-spacing word-wrap z-index

CSS 테두리 스타일 속성

네 테두리 스타일을 설정합니다 :

p
{
border-style:solid;
}

»시도

페이지의 맨 아래는 더 많은 예제를 볼 수 있습니다.

정의 및 지침을 속성

테두리 스타일 속성은 스타일의 요소의 네 테두리를 설정합니다. 이 속성은 1 ~ 4 개의 값을 가질 수 있습니다.

예 :

테두리 스타일 : 점선 고체 더블 점선 ;

  • 국경이 곳곳에있다
  • 오른쪽 테두리가 실선입니다
  • 이중 아래쪽 테두리
  • 왼쪽 테두리가 점선이다

테두리 스타일은 : 고체 이중 점선;

  • 국경이 곳곳에있다
  • 오른쪽의 경계와 왼쪽 테두리가 실선입니다
  • 이중 아래쪽 테두리

테두리 스타일 : 고체 점선;

  • 상단과 하단 테두리 점선입니다
  • 오른쪽의 경계와 왼쪽 테두리가 실선입니다

국경 스타일 : 점선;

  • 모든 네 테두리는 점이다
기본값 : 지정되지
상속 : 아니
버전 : CSS1
자바 스크립트 구문 : object.style.borderStyle = "점선 더블을"반대


브라우저 지원

표의 수치 속성의 버전 번호를 먼저 지원 브라우저를 나타낸다.

属性
border-style 1.0 4.0 1.0 1.0 3.5

속성 값

기술
없음 국경을 정의하지 않습니다.
숨겨진 그리고 "없음"같은. 표 제외 테이블에 적용될 때, 경계 충돌을 해결하기 위해 숨겨진.
점이 찍힌 정의 점 테두리입니다. 대부분의 브라우저에 실선으로 렌더링합니다.
점선 점선의 정의. 대부분의 브라우저에 실선으로 렌더링합니다.
고체 실선의 정의.
더블 와이어의 정의. 경계 폭의 값과 동일하게 광폭.
3D 홈 테두리를 정의했다. 효과는 경계 컬러 값에 의존한다.
산등성이 3D 정의 테두리를 주름. 효과는 경계 컬러 값에 의존한다.
삽입 된 페이지 3D 삽입 경계를 정의합니다. 효과는 경계 컬러 값에 의존한다.
시초 3D 처음 경계를 정의합니다. 효과는 경계 컬러 값에 의존한다.
상속 규정은 부모 요소의 테두리 스타일을 상속해야합니다.


예

온라인 예

각면에 서로 다른 테두리를 설정
이 예는 요소의 각 측면에 다른 경계를 설정하는 방법을 보여줍니다.


관련 기사

CSS 자습서 : CSS 테두리