>

CSS实现经典橙色导航菜单

- 编辑:正版管家婆马报彩图 -

CSS实现经典橙色导航菜单

本文实例介绍了javascript结合HTML CSS完毕深紫导航菜单,分享给大家供我们参考,具体内容如下

javascript HTML+CSS达成美貌碳灰导航菜单,css导航菜单

正文实例介绍了javascript结合HTML CSS完结粉末蓝导航菜单,分享给大家供大家参谋,具体内容如下

效果图:

图片 1

<html >
<head>
 <title>超漂亮的HTML导航菜单CSS代码</title>
 <style>
  #top {
   display: block;
   text-align: left;
   height: 105px;
   position: relative;
   z-index: 0;
  }

  .m {
   margin: 0 auto;
   width: 970px;
  }

  body {
   font-size: 12px;
  }

  a {
   color: #333;
   text-decoration: none;
  }

   a:link {
    text-decoration: none;
   }
   /* Download by http://hovertree.com*/
   a.blue:link, a.blue:visited {
    color: #014cc9;
    text-decoration: none;
   }

   a.blue:hover, a.blue:active {
    color: #014cc9;
    text-decoration: underline;
   }

   a.org:link, a.org:visited {
    color: #ff4e00;
    text-decoration: none;
   }

   a:hover, a:active, a.org:hover, a.org:active {
    color: #ff4e00;
    text-decoration: underline;
   }

  #navpart {
   backgroundnull:url(http://hovertree.com/hvtimg/bjafjb/6hcuxj1x.gif) repeat-x center top;
   height: 105px;
   width: 950px;
   z-index: 0;
   margin-top: 0;
   margin-right: auto;
   margin-bottom: 0;
   margin-left: auto;
   clear: both;
   position: relative;
  }

   #navpart .sideleft {
    backgroundnull:url(http://hovertree.com/hvtimg/bjafjb/6hcuxj1x.gif) no-repeat left bottom;
    float: left;
    height: 105px;
    width: 6px;
   }

   #navpart .sideright {
    backgroundnull:url(http://hovertree.com/hvtimg/bjafjb/6hcuxj1x.gif) no-repeat right bottom;
    float: right;
    height: 105px;
    width: 6px;
   }

  #navmenubar {
   height: 32px;
   float: left;
   display: inline;
   margin: 0 -6px;
   width: 100%;
   position: relative;
   z-index: 3;
   top: 0;
  }

  #hot {
   backgroundnull:url(http://hovertree.com/hvtimg/201508/7qmwfe9p.png) no-repeat left top;
   height: 21px;
   width: 19px;
   position: absolute;
   top: -5px;
   right: 2px;
   z-index: 666;
   background:black;
  }

  #navmenubar .sideleft {
   backgroundnull:url(http://hovertree.com/hvtimg/bjafjb/ay73nxk5.gif) no-repeat left bottom;
   float: left;
   height: 32px;
   width: 6px;
   display: inline;
   margin: 0 0 0 8px;
  }

  #navmenubar .sideright {
   backgroundnull:url(http://hovertree.com/hvtimg/bjafjb/ay73nxk5.gif) no-repeat right bottom;
   float: left;
   height: 32px;
   width: 6px;
   display: inline;
   margin: 0 4px 0 -2px;
  }
  /* NAVMENU */
  #navmenubar .navmenu {
   backgroundnull:url(http://hovertree.com/hvtimg/bjafjb/ay73nxk5.gif) repeat-x center top;
   height: 32px;
   padding: 0;
   margin: 0;
   float: left;
   display: inline;
  }

   #navmenubar .navmenu li {
    float: left;
    white-space: nowrap;
    margin: 0px;
    padding: 0px;
    display: inline;
   }

    #navmenubar .navmenu li a {
     backgroundnull:url(http://hovertree.com/hvtimg/bjafjb/d46iuj2w.gif) no-repeat 0 0;
     width: 80px;
     padding: 7px 2px 5px 0;
     float: left;
     line-height: 20px;
     height: 20px;
     text-align: center;
    }

     #navmenubar .navmenu li a:hover {
      background-position: 0 -32px;
      color: #602800;
      text-decoration: none;
      padding: 8px 2px 4px 0;
     }

   #navmenubar .navmenu .current a, #navmenubar .navmenu .current a:hover {
    backgroundnull:url(http://hovertree.com/hvtimg/bjafjb/d46iuj2w.gif) no-repeat 0 -64px;
    font-weight: 600;
    color: #FFF;
    font-size: 14px;
    padding: 7px 2px 5px 0;
   }

  #top #navpart .content {
   margin-top: 40px;
   margin-right: auto;
   margin-bottom: 0px;
   margin-left: auto;
   width: 900px;
   height: auto;
   color: white;
  }

   #top #navpart .content a {
    color: white;
    display: inline-block;
    margin-top: 0px;
    height: 30px;
    border: 0px solid white;
    line-height: 30px;
    padding: 10px;
   }

  .clear {
   clear: both;
   display: block;
   font: 0px/0 sans-serif;
   height: 0px;
   overflow: hidden;
  }
 </style>

