javascript HTML+CSS實現經典橙色導覽功能表,css導覽功能表

來源:互聯網
上載者:User

javascript HTML+CSS實現經典橙色導覽功能表,css導覽功能表

本文執行個體介紹了javascript結合HTML CSS實現橙色導覽功能表,分享給大家供大家參考,具體內容如下

:

<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 {   background: 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 {    background: url(http://hovertree.com/hvtimg/bjafjb/6hcuxj1x.gif) no-repeat left bottom;    float: left;    height: 105px;    width: 6px;   }    #navpart .sideright {    background: 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 {   background: 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 {   background: 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 {   background: 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 {   background: 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 {     background: 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 {    background: 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="#"><span>編程資源</span></a></li>     <li><a href="#"><span>在新手冊</span></a></li>    </ul>    <div class="sideright"></div>    <div class="sideleft"></div>    <ul class="navmenu">     <li><a href="#"><span>網頁製作</span></a></li>     <li><a href="#"><span>網路編程</span></a></li>     <li><a href="#"><span>平面設計</span></a></li>     <li><a href="#"><span>作業系統</span></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實現另類帶提示效果的豎嚮導航菜單

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.