作者gckenny (绝体绝命!小君君的最期~)
看板Web_Design
标题Re: [问题] 滑鼠一过去会出现另一个小图?
时间Sat Nov 4 18:16:37 2006
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