CSS實現(xiàn)一張圖完成的導(dǎo)航條
更新時間:2012-01-03 | 發(fā)布人:本站 | 點擊率:626 次
<!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>網(wǎng)頁特效-用CSS實現(xiàn)的一張圖完成的導(dǎo)航條</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(/upfile/201213212944452.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 target="_blank"><span>游 戲</span></a></li>
<li id="job"><a target="_blank"><span>娛 樂</span></a></li>
<li id="eve"><a target="_blank"><span>菜 單</span></a></li>
<li id="oth"><a target="_blank"><span>好 玩</span></a></li>
</ul>
</div>
<div style="clear:both">轉(zhuǎn)載請注明出處<a >網(wǎng)頁特效</a></div>
</body>
</html>