“Cómo hacer que la imagen de fondo se ajuste a la pantalla” Código de respuesta

Tamaño de imagen de fondo CSS para adaptarse a la pantalla

html {
    height: 100%
}
body {
    background-image:url("../images/myImage.jpg");
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
Itchy Ibis

Cómo cubrir la imagen completa en CSS

body {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
abdullah

Hacer la imagen de fondo ancho completo

html {
    height: 100%;
}
body {
    color: #999;
    background: url('../images/background/main_bg.jpg') no-repeat center center fixed;
    font-family: 'Roboto', sans-serif;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}
Upset Unicorn

HTML FINTER IMAGEN A STAY A LA PANTALLA

body {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
Real Raven

Cómo hacer que la imagen de fondo se ajuste a la pantalla

body{
	background: url(""); /* enter the image path */
    background-repeat: no-repeat;
	background-size: 100%;
}
Nalin k

Respuestas similares a “Cómo hacer que la imagen de fondo se ajuste a la pantalla”

Preguntas similares a “Cómo hacer que la imagen de fondo se ajuste a la pantalla”

Más respuestas relacionadas con “Cómo hacer que la imagen de fondo se ajuste a la pantalla” en CSS

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código