搭建小米官网导航条

搭建小米导航条

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>导航条</title>
    <style>
        *{
                margin: 0;
                padding: 0;
        }
        .back{
            width: 100%;
            height: 40px;
            background-color: #333333;
            font-size: 12px;
        }
        #head {
            width: 90%;
            float: left;
        }
        #herd-shopping {
            background-color: #424242;
            width: 10%;
            float: right;
            text-align: center;
        }
        #head-left {
            float: left;
        }
        #head-right {
            float: right;   /*浮动 浮到空中往右飘*/
        }
        .back a{
            padding: 10px 0px;
            text-decoration: none;
            font-weight:lighter;
            color: #b0b0b0;
            display: inline-block;
        }
        .back a:hover{
            color: white;
        }

    </style>
</head>
<body>
<div class="back">
    <div id="head">
        <div id="head-left">
            <a href="">小米商城</a>
            <span style="color: #423c37">&nbsp;|&nbsp; </span>
            <a href="">MIUI</a>
            <span style="color: #423c37">&nbsp;|&nbsp; </span>
            <a href="">ioT</a>
            <span style="color: #423c37">&nbsp;|&nbsp; </span>
            <a href="">云服务</a>
            <span style="color: #423c37">&nbsp;|&nbsp; </span>
            <a href="">金融</a>
            <span style="color: #423c37">&nbsp;|&nbsp; </span>
            <a href="">有品</a>
            <span style="color: #423c37">&nbsp;|&nbsp; </span>
            <a href="">小爱开放平台</a>
            <span style="color: #423c37">&nbsp;|&nbsp; </span>
            <a href="">企业团购</a>
            <span style="color: #423c37">&nbsp;|&nbsp; </span>
            <a href="">资质证照</a>
        </div>
        <div id="head-right">
            <a href="">登录</a>
            <span style="color: #423c37">&nbsp;|&nbsp; </span>
            <a href="">注册</a>
            <span style="color: #423c37">&nbsp;|&nbsp; </span>
            <a href="">消息通知</a>
            <span style="color: #423c37">&nbsp;|&nbsp; </span>
        </div>
    </div>
    <div id="herd-shopping">
        <a href="">购物车 (0)</a>
    </div>
</div>
</body>
</html>

搭建小米官网导航条

上一篇:日期在苹果手机上显示NaN的处理方法


下一篇:中国电子信息行业联合会专家委员会主任董云庭:智领未来,科技创新破局经济新常态