不知道如何標題字,我試圖做一個圖像的鏈接,圖像有懸停「屬性」不知道如何字的問題..
以下是我的代碼:製作懸停圖片鏈接
HTML
<div style="position: relative; left: 0; top: 0; bottom: 100px;">
<img src="pic\980_pcb.jpg" style="width:908.2px;height:398.05px position: relative; top: 0; left: 0;" />
<span class="imgswap">
<a id="imgswap" href="#GPU"></a>
</span>
</div>
CSS
span.imgswap {
background - image: url("pic/gpu_replace.jpg") no - repeat;
height: 167 px;
width: 163 px;
position: absolute;
top: 132.5 px;
left: 286.5 px;
background - repeat: no - repeat;
display: block;
}
span.imgswap: hover {
background: url("pic/gpu_replace.jpg") no - repeat;
}