zoukankan      html  css  js  c++  java
  • 13 用Css做下拉菜单

    <style type="text/css">

       * {     margin: 0px;     padding: 0px;     font-family: "微软雅黑";    }   

      #top1{ 100%px;           height:40px;        background-color:#9C9;        } 

       #top2{      height:40px;           400px;        margin:0px auto;      }

       #nav-top {     height: 40px;      400px;     background-color: #1abc9c;     color: white;     border-radius: 5px;     float:left;    }   

       li {     color: black;     list-style: none;     background-color: #ecf0ff;    }

       .nav-btn {      100px;     float: left;     line-height: 40px;     text-align: center;     overflow: hidden;     border-radius: 5px;     max-height: 40px;    }    li:hover{     background-color: #1ABC9C;    }    

    .nav-btn:hover{     background-color: cornflowerblue;     cursor: pointer;     max-height: 500px;     transition: 1s;    }   

    </style>

    <body>

    <div id="top1">

      <div id="top2">  

        <div id="nav-top">

           <div class="nav-btn">1    

             <ul>    

               <li>111</li><li>222</li><li>333</li>      

            </ul>    

           </div>  

           <div class="nav-btn">2    

            <ul>      

              <li>222</li><li>333</li><li>444</li>    

            </ul>    

           </div>    

          </div>

        </div>

      </div>

    </body>

  • 相关阅读:
    【译】高级指南-深入JSX
    记一次MongoDB裸奔
    CORS详解
    如何用Node编写命令行工具
    JSONP详解
    Web API接口之Geolocation
    认识AMD、CMD、UMD、CommonJS
    javascript之反柯里化(uncurrying)
    webpack3.0之loader配置及编写(一)
    小程序图形验证码前端实现
  • 原文地址:https://www.cnblogs.com/chenshanhe/p/6631764.html
Copyright © 2011-2022 走看看