스타일 borderImageRepeat 속성
예시
이미지 테두리를 반복하는 방법을 지정합니다.
document.getElementById("myDIV").style.borderImageRepeat = "round";
정의 및 사용
borderImageRepeat 속성은 이미지 테두리를 반복할지, 반올림할지 또는 늘일지를 설정하거나 반환합니다.
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
Property | |||||
---|---|---|---|---|---|
borderImageRepeat | Yes | 11.0 | Yes | 6.0 | 15.0 11.0 O |
대신 borderImage 속성을 보십시오 !
통사론
borderImageRepeat 속성을 반환합니다.
object.style.borderImageRepeat
borderImageRepeat 속성을 설정합니다.
object.style.borderImageRepeat = "stretch|repeat|round|initial|inherit"
속성 값
Value | Description |
---|---|
stretch | Default value. The image is stretched to fill the area |
repeat | The image is tiled (repeated) to fill the area |
round | The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the image is rescaled so it fits |
space | The image is tiled (repeated) to fill the area. If it does not fill the area with a whole number of tiles, the extra space is distributed around the tiles |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
기술적 세부 사항
기본값: | 뻗기 |
---|---|
반환 값: | 요소의 border-image-repeat 속성을 나타내는 String |
CSS 버전 | CSS3 |
관련 페이지
CSS 참조: border-image-repeat 속성