<address id="ousso"></address>
<form id="ousso"><track id="ousso"><big id="ousso"></big></track></form>
  1. 網頁設計

    DIV+CSS實現的綠色水平一級菜單代碼

    時間:2025-05-21 00:56:54 網頁設計 我要投稿
    • 相關推薦

    DIV+CSS實現的綠色水平一級菜單代碼

      本文實例講述了p+CSS實現的綠色水平一級菜單代碼。分享給大家供大家參考。

      這是一款基于p+CSS實現的綠色水平網站菜單,相信是你喜歡的一種CSS菜單,綠色風格,用到了幾張背景圖片,大家順著路徑把圖片下載下來吧。這款菜單整體感覺效果不錯,兼容性又好,不管是用在你的網站或是學習研究CSS,都是不錯的選擇。

      運行效果截圖如下:

      918.jpg

      代碼如下:

      <!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>綠色水平CSS菜單</title>

      <style>

      body{font-size:12px;font-family:Arial,Helvetica,'宋體',sans-serif;color:#333;background:#fff;margin:0;}

      a:link{color:#0041D9;text-decoration:none;outline:none;}

      a:visited{color:#0041D9;text-decoration:none;outline:none;}

      a:hover{color:#f60;text-decoration:underline;outline:none;}

      a:active{color:#0041D9;text-decoration:none;outline:none;}

      #header{position:relative;width:100%;}

      p.bar{position:relative;height:42px;background:url(images/mainmenu.bg14_6x42.gif) repeat-x;}

      #header p.tabbar{width:900px;}

      #header .tabbar p.tabs{left:266px;position:absolute;top:41px;font-size:14px;font-weight:bold;}

      #header .tabbar .tabs a{float:left;width:80px;height:24px;line-height:24px;padding-top:7px;text-align:center;color:#000;font-weight:lighter;font-size:14px;background:transparent;}

      #header .tabbar .tabs a:hover{background:#fff url(images/nav_hover_80x31.gif) no-repeat;text-decoration:none;margin-left:-1px;padding-left:1px;}

      #header .tabbar .tabs a.actived{background:#fff url(images/nav_80x31.gif) no-repeat;font-weight:bold;color:#fff;margin-left:-1px;padding-left:1px;}

      #header .tabbar .tabs a.actived:hover{background:#fff url(images/nav_80x31.gif) no-repeat;font-weight:bold;color:#fff;text-decoration:underline;}

      #header .tabbar .bg{position:absolute;left:266px;top:41px;width:560px;height:31px;z-index:-1;}

      #header .tabbar .bg .nw{float:left;width:80px;height:31px;background:transparent url(images/navleft2_80x31.gif) no-repeat;}

      #header .tabbar .bg .cen{float:left;width:80px;height:31px;background:transparent url(images/navlcenter_80x31.gif) no-repeat;}

      #header .tabbar .bg .ne{float:left;width:80px;height:31px;background:transparent url(images/navright_80x31.gif) no-repeat;}

      #header .tabbar .float_icon{background:transparent url(images/new01_18x19.gif) no-repeat;font-size:0;height:19px;line-height:0;position:absolute;right:403px;text-indent:-999px;top:-4px;width:18px;}

      #header{z-index:20;min-width:970px;}

      #header p.banner{position:relative;height:72px;z-index:10;}

      p.bar{height:7px;background:url(images/mainmenu.bg11_6x7.gif) repeat-x;}

      </style>

      </head>

      <body>

      <p id="header">

      <p class="banner">

      <p class="tabbar">

      <p class="tabs">

      <p class="float_icon">新</p>

      <a href="#" title="首 頁" class="actived" style="margin-left:0;padding-left:0;">首 頁</a>

      <a href="#" title="ASP源碼">ASP源碼</a>

      <a href="#" title="PHP源碼">PHP源碼</a>

      <a href="#" title=".NET源碼">.NET源碼</a>

      <a href="#" title="JSP源碼">JSP源碼</a>

      <a href="#" title="HTM源碼">HTM源碼</a>

      <a href="#" title="網頁菜單">網頁菜單</a>

      </p>

    【DIV+CSS實現的綠色水平一級菜單代碼】相關文章:

    純css實現藍色圓角效果水平導航菜單代碼07-10

    CSS實現自適應寬度的菜單按鈕效果代碼09-22

    CSS實現的中英文雙語菜單效果代碼06-21

    CSS如何實現中英文雙語菜單效果代碼06-01

    thinkPHP實現的聯動菜單功能10-03

    用于團購網站的橙色導航菜單代碼10-15

    PHP滾動日志的代碼實現11-15

    Java 隊列實現原理及簡單實現代碼09-13

    php實現無限級分類實現代碼07-03

    <address id="ousso"></address>
    <form id="ousso"><track id="ousso"><big id="ousso"></big></track></form>
    1. 日日做夜狠狠爱欧美黑人