借口腾不出时间去健身的人,迟早会腾出时间去看病!善待自己,幸福无比,善待别人,快乐无比,善待生命,健康无比。梦想,就是这样一个词,不在于拥有,而在于追求。
复制代码
代码如下:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>纯CSS图片特效</title>
<style>
.vip-uc-but{ height:auto; width:600px;}
.vip-uc-but div{height:90px; float:left; }
.vip-uc-but a{height:90px}
.vip-uc-a a{background:#ccc; width:95px; display:block;}
.vip-uc-a a:hover{background:url(/jscss/demoimg/wall_s1.jpg) no-repeat;}
.vip-uc-b a{background:#ccc;width:95px; display:block;}
.vip-uc-b a:hover{background:url(/jscss/demoimg/wall_s2.jpg) no-repeat;}
.vip-uc-c a{background:#ccc; width:95px; display:block;}
.vip-uc-c a:hover{background:url(/jscss/demoimg/wall_s3.jpg) no-repeat;}
.vip-uc-d a{background:#ccc; width:95px; display:block;}
.vip-uc-d a:hover{background:url(/jscss/demoimg/wall_s4.jpg) no-repeat;}
.vip-uc-but a:link,.vip-uc-but a:visited,.uc-regis-but a:link,.uc-regis-but a:visited{color:#fff; font-size:0px;}
.vip-uc-but a:hover{color:#d7d7d7;}
</style>
</head>
<body>
<div class="vip-uc-but">
<div class="vip-uc-a"><a rel="nofollow noopener noreferrer" href="#">修改密码</a></div>
<div class="vip-uc-b"><a rel="nofollow noopener noreferrer" href="#">修改个人资料</a></div>
<div class="vip-uc-c"><a rel="nofollow noopener noreferrer" href="#">查看邮件</a> </div>
<div class="vip-uc-d"><a rel="nofollow noopener noreferrer" href="#">优币查询提现</a> </div>
</div>
</body>
</html>
到此这篇关于纯CSS如何实现鼠标移动切换图片示例就介绍到这了。我就像一瓶酒,你洒脱的拿起喝完放下,转身就走。更多相关纯CSS如何实现鼠标移动切换图片示例内容请查看相关栏目,小编编辑不易,再次感谢大家的支持!