纯CSS完成电脑鼠标挪动切换照片示例

2021-01-20 09:28 jianzhan

拷贝编码
编码以下:

<!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 href="#">改动登陆密码</a></div>
<div class="vip-uc-b"><a href="#">改动本人材料</a></div>
<div class="vip-uc-c"><a href="#">查询电子邮件</a> </div>
<div class="vip-uc-d"><a href="#">优币查寻提现</a> </div>
</div>
</body>
</html>