导航条

作者: 白s圣诞节 | 来源:发表于2018-10-29 19:42 被阅读0次
    <!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

    相关文章

      网友评论

          本文标题:导航条

          本文链接:https://www.haomeiwen.com/subject/krjitqtx.html