Stile backgroundClip Proprietà
Esempio
Specificare l'area di pittura dello sfondo:
document.getElementById("myDIV").style.backgroundClip = "content-box";
Definizione e utilizzo
La proprietà backgroundClip imposta o restituisce l'area di disegno dello sfondo.
Supporto browser
I numeri nella tabella specificano la prima versione del browser che supporta completamente la proprietà.
Property | |||||
---|---|---|---|---|---|
backgroundClip | 4.0 | 9.0 | 4.0 | 3.0 | 10.5 |
Sintassi
Restituisce la proprietà backgroundClip:
object.style.backgroundClip
Imposta la proprietà backgroundClip:
object.style.backgroundClip = "border-box|padding-box|content-box|initial|inherit"
Valori di proprietà
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 |
Dettagli tecnici
Valore di default: | scatola di confine |
---|---|
Valore di ritorno: | Una stringa, che rappresenta la proprietà del clip di sfondo di un elemento |
Versione CSS | CSS3 |
Pagine correlate
Riferimento CSS: proprietà background-clip