我在嘗試創建過渡效果以下CSS:CSS圖像翻轉效果
#arrow {
position:absolute;
left:540px;
top:150px;
width:220px;
height:120px;
}
#arrow a{
display: block;
width:220px;
height:120px;
text-decoration: none;
background: url("images/arrow.jpg");
background-position: 0 -120px;
}
#arrow a:hover {
background-position: 0 0;
}
後來,div標籤:
<div id="arrow">
<a href="/arrow/arrow.htm"></a>
</div>
然而,當我在圖像上鼠標指針滑過,它不會更改鏈接的背景位置。思考?
演示:http://jsfiddle.net/SebjX/ –