Estilo backgroundClip Propiedad
Ejemplo
Especifique el área de pintura del fondo:
document.getElementById("myDIV").style.backgroundClip = "content-box";
Definición y uso
La propiedad backgroundClip establece o devuelve el área de pintura del fondo.
Compatibilidad con navegador
Los números de la tabla especifican la primera versión del navegador que es totalmente compatible con la propiedad.
Property | |||||
---|---|---|---|---|---|
backgroundClip | 4.0 | 9.0 | 4.0 | 3.0 | 10.5 |
Sintaxis
Devuelve la propiedad backgroundClip:
object.style.backgroundClip
Establezca la propiedad backgroundClip:
object.style.backgroundClip = "border-box|padding-box|content-box|initial|inherit"
Valores de propiedad
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 |
Detalles técnicos
Valor por defecto: | cuadro de borde |
---|---|
Valor de retorno: | Una cadena, que representa la propiedad de clip de fondo de un elemento |
Versión CSS | CSS3 |
páginas relacionadas
Referencia de CSS: propiedad de clip de fondo