CSS 테두리 이미지 너비 속성
예시
테두리 이미지의 너비를 지정합니다.
#borderimg
{
border-image-source: url(border.png);
border-image-width: 10px;
}
정의 및 사용
border-image-width
속성은 테두리 이미지의 너비를 지정합니다 .
팁: 또한 border-image 속성(모든 border-image-* 속성을 설정하기 위한 약식 속성)을 살펴보십시오.
기본값: | 1 |
---|---|
상속: | 아니요 |
애니메이션 가능: | 아니요. 애니메이션 가능 에 대해 읽기 |
버전: | CSS3 |
자바스크립트 구문: | 개체 .style.borderImageWidth="20px" |
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
Property | |||||
---|---|---|---|---|---|
border-image-width | 15.0 | 11.0 | 13.0 | 6.0 | 15.0 |
CSS 구문
border-image-width: number|%|auto|initial|inherit;
참고: 속성 은 border-image-width
1개에서 4개의 값(위쪽, 오른쪽, 아래쪽 및 왼쪽)을 사용할 수 있습니다. 네 번째 값이 생략되면 두 번째 값과 동일합니다. 세 번째도 생략하면 첫 번째와 동일합니다. 두 번째 항목도 생략하면 첫 번째 항목과 동일합니다.
속성 값
Value | Description | Play it |
---|---|---|
length | A length unit (px) specifying the size of the border-width | |
number | Default value 1. Represents multiples of the corresponding border-width | |
% | Refers to the size of the border image area: the width of the area for horizontal offsets, the height for vertical offsets | |
auto | If specified, the width is the intrinsic width or height of the corresponding image slice | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
관련 페이지
CSS 튜토리얼: CSS 테두리 이미지
CSS 참조: border-image 속성
CSS 참조: border-image-outset 속성
CSS 참조: border-image-repeat 속성
CSS 참조: border-image-slice 속성
CSS 참조: border-image-source 속성
HTML DOM 참조: borderImageWidth 속성