Je m'exerce à créer un site Web réactif. Mon problème est de savoir comment redimensionner l'image en fonction de la résolution de la page Web. Voici mon code:Redimensionner l'image d'arrière-plan en HTML pour un modèle réactif
<html>
<head>
<meta charset="utf-8">
<style>
body {
background: url("streetlight.png");
width: 100%;
height: 100px;
background-attachment: fixed;
position: absolute;
background-repeat: no-repeat;
}
</style>
</head>
<body>
</body>
</html>
Vous regardant l'image d'arrière-plan? ou tag IMG? – ShibinRagh
taille de fond: 100% 100%; –
@ShibinRagh image de fond – thenewbie