=== ¡== BIENVENIDOS A LA CLASE DE PÁGINA WEB == DOCENTE == GUILLERMO HORACIO PATIÑO

JAVASCRIPT

JAVASCRIPT
Guillermo Horacio Patiño

EJEMPLO CSS PARA FONDO DE PÁGINA


<style>
body
{
background-image: url('http://www.gestarsalud.com/cms/images/stories/Noticias/www-hosting.jpg');
background-repeat: no-repeat;
background-attachment: fixed
}
</style>


La propiedad background-repeat se establece si / cómo una imagen de fondo se repetirá.
Por defecto, un fondo de imagen se repite tanto vertical como horizontalmente.
repetir
La imagen de fondo se repetirá horizontal y verticalmente. Esto es por defecto
repeat-x
La imagen de fondo se repite sólo en horizontal
repeat-y
La imagen de fondo se repetirá sólo en vertical
no-repeat
El fondo de la imagen no se repetirá
heredar
Especifica que el valor de la propiedad background-repeat se hereda del elemento padre


La propiedad background-attachment determina si una imagen de fondo es fija o se desplaza con el resto de la página.
scroll
Los rollos de la imagen de fondo con el resto de la página. Esto es por defecto
fixed
La imagen de fondo está fija
inherit
Especifica que el valor de la propiedad background-attachment se hereda del elemento padre

<style>
body
{
background-image: url('imagen2.jpg');
background-repeat: no-repeat;
background-attachment: fixed
}
</style>