1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
<style type="text/css">
#gris {
position : absolute;
top : 0;
left : 0;
width : 100%;
height : 100%;
background-color : #000;
filter:alpha(opacity=50); /* IE */
-moz-opacity:0.5; /* Firefox */
opacity: 0.5; /* standard CSS3 */
-khtml-opacity: 0.5; /* Konqueror */
}
</style>
<div id="conteneur" style="position:relative;width:500px;height:300px;">
<div id="gris"></div>
<div id="fenetre" style="position:absolute;width:50px;height:50px;background-color: #fff; opacity: 1;filter:alpha(opacity=100);top:172px;left:130px;">
</div>
<img src="image.jpg" style="width:500px;height:300px;">
</div> |