项目

小米顶部栏

<head>
    <meta charset="UTF-8">
    <title>小米商城导航栏</title>
    <style>
        a{
            text-decoration: none;
        }
        .top_bar{
            width: 100%;
            height: 40px;
            background-color: #333;
        }

        .top_bar a{
            color: #b0b0b0;
            /*background-color: green;*/
            display: inline-block;
            line-height: 40px;

        }

         .top_bar a:hover{
             cursor: pointer;
             color: #fff;

         }

        .top_bar span{
            color: #424242;

        }


    </style>
</head>
<body>
    <div class="top_bar">
        <a href="#">小米商城</a>
        <span>|</span>
        <a href="#">MIUI</a>
        <span>|</span>
        <a href="#">IoT</a>
        <span>|</span>
        <a href="#">云服务</a>
        <a href="#">小米商城</a>
        <span>|</span>
        <a href="#">MIUI</a>
        <span>|</span>
        <a href="#">IoT</a>
        <span>|</span>
        <a href="#">云服务</a>
        <a href="#">小米商城</a>
        <span>|</span>
        <a href="#">MIUI</a>
        <span>|</span>
        <a href="#">IoT</a>
        <span>|</span>
        <a href="#">云服务</a>
        <a href="#">小米商城</a>
        <span>|</span>
        <a href="#">MIUI</a>
        <span>|</span>
        <a href="#">IoT</a>
        <span>|</span>
        <a href="#">云服务</a>
    </div>
</body>
posted @ 2019-07-08 16:03  cjw1219  阅读(94)  评论(0编辑  收藏  举报