스타일 borderImage 속성
예시
<div> 요소 주위의 테두리로 이미지를 지정합니다.
document.getElementById("myDIV").style.borderImage = "url(border.png) 30 30 round";
정의 및 사용
borderImage 속성은 borderImageSource , borderImageSlice , borderImageWidth , borderImageOutset 및 borderImageRepeat 속성을 설정하기 위한 약식 속성입니다 .
생략된 값은 기본값으로 설정됩니다.
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
Webkit, Moz 또는 O 뒤에 오는 숫자는 접두사와 함께 작동한 첫 번째 버전을 지정합니다.
Property | |||||
---|---|---|---|---|---|
borderImage | 16.0 4.0 Webkit |
11.0 | 15.0 3.5 Moz |
6.0 3.1 Webkit |
15.0 11.0 O |
통사론
borderImage 속성을 반환합니다.
object.style.borderImage
borderImage 속성을 설정합니다.
object.style.borderImage = "source slice width outset repeat|initial|inherit"
속성 값
Value | Description |
---|---|
borderImageSource | The path to the image to be used as a border |
borderImageSlice | The inward offsets of the image-border |
borderImageWidth | The widths of the image-border |
borderImageOutset | The amount by which the border image area extends beyond the border box |
borderImageRepeat | Whether the image-border should be repeated, rounded or stretched |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
기술적 세부 사항
기본값: | 없음 100% 1 0 스트레치 |
---|---|
반환 값: | 요소의 border-image 속성을 나타내는 String |
CSS 버전 | CSS3 |
관련 페이지
CSS 참조: border-image 속성