Stijl backgroundClip Property
Voorbeeld
Specificeer het schildergebied van de achtergrond:
document.getElementById("myDIV").style.backgroundClip = "content-box";
Definitie en gebruik
Met de eigenschap backgroundClip wordt het tekengebied van de achtergrond ingesteld of geretourneerd.
Browserondersteuning
De getallen in de tabel geven de eerste browserversie aan die de eigenschap volledig ondersteunt.
Property | |||||
---|---|---|---|---|---|
backgroundClip | 4.0 | 9.0 | 4.0 | 3.0 | 10.5 |
Syntaxis
Retourneer de backgroundClip-eigenschap:
object.style.backgroundClip
Stel de eigenschap backgroundClip in:
object.style.backgroundClip = "border-box|padding-box|content-box|initial|inherit"
Eigendomswaarden
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 |
Technische details
Standaardwaarde: | border-box |
---|---|
Winstwaarde: | Een tekenreeks, die de eigenschap background-clip van een element voorstelt |
CSS-versie | CSS3 |
Gerelateerde pagina's
CSS-referentie: eigenschap background-clip