</head>
<body>
 <div id="top" class="m">
  <div id="navpart">
   <div class="sideleft"></div>
   <div class="sideright"></div>
   <!--NavMenu-->
   <div id="navmenubar">
    <div class="sideleft"></div>
    <ul class="navmenu">
     <li class="current"><a href="#" target="_top" title="首页">帮客之家</a></li>
     <li><a href="#">编程资源</a></li>
     <li><a href="#">在新手册</a></li>
    </ul>
    <div class="sideright"></div>
    <div class="sideleft"></div>
    <ul class="navmenu">
     <li><a href="#">网页制作</a></li>
     <li><a href="#">网络编程</a></li>
     <li><a href="#">平面设计</a></li>
     <li><a href="#">操作系统</a></li>
    </ul>
    <div class="sideright"></div>
    <div>
     <div class="content">
       <a href="#" target="_blank">特效代码</a>
       <a href="#" target="_blank">特效代码</a>
       <a href="#" target="_blank">特效代码</a>
       <a href="#" target="_blank">特效代码</a>
       <a href="#" target="_blank">特效代码</a>
       <a href="#" target="_blank">特效代码</a>
       <a href="#" target="_blank">特效代码</a>
       <a href="#" target="_blank">特效代码</a>
       <a href="#" target="_blank">特效代码</a>
       <a href="#" target="_blank">特效代码</a>
     </div>
    </div>
   </div>
  </div>
 </div>
 <div class="clear"></div>
</body>
</html>

企望对我们学习javascript程序设计有着帮忙。

效果图:

您恐怕感兴趣的稿子:

  • 用js完成的相比优良实用的触发型导航菜单
  • 能够比美Flash的JS导航菜单
  • 卓殊酷的js图形渐隐导航菜单栏
  • js导航菜单(自写)轻便大方
  • javascript 树形导航菜单实例代码
  • 原生js做的手风琴效果的导航菜单
  • 二个js调整的导航菜单实例代码
  • JS+CSS达成大气的原野绿首页导航菜单效能代码
  • JS+CSS完毕轻易的二级下拉领航菜单功效
  • JS+CSS完成另类带提示效果的竖向导航菜单

HTML+CSS达成特出墨紫导航菜单,css导航菜单 本文实例介绍了javascript结合HTML CSS达成紫水晶色导航菜单,分享给大家供我们参照他事他说加以考察,具体内...

图片 2

