1
我有一个标志是一个两个图像精灵。当您将鼠标悬停在上面时,背景位置会简单地移动到底部以显示新图像。淡出/在动画中?
如果可能的话,我想添加一点淡入淡出的过渡,谁能告诉我这个最好的方法。
如果有帮助,这是我的CSS:
#header h1#logo a {
background: url(../images/logo.jpg);
background-position: 0 0;
width: 74px;
height: 74px;
display: block;
text-indent: -30000px;
}
#header h1#logo a:hover { background-position: 0 -85px;}
感谢
良好的解决方法,很好地工作,非常感谢很多。 – Blackbird 2010-11-04 20:05:00
很高兴为您服务! :) – 2010-11-04 20:06:34