Propriété de style backgroundClip
Exemple
Spécifiez la zone de peinture de l'arrière-plan :
document.getElementById("myDIV").style.backgroundClip = "content-box";
Définition et utilisation
La propriété backgroundClip définit ou renvoie la zone de peinture de l'arrière-plan.
Prise en charge du navigateur
Les nombres dans le tableau indiquent la première version du navigateur qui prend entièrement en charge la propriété.
Property | |||||
---|---|---|---|---|---|
backgroundClip | 4.0 | 9.0 | 4.0 | 3.0 | 10.5 |
Syntaxe
Renvoyez la propriété backgroundClip :
object.style.backgroundClip
Définissez la propriété backgroundClip :
object.style.backgroundClip = "border-box|padding-box|content-box|initial|inherit"
Valeurs de propriété
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 |
Détails techniques
Valeur par défaut: | border-box |
---|---|
Valeur de retour : | Une chaîne, représentant la propriété background-clip d'un élément |
Version CSS | CSS3 |
Pages connexes
Référence CSS : propriété background-clip