Propriedade do clipe de fundo CSS
Exemplo
Especifique até onde o plano de fundo deve se estender dentro de um elemento:
div
{
border: 10px dotted black;
padding: 15px;
background:
lightblue;
background-clip:
padding-box;
}
Definição e uso
A background-clip
propriedade define até onde o fundo (cor ou imagem) deve se estender dentro de um elemento.
Valor padrão: | caixa de borda |
---|---|
Herdado: | não |
Animavel: | não. Leia sobre animáveis |
Versão: | CSS3 |
Sintaxe JavaScript: | object .style.backgroundClip="content-box" |
Suporte ao navegador
Os números na tabela especificam a primeira versão do navegador que oferece suporte total à propriedade.
Property | |||||
---|---|---|---|---|---|
background-clip | 4.0 | 9.0 | 4.0 | 3.0 | 10.5 |
Sintaxe CSS
background-clip: border-box|padding-box|content-box|initial|inherit;
Valores de propriedade
Value | Description | Play it |
---|---|---|
border-box | Default value. The background extends behind the border | |
padding-box | The background extends to the inside edge of the border | |
content-box | The background extends to the edge of 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 |
Páginas relacionadas
Tutorial CSS: Fundos CSS
Referência HTML DOM: propriedade backgroundClip