스타일 backgroundClip 속성
예시
배경의 페인팅 영역 지정:
document.getElementById("myDIV").style.backgroundClip = "content-box";
정의 및 사용
backgroundClip 속성은 배경의 페인팅 영역을 설정하거나 반환합니다.
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
Property | |||||
---|---|---|---|---|---|
backgroundClip | 4.0 | 9.0 | 4.0 | 3.0 | 10.5 |
통사론
backgroundClip 속성을 반환합니다.
object.style.backgroundClip
backgroundClip 속성을 설정합니다.
object.style.backgroundClip = "border-box|padding-box|content-box|initial|inherit"
속성 값
Value | Description |
---|---|
border-box | Default value. The background is clipped to the border box |
padding-box | The background is clipped to the padding box |
content-box | The background is clipped to the content box |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
기술적 세부 사항
기본값: | 테두리 상자 |
---|---|
반환 값: | 요소의 background-clip 속성을 나타내는 String |
CSS 버전 | CSS3 |
관련 페이지
CSS 참조: background-clip 속성