CSS:background-repeat
De MDC
[editar] Resumen
background-repeat especifica si la imagen es repetida (mosaïco) y de que manera.
-
Valor inicial: repetición (repeat) - Se aplica a: todos los elementos
-
Herencia: no - Percentages: N/A
- Medio:
visual -
Valor calculada: como se especificó
[editar] Sintaxis
background-repeat: repeat | repeat-x | repeat-y | no-repeat | inherit
[editar] Valores
- repeat
- la imagen es repetida horizontal y verticalmente
- repeat-x
- repetición únicamente en horizontal.
- repeat-y
- repetición únicamente en vertical.
- no-repeat
- no hay repetición: una sola copia es expuesta.
[editar] Ejemplos
.exampleone {
background-image: url("logo.png");
background-repeat: repeat-x;
}
.exampletwo {
background-image: url("logo.png");
background-repeat: no-repeat;
}
[editar] Especificaciones
[editar] Compatibilidad
| Navegador | Versión mínima |
|---|---|
| Internet Explorer | 4 |
| Firefox | 1 |
| Netscape | 4 |
| Opera | 3.5 |
[editar] Ver también
background, background-attachment, background-color, background-image, background-position, background-repeat