DIV CSS 佈局教程網

 DIV+CSS佈局教程網 >> 網頁腳本 >> CSS入門知識 >> CSS詳解 >> 一個新的CSS菜單代碼
一個新的CSS菜單代碼
編輯:CSS詳解     

一個新的CSS菜單代碼

<html>

<head>

 

<style>

body {

  font-family: verdana, helvetica, arial, sans-serif;

}

#mainMenu {

  background-color: #EEE;

  border: 1px solid #CCC;

  color: #000;

  width: 203px;

}

#menuList {

  margin: 0px;

  padding: 10px 0px 10px 15px;

}

li.menubar {

  background: url(/images/plus.gif) no-repeat 0em 0.3em;

  font-size: 12px;

  line-height: 1.5em;

  list-style: none outside;

}

.menu, .submenu {

  display: none;

  margin-left: 15px;

  padding: 0px;

}

.menu li, .submenu li {

  background: url(/images/square.gif) no-repeat 0em 0.3em;

  list-style: none outside;

}

a.actuator {

  background-color: transparent;

  color: #000;

  font-size: 12px;

  padding-left: 15px;

  text-decoration: none;

}

a.actuator:hover {

  text-decoration: underline;

}

.menu li a, .submenu li a {

  background-color: transparent;

  color: #000;

  font-size: 12px;

  padding-left: 15px;

  text-decoration: none;

}

.menu li a:hover, submenu li a:hover {

  /*border-bottom: 1px dashed #000;*/

  text-decoration: underline;

}

span.key {

  text-decoration: underline;

}

</style>

</head>

<body>

<div id="mainMenu">

      <ul id="menuList">

        <li class="menubar">

         

          <ul id="productsMenu" class="menu">

            <li>

             

              <ul id="newPhonesMenu" class="submenu">

                <li></li>

                <li></li>

                <li></li>

                <li></li>

              </ul>

            </li>

            <li>

             

              <ul id="compareMenu" class="submenu">

                <li></li>

                <li></li>

              </ul>

            </li>

          </ul>

        </li>

      </ul>

    </div>

  </body>

</html>

XML學習教程| jQuery入門知識| AJAX入門| Dreamweaver教程| Fireworks入門知識| SEO技巧| SEO優化集錦|
Copyright © DIV+CSS佈局教程網 All Rights Reserved