1
<div style="position: relative; left: 0px; top: 0px;">
<img class="imageAAMP" src="catbanner.jpg" type="image/jpg" width="800" height="300" alt="Adios my petite croissant" style="position: relative;"/>
<img class="imageAAMP2" src="catbanner2.jpg" type="image/jpg" width="800" height="300" alt="Adios my petite croissant" style="position: absolute;"/>
<div>
,這裏是我的CSSHTML圖像無法在Chrome中正確顯示,但在Safari和Firefox正確顯示
.container{
width: 800px;
margin-left: auto;
margin-right: auto;
margin-top: 50px;
background-color: #ffffff;
border-color: #000000;
border-style: solid;
border-width: 1px;
padding: 25px;
}
img.imageAAMP{
width: 800px;
margin: auto;
margin-top: auto;
position: static
}
img.imageAAMP2{
width: 800px;
position: absolute;
margin-left: -800px;
transition: opacity 2s ease-in-out;
-webkit-transition: opacity 2s ease-in-out;
}
img.imageAAMP2:hover{
opacity: 0;
}
的圖像是在左下角時,應在其上可以顯示第一張圖片。這是爲了進行懸停淡變過渡。在Safari和Firefox上,一切工作正常,但無法在Chrome上正確顯示。