注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

《电脑之家》

请点击:“日志”浏览电脑知识

 
 
 

日志

 
 

仿淘宝网菜单导航条  

2011-05-20 10:47:32|  分类: 建立.htm网页范例 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
----------特效源代码----------


<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>网页特效---CSS仿淘宝首页导航条按钮布局效果-www.qpsh.com</title>
<style>
/*www.qpsh.com*/
body{ font-size:12px; text-align:center;  margin-top:30px; font-family:Verdana;}
div,img{margin:0; padding:0; border:0;}
ul,li{list-style-type: none; margin:0; padding:0; float:left; }
#info{ margin-left:auto; margin-right:auto;width:760px; text-align:left;}
#new{ margin-top:-12px;position: absolute;margin-left:-12px;}
#nav{ height:30px; width:610px; margin-left:auto; margin-right:auto;}
#nav li{margin-left:1px; height:30px;}
#nav li a{ display:block;float:left; text-decoration:none; background-image: url(
http://www.qpsh.com/icon/200661115718239.GIF);background-repeat: no-repeat; display:block; background-position:left top;}
#nav a span{cursor:hand; color:#000;background-image: url(
http://www.qpsh.com/icon/200661115735753.GIF);background-repeat: no-repeat; display:block;background-position: right top; padding:7px 10px 6px 10px; float:left; }
#nav li a:active,#nav li a:hover {margin-top:0px; }
#nav li  a:active span,#nav li a:hover span {padding:10px 10px 6px 10px; margin-top:0px; display:block; color:#FFF;}
#zishu01 a:link,#zishu01 a:visited {background-position: 0px -27px;}
#zishu01 a:link span,#zishu01 a:visited span{background-position:right -27px;padding:10px 10px 6px 10px; margin-top:0; color:#FFF; font-weight:bold;}
#zishu02 a,#zishu03 a,#zishu04 a,#zishu05 a,#zishu06 a,#zishu07 a,#zishu08 a,#zishu09 a,#zishu10 a,#zishu11 a{margin-top:3px;}
#zishu02 a:active,#zishu02 a:hover {background-position: 0px -57px;}
#zishu02 a:active span,#zishu02 a:hover span{background-position:right -57px;}
#zishu03 a:active,#zishu03 a:hover {background-position: 0px -87px;}
#zishu03 a:active span,#zishu03 a:hover span{background-position:right -87px;}
#zishu04 a:active,#zishu04 a:hover {background-position: 0px -117px;}
#zishu04 a:active span,#zishu04 a:hover span{background-position:right -117px;}
#zishu05 a:active,#zishu05 a:hover {background-position: 0px -147px;}
#zishu05 a:active span,#zishu05 a:hover span{background-position:right -147px;}
#zishu06 a:active,#zishu06 a:hover {background-position: 0px -177px;}
#zishu06 a:active span,#zishu06 a:hover span{background-position:right -177px;}
#zishu07 a:active,#zishu07 a:hover {background-position: 0px -207px;}
#zishu07 a:active span,#zishu07 a:hover span{background-position:right -207px;}
#zishu08 a:active,#zishu08 a:hover {background-position: 0px -237px;}
#zishu08 a:active span,#zishu08 a:hover span{background-position:right -237px;}
#zishu09 a:active,#zishu09 a:hover {background-position: 0px -267px;}
#zishu09 a:active span,#zishu09 a:hover span{background-position:right -267px;}
#zishu10 a:active,#zishu10 a:hover {background-position: 0px -297px;}
#zishu10 a:active span,#zishu10 a:hover span{background-position:right -297px;}
#zishu11 a:link span,#zishu11 a:visited span{color:#FF6600;}
#zishu11 a:active,#zishu11 a:hover {background-position: 0px -327px;}
#zishu11 a:active span,#zishu11 a:hover span{background-position:right -327px;}
#menu{ width:760px; height:26px; background:#FF9900;}
#r1{border-top: 0px;border-bottom: 0px; border-left:3px solid #fff;border-right:3px solid #fff; height:1px; overflow:hidden;}
#r2{border-top: 0px;border-bottom: 0px; border-left:2px solid #fff;border-right:2px solid #fff; height:1px; overflow:hidden;}
#r3{border-top: 0px;border-bottom: 0px;    border-left:1px solid #fff;border-right:1px solid #fff; height:1px; overflow:hidden;}
</style>
</head>

<body>

<div id="info">
 <div id="nav">
  <ul>
   <li id="zishu01"><a href="
http://649668326.blog.163.com"><span>叶子博客</span></a></li>
   <li id="zishu02"><a href="
http://649668326.blog.163.com/blog/static/990980382011419115334806/"><span>音画</span></a></li>
   <li id="zishu03"><a href="
http://649668326.blog.163.com/blog/static/99098038201141963935967/"><span>窗口变大</span></a></li>
   <li id="zishu04"><a href="
http://649668326.blog.163.com/blog/static/9909803820114193218145/"><span>柔术</span></a></li>
   <li id="zishu05"><a href="
http://649668326.blog.163.com/blog/static/990980382011417101358341/"><span>桌面</span></a></li>
   <li id="zishu06"><a href="
http://649668326.blog.163.com/blog/static/990980382011417101219621/"><span>网页跳转</span></a></li>
   <li id="zishu07"><a href="
http://649668326.blog.163.com/blog/static/99098038201141981733227/
"><span>引用</span></a></li>
   <li id="zishu08"><a href="
http://649668326.blog.163.com/blog/static/990980382011419101948377/"><span>爆炸</span></a></li>
   <li id="zishu09"><a href="
http://649668326.blog.163.com/blog/static/99098038201141762815522/"><span>报时</span></a></li>
   <li id="zishu10"><a href="
http://649668326.blog.163.com/blog/static/9909803820114190280323/
"><span>播放器</span></a></li>
   <li id="zishu11"><a href="
http://649668326.blog.163.com/blog/static/990980382011417101249426/"><span>探照灯</span></a></li>
   <li>
   <div id="new">
    <img src="
http://www.qpsh.com/icon/200661115947970.GIF" alt="新加栏目" /></div>
   </li>
  </ul>
 </div>
 <div id="menu">
  <div id="r1">
  </div>
  <div id="r2">
  </div>
  <div id="r3">
  </div>
  <div>
  </div>
 </div>
</div>
</font></span></b></a></center><img src="
http://img96.ph.126.net/4FB_nb_-k9ncpIS1MnrLUQ==/2039004731293728292.png">

 


网页特效:       运行代码

自然醒推荐阅读:
  评论这张
 
阅读(367)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017