图像拼合 - 悬停效果

2017-06-07 18:54:00
admin
原创
274
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"> 
<title></title>  
<style>
#navlist{position:relative;}
#navlist li{margin:0;padding:0;list-style:none;position:absolute;top:0;}
#navlist li, #navlist a{height:44px;display:block;}

#home{left:0px;width:46px;}
#home{background:url('http://www.ybao.org/data/upload/201706/f_caca6112117409cfcb1bee7141bcf143.gif') 0 0;}
#home a:hover{background: url('http://www.ybao.org/data/upload/201706/f_caca6112117409cfcb1bee7141bcf143.gif') 0 -45px;}

#prev{left:63px;width:43px;}
#prev{background:url('http://www.ybao.org/data/upload/201706/f_caca6112117409cfcb1bee7141bcf143.gif') -47px 0;}
#prev a:hover{background: url('http://www.ybao.org/data/upload/201706/f_caca6112117409cfcb1bee7141bcf143.gif') -47px -45px;}

#next{left:129px;width:43px;}
#next{background:url('http://www.ybao.org/data/upload/201706/f_caca6112117409cfcb1bee7141bcf143.gif') -91px 0;}
#next a:hover{background: url('http://www.ybao.org/data/upload/201706/f_caca6112117409cfcb1bee7141bcf143.gif') -91px -45px;}
</style>
</head>

<body>
<ul id="navlist">
  <li id="home"><a href="default.asp"></a></li>
  <li id="prev"><a href="css_intro.asp"></a></li>
  <li id="next"><a href="css_syntax.asp"></a></li>
</ul>
</body>
</html>
文章分类
联系我们
电话: 18902328227
Email: 2689701946@qq.com
QQ: 2689701946
微信: 18902328227
地址: 广州番禺区繁华路
  • 在线客服
  • 关注微信
  • 联系电话
    • 欢迎咨询
    • 欢迎加入QQ群 303257430
  • 公众号:源宝网络
    • 联系电话及微信号 18902328227