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>

  • 相关阅读:
    Oracle完全卸载
    Oracle数据库(64位) 及 PLSQL(64位)的组合安装【第一篇】
    Yii2 配置yii2redis扩展
    php 获取每个汉字的拼音首字母
    linux 安装memcacheq
    php在linux中执行外部命令
    比较两个日期的时间差精确到秒
    mysql 的 备份与还原
    php类中__get和__set的用法
    yii2.0 安装
  • 原文地址:https://www.cnblogs.com/chenshanhe/p/6631764.html
Copyright © 2011-2022 走看看