Vous pouvez enregistrer le code ci-dessous et l'essayer.Pourquoi ce petit fragment HTML/CSS ne produit-il pas les résultats attendus dans IE?
Dans firefox, il est gris du navigateur, mais dans IE (IE7 pour être exact), il ne fonctionne pas.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style text="text/css">
.overlay {
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
z-index:1000;
background-color:grey;
}
</style>
</head>
<body style="font-size:62.5%;">
<div class="overlay"></div>
</body>
</html>
+1 c'est ça. Je n'avais jamais remarqué ça. Battez-moi au coup de poing. –