手记

简单好用的导航特效,

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <style>
        #menu{
            margin-top: 20px;
            background: linear-gradient(RGBA(194,1,4,1),RGBA(199,6,9,1),RGBA(204,11,14,1),RGBA(209,16,19,1),RGBA(214,21,24,1),RGBA(209,16,19,1),RGBA(204,11,14,1),RGBA(199,6,9,1),RGBA(194,1,4,1));
            width: 100%;
            height: 40px;
        }
        #menu ul{
            width: 750px;
            margin: auto;
        }
         #menu ul li{
            list-style:none;
            line-height: 40px;
            float: left;
        }
        #menu ul li a{
            padding: 12px 56px;
            text-align: center;
            text-decoration: none;
            color: white;
        }
        #menu ul li a:hover{
            text-decoration: none;
            color: white;
            background: #898989;
        }
    </style>
</head>
<body>
<div id="menu">
<ul>
    <li><a href="#">首页</a></li>
    <li><a href="#">关于我们</a></li>
    <li><a href="#">产品中心</a></li>
    <li><a href="#">新闻中心</a></li>
    <li><a href="#">联系我们</a></li>
</ul>
</div>
</body>
</html>

16人推荐
随时随地看视频
慕课网APP