导航条

2018-10-29  本文已影响0人  白s圣诞节
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>导航条</title>
    <style type="text/css">
        *{
            margin: 0 auto;
            text-decoration: none;

        }
        .box{
            width:960px;
            height: 40px;
            border:1px solid black;
            margin-top: 100px;
        }
        .nav{
            /*float:left;*/
            line-height: 40px;
            margin-left: 110px;
        }
        a{
            margin-right: 20px;
            margin-left: 20px;
            font: bold 14px 微软雅黑;
            color:#333;
        }
        .box a:hover{
            color:#939191;
            text-decoration: underline;
        } 
    </style>
</head>
<body>
    <div class = "box">
        <div class= "nav">
            <a href = "#">首页</a>|
            <a href = "#">网站建设</a>|         
            <a href = "#">程序开发</a>|
            <a href = "#">网络营销</a>|
            <a href = "#">企业VI</a>|
            <a href = "#">案例展示</a>|
            <a href = "#">联系我们</a>
        </div>
    </div>
</body>
</html>
image.png
上一篇下一篇

猜你喜欢

热点阅读