首页 > 其他 > 详细

菜单栏鼠标经过伸缩效果

时间:2017-09-15 21:34:09      阅读:825      评论:0      收藏:0      [点我收藏+]
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
        <style type="text/css">
        *{
            margin: 0;
            padding: 0;
        }
        nav{
            height: 30px;
            width: 300px;
            margin: 50px auto;
            overflow: hidden;
            transition: 2s;
            border-radius: 15px;
        }
        nav:hover{
            height: 180px;
        }
        h2{
            background: orange;
            color: white;
            height: 30px;
            line-height: 30px;
        }
        nav:hover h2{
            background: black;
        }
        ul{
            background: orange;
            color: white;
        }
        ul li{
            height: 30px;
            line-height: 30px;
        }
        </style>
    </head>
    <body>
        <nav>
            <h2>菜单栏</h2>
            <ul>
                <li>首页</li>
                <li>首页</li>
                <li>首页</li>
                <li>首页</li>
                <li>首页</li>
            </ul>
        </nav>
    </body>
</html>

 

菜单栏鼠标经过伸缩效果

原文:http://www.cnblogs.com/lhl66/p/7528355.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!