如何在CSS中实现图片交替效果
#newone {
display:block;
padding:0;
margin:0;
background:url(/newone.gif) no-repeat;
width:40px;
height:20px;
}
a#logoban:hover {
background:url(/secondone.gif) no-repeat;
}
CSS实现图片交替效果
博客介绍了在CSS中实现图片交替效果的方法,给出了相关代码示例,通过设置元素的背景图片及鼠标悬停时的背景图片变化来达成图片交替。
如何在CSS中实现图片交替效果
#newone {
display:block;
padding:0;
margin:0;
background:url(/newone.gif) no-repeat;
width:40px;
height:20px;
}
a#logoban:hover {
background:url(/secondone.gif) no-repeat;
}
2592
1398

被折叠的 条评论
为什么被折叠?