Styl vlastnost backgroundClip
Příklad
Určete oblast malby pozadí:
document.getElementById("myDIV").style.backgroundClip = "content-box";
Definice a použití
Vlastnost backgroundClip nastavuje nebo vrací plochu malby pozadí.
Podpora prohlížeče
Čísla v tabulce určují první verzi prohlížeče, která plně podporuje vlastnost.
Property | |||||
---|---|---|---|---|---|
backgroundClip | 4.0 | 9.0 | 4.0 | 3.0 | 10.5 |
Syntax
Vraťte vlastnost backgroundClip:
object.style.backgroundClip
Nastavte vlastnost backgroundClip:
object.style.backgroundClip = "border-box|padding-box|content-box|initial|inherit"
Hodnoty vlastností
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 |
Technické údaje
Výchozí hodnota: | border-box |
---|---|
Návratová hodnota: | Řetězec představující vlastnost klipu pozadí prvku |
Verze CSS | CSS3 |
Související stránky
CSS reference: vlastnost background-clip