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>

  • 相关阅读:
    SpringBoot整合ActiveMQ同时支持P2P和发布订阅模式(三)
    SpringBoot整合ActiveMQ的publish/subscribe发布订阅模式(二)
    Windows启动ActiveMQ报Wrapper Stopped错误
    IDEA从远程仓库克隆项目
    Git的安装
    IDEA上传项目到使用github上
    Mybaits的逆向工程
    posman测试接口需要登录验证的使用
    SSM整合SpringSecurity
    SpringBoot整合MongoDB的连接用户名和密码问题
  • 原文地址:https://www.cnblogs.com/chenshanhe/p/6631764.html
Copyright © 2011-2022 走看看