“Taille de l'image d'arrière-plan CSS pour ajuster l'écran” Réponses codées

Taille de l'image d'arrière-plan CSS pour ajuster l'écran

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

CSS fait de l'image remplit le fond entier

html { 
  background: url(images/bg.jpg) no-repeat 
    center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
Scaly Breasted Lorikeet

Comment couvrir l'image complète dans CSS

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

Taille de l'image d'arrière-plan CSS

#example1 {
  background: url(mountain.jpg);
  background-repeat: no-repeat;
  background-size: auto;
}

#example2 {
  background: url(mountain.jpg);
  background-repeat: no-repeat;
  background-size: 300px 100px;
}
Giamblers

Faire une image de fond pleine largeur

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

L'image d'arrière-plan HTML ajustée à l'écran

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

Réponses similaires à “Taille de l'image d'arrière-plan CSS pour ajuster l'écran”

Questions similaires à “Taille de l'image d'arrière-plan CSS pour ajuster l'écran”

Plus de réponses similaires à “Taille de l'image d'arrière-plan CSS pour ajuster l'écran” dans CSS

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code