DIV+CSS設(shè)計實例:透明的導(dǎo)航菜單_Web標(biāo)準(zhǔn)教程

      編輯Tag賺U幣
      教程Tag:暫無Tag,歡迎添加,賺取U幣!

      這是個透明的CSS菜單,兼容性:IE5.5+、Opera、Frefox、Netscape。

      CSS代碼:

      以下為引用的內(nèi)容:
      body{
          font: 80% Arial,sans-serif;
          background: #666;
      }

      #nav{
          width: 170px;
          background: url(navbg.gif) bottom;
          list-style-type: none;
          margin: 0;
          padding: 0;    
      }

      #nav a{
          display: block;
          width: 170px;
          line-height: 25px;
          text-decoration: none;
          color: #333;
          text-indent: 10px;
          font-weight: bold;
          background: url(nav2.png);
      }

      #nav a:hover{
          background: none;
          color: #999;
      }

      用if調(diào)入對ie的CSS控制:

      以下為引用的內(nèi)容:
      <!--[if gte IE 5.5]>
      <style type="text/css">
      #nav a{background: none;
      filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale', src='nav2.png')}
      #nav a:hover{filter: none}
      </style>
      <![endif]--> 

      來源:模板無憂//所屬分類:Web標(biāo)準(zhǔn)教程/更新時間:2008-04-23
      相關(guān)Web標(biāo)準(zhǔn)教程