스타일 borderImageSlice 속성
예시
이미지 테두리의 안쪽 오프셋을 지정합니다.
document.getElementById("myDIV").style.borderImageSlice = "50% 10%";
정의 및 사용
borderImageSlice 속성은 이미지 테두리의 안쪽 오프셋을 지정합니다.
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
Property | |||||
---|---|---|---|---|---|
borderImageSlice | Yes | 11.0 | Yes | 6.0 | 15.0 11.0 O |
대신 borderImage 속성을 보십시오 !
통사론
borderImageSlice 속성을 반환합니다.
object.style.borderImageSlice
borderImageSlice 속성을 설정합니다.
object.style.borderImageSlice = "number|%|fill|initial|inherit"
속성 값
Value | Description |
---|---|
number | Numbers represent pixels in the image (if the image is a raster image) or vector coordinates (if the image is a vector image) |
% | Percentages are relative to the size of the image: the width of the image for the horizontal offsets, the height for vertical offsets. Default value is 100% |
fill | Causes the middle part of the border-image to be preserved |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
기술적 세부 사항
기본값: | 100% |
---|---|
반환 값: | 요소의 border-image-slice 속성을 나타내는 String |
CSS 버전 | CSS3 |
관련 페이지
CSS 참조: border-image-slice 속성