CSS:Background-attachment
De W3API
Contenido |
[editar] Descripción
En el caso de tener una imagen de fondo permite indicar si dicha imagen se quedará fija - "fixed" o si se queda en forma de scroll - "scroll".
[editar] Sintaxis
background-attachment: fixed|scroll;
[editar] Ejemplo
body {
background-image: url('fondo.png');
background-repeat: no-repeat;
background-attachment: fixed;
}