最基本的横行菜单制作

2014-10-29 0 204
最基本的横行菜单制作
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>NavgationLists</title>
    <style>
    body, nav, ul, li, a {
        margin: 0;
        padding: 0;
    }
    #nav {
        width: 300px;
        height: 35px;
        background-color: #CCC;
        margin: 0 auto;
    }

    #nav ul {
        list-style: none;
    }
    #nav ul li {
        display: block;
        float: left;
        height: 35px;
        line-height: 35px;
        text-align: center;
    }
    #nav ul li a {
        display: block;
        float: left;
        height: 35px;
        text-decoration: none;
        padding: 0 10px;
    }
    #nav ul li a:hover {
        color: #fff;
        background-color: #000;
    }
    </style>
</head>
<body>
<nav id="nav">
    <ul>    
        <li><a href="" rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow" >Home</a></li>
        <li><a href="" rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow" >About</a></li>
        <li><a href="" rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow" >Services</a></li>
        <li><a href="" rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow" >Contact</a></li>
    </ul>
</nav>
</body>
</html>

遇见资源网 html 最基本的横行菜单制作 http://www.ox520.com/13832.html

上一篇: 自己玩玩
常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务