CSS for IE
<style type="text/css">
.swimg {
width: 100px;
height: 50px;
display: block;
background: url('bg.jpg') no-repeat;
position: relative;
}
a.swimg:hover {
height: 110px;
}
a.swimg:hover span {
width: 100px;
height: 50px;
display: block;
background: url('bg2.jpg');
position: absolute;
top: 60px;
}
</style>
<a href="#" class="swimg"><span></span></a>
還是用JS實際...
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 203.70.46.179