用CSS实现的一张图完成的导航条

资讯 驱动中国 1,991 次阅读 0 条评论
分享 Q
<!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><a href="http://homepage.yesky.com/" class="bluekey" target="_blank">网页</a>特效代码|http://homepage.yesky.com/|---用CSS实现的一张图完成的导航条</title> <style> ul,li{ list-style:none; float:left;} body{ font-size:12px; line-height:1.6; font-family:Verdana, "宋体", Arial; text-align:center;} #info li{ margin-left:4px; margin-top:15px;} #info a {display:block;text-align:center; padding-left:15px; padding-top:2px;padding-bottom:1px;background-image: url(http://www.jscode.cn/Uploadfile/200682494749491.GIF); background-repeat: no-repeat;color: #000; width:47px; cursor:hand; text-decoration: none;} #job a:link,#job a:visited{background-position: -62px 0px;} #eve a:link,#eve a:visited{background-position: -124px 0px;} #oth a:link,#oth a:visited{background-position: -186px 0px;} #car a:hover ,#car a:active {background-position: 0px -22px; color:#fff;} #job a:hover ,#car a:active {background-position: -62px -22px; color:#fff;} #eve a:hover ,#car a:active {background-position: -124px -22px; color:#fff;} #oth a:hover ,#car a:active {background-position: -186px -22px; color:#fff;} </style> </head> <body> <div id="info"> <ul> <li id="car"><a href="http://homepage.yesky.com/" target="_blank"><span> 游 戏</span></a></li> <li id="job"><a href="http://homepage.yesky.com/" target="_blank"><span> 娱 乐</span></a></li> <li id="eve"><a href="http://homepage.yesky.com/" target="_blank"><span> 菜 单</span></a></li> <li id="oth"><a href="http://homepage.yesky.com/" target="_blank"><span> 好 玩</span></a></li> </ul> </div> <div style="clear:both">转载请注明出处 子鼠 <a href="http://www.zishu.cn" target="_blank"> http://www.zishu.cn</a> 作者:子鼠</div> </body> </html>
版权声明:本文由驱动中国整理发布,转载需注明出处与原文链接。如有疑问请联系 editor@qudong.com
本文价值 成为第一个评分的人
登录后为本文打分
网友评论0 条评论
正在回复 的评论取消
评论加载中…
🔐

登录后参与互动

评论、点赞均可赚积分
连续签到、邀请好友也有奖励 🎁

电脑端: 微信扫码登录 微信内: 一键登录

微信扫一扫

打开微信「扫一扫」,分享本文到朋友圈或好友