<html >
<head>
 <title>超漂亮的HTML导航菜单CSS代码</title>
 <style>
  #top {
   display: block;
   text-align: left;
   height: 105px;
   position: relative;
   z-index: 0;
  }

  .m {
   margin: 0 auto;
   width: 970px;
  }

  body {
   font-size: 12px;
  }

  a {
   color: #333;
   text-decoration: none;
  }

   a:link {
    text-decoration: none;
   }
   /* Download by http://hovertree.com*/
   a.blue:link, a.blue:visited {
    color: #014cc9;
    text-decoration: none;
   }

   a.blue:hover, a.blue:active {
    color: #014cc9;
    text-decoration: underline;
   }

   a.org:link, a.org:visited {
    color: #ff4e00;
    text-decoration: none;
   }

   a:hover, a:active, a.org:hover, a.org:active {
    color: #ff4e00;
    text-decoration: underline;
   }

  #navpart {
   backgroundnull:url(http://hovertree.com/hvtimg/bjafjb/6hcuxj1x.gif) repeat-x center top;
   height: 105px;
   width: 950px;
   z-index: 0;
   margin-top: 0;
   margin-right: auto;
   margin-bottom: 0;
   margin-left: auto;
   clear: both;
   position: relative;
  }

   #navpart .sideleft {
    backgroundnull:url(http://hovertree.com/hvtimg/bjafjb/6hcuxj1x.gif) no-repeat left bottom;
    float: left;
    height: 105px;
    width: 6px;
   }

   #navpart .sideright {
    backgroundnull:url(http://hovertree.com/hvtimg/bjafjb/6hcuxj1x.gif) no-repeat right bottom;
    float: right;
    height: 105px;
    width: 6px;
   }

  #navmenubar {
   height: 32px;
   float: left;
   display: inline;
   margin: 0 -6px;
   width: 100%;
   position: relative;
   z-index: 3;
   top: 0;
  }

  #hot {
   backgroundnull:url(http://hovertree.com/hvtimg/201508/7qmwfe9p.png) no-repeat left top;
   height: 21px;
   width: 19px;
   position: absolute;
   top: -5px;
   right: 2px;
   z-index: 666;
   background:black;
  }

  #navmenubar .sideleft {
   backgroundnull:url(http://hovertree.com/hvtimg/bjafjb/ay73nxk5.gif) no-repeat left bottom;
   float: left;
   height: 32px;
   width: 6px;
   display: inline;
   margin: 0 0 0 8px;
  }

  #navmenubar .sideright {
   backgroundnull:url(http://hovertree.com/hvtimg/bjafjb/ay73nxk5.gif) no-repeat right bottom;
   float: left;
   height: 32px;
   width: 6px;
   display: inline;
   margin: 0 4px 0 -2px;
  }
  /* NAVMENU */
  #navmenubar .navmenu {
   backgroundnull:url(http://hovertree.com/hvtimg/bjafjb/ay73nxk5.gif) repeat-x center top;
   height: 32px;
   padding: 0;
   margin: 0;
   float: left;
   display: inline;
  }

   #navmenubar .navmenu li {
    float: left;
    white-space: nowrap;
    margin: 0px;
    padding: 0px;
    display: inline;
   }

    #navmenubar .navmenu li a {
     backgroundnull:url(http://hovertree.com/hvtimg/bjafjb/d46iuj2w.gif) no-repeat 0 0;
     width: 80px;
     padding: 7px 2px 5px 0;
     float: left;
     line-height: 20px;
     height: 20px;
     text-align: center;
    }

     #navmenubar .navmenu li a:hover {
      background-position: 0 -32px;
      color: #602800;
      text-decoration: none;
      padding: 8px 2px 4px 0;
     }

   #navmenubar .navmenu .current a, #navmenubar .navmenu .current a:hover {
    backgroundnull:url(http://hovertree.com/hvtimg/bjafjb/d46iuj2w.gif) no-repeat 0 -64px;
    font-weight: 600;
    color: #FFF;
    font-size: 14px;
    padding: 7px 2px 5px 0;
   }

  #top #navpart .content {
   margin-top: 40px;
   margin-right: auto;
   margin-bottom: 0px;
   margin-left: auto;
   width: 900px;
   height: auto;
   color: white;
  }

   #top #navpart .content a {
    color: white;
    display: inline-block;
    margin-top: 0px;
    height: 30px;
    border: 0px solid white;
    line-height: 30px;
    padding: 10px;
   }

  .clear {
   clear: both;
   display: block;
   font: 0px/0 sans-serif;
   height: 0px;
   overflow: hidden;
  }
 </style>

</head>
<body>
 <div id="top" class="m">
  <div id="navpart">
   <div class="sideleft"></div>
   <div class="sideright"></div>
   <!--NavMenu-->
   <div id="navmenubar">
    <div class="sideleft"></div>
    <ul class="navmenu">
     <li class="current"><a href="#" target="_top" title="首页">脚本之家</a></li>
     <li><a href="#">编程资源</a></li>
     <li><a href="#">在新手册</a></li>
    </ul>
    <div class="sideright"></div>
    <div class="sideleft"></div>
    <ul class="navmenu">
     <li><a href="#">网页制作</a></li>
     <li><a href="#">网络编程</a></li>
     <li><a href="#">平面设计</a></li>
     <li><a href="#">操作系统</a></li>
    </ul>
    <div class="sideright"></div>
    <div>
     <div class="content">
       <a href="#" target="_blank">特效代码</a>
       <a href="#" target="_blank">特效代码</a>
       <a href="#" target="_blank">特效代码</a>
       <a href="#" target="_blank">特效代码</a>
       <a href="#" target="_blank">特效代码</a>
       <a href="#" target="_blank">特效代码</a>
       <a href="#" target="_blank">特效代码</a>
       <a href="#" target="_blank">特效代码</a>
       <a href="#" target="_blank">特效代码</a>
       <a href="#" target="_blank">特效代码</a>
     </div>
    </div>
   </div>
  </div>
 </div>
 <div class="clear"></div>
</body>
</html>

企望对大家学习javascript程序设计有着帮忙。

您恐怕感兴趣的稿子:

  • 原生js和jquery分别达成横向导航菜单效能
  • javascript仿京东导航侧面分类导航下拉菜单效果
  • js图片卷帘门导航菜单特效代码分享
  • 能够比美Flash的JS导航菜单
  • 叁个js调控的领航菜单实例代码
  • 用js达成的相比杰出实用的触发型导航菜单
  • 原生js做的手风琴效果的领航菜单
  • JS实现选中当前美食做法后高亮展现的导航条效果
  • 这么些酷的js图形渐隐导航菜单栏
  • JavaScript实战之带收放动画效果的领航菜单

本文由网络计算发布,转载请注明来源:CSS实现经典橙色导航菜单