web第二次作业

小米布局练习:
<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>小米布局练习</title>

    <link rel="stylesheet" href="../小米布局练习/index1.css">

   

</head>

<body>

    <div class="header">

        <div class="content">

            <div class="header-left">

                <a href="#">小米官网</a>

                <span class="sep">|</span>

                <a href="#">小米商场</a>

                <span class="sep">|</span>

                <a href="#">小米澎湃OS</a>

                <span class="sep">|</span>

                <a href="#">IoT</a>

                <span class="sep">|</span>

                <a href="#">云服务</a>

                <span class="sep">|</span>

                <a href="#">天星数科</a>

                <span class="sep">|</span>

                <a href="#">有品</a>

                <span class="sep">|</span>

                <a href="#">小爱开放平台</a>

                <span class="sep">|</span>

                <a href="#">资质证照</a>

                <span class="sep">|</span>

                <a href="#">协议规则</a>

                <span class="sep">|</span>

                <a href="#">下载app</a>

                <span class="sep">|</span>

                <a href="#">Select Location</a>

            </div>

            <div class="header-right">

                <a href="#">登录</a>

                <span class="sep">|</span>

                <a href="#">注册</a>

                <span class="sep">|</span>

                <a href="#">消息通知</a>

             

                <span class="shopping"><a href="#">购物车</a></span>

            </div>

        </div>

    </div>

    <div class="top-nav">

        <div class="content">

            <div class="top-nav-left"></div>

            <div class="top-nav-mid">

                <ul>

                    <li><a href="">xiaomi手机</a></li>

                    <li><a href="">redmi手机</a></li>

                    <li><a href="">电视</a></li>

                    <li><a href="">笔记本</a></li>

                    <li><a href="">平板</a></li>

                    <li><a href="">家电</a></li>

                    <li><a href="">路由器</a></li>

                    <li><a href="">服务中心</a></li>

                    <li><a href="">社区</a></li>

                </ul>

            </div>

            <div class="top-nav-right">

                <form action="#">

                    <input type="text">

                    <span>

                        <script src="../download/font_h9ottbbnewu/iconfont.js"></script>

                        <svg class="icon" aria-hidden="true">

                            <use xlink:href="#icon-sousu"></use>

                          </svg>

                       

                       

                    </span>

                </form>

            </div>

        </div>

       

    </div>

    <div class="zhongbu">

        <div class="content">

            <div class="left">

                <ul> <div class="left1"><a href="#">手机</a></div>

               

                <div class="left1"><a href="#">电视</a></div>

                <div class="left1"><a href="#">家电</a></div>

                <div class="left1"><a href="#">笔记本 平板</a></div>

                <div class="left1"><a href="#">出行 穿戴</a></div>

                <div class="left1"><a href="#">耳机 音箱</a></div>

                <div class="left1"><a href="#">健康 儿童</a></div>

                <div class="left1"><a href="#">生活 箱包</a></div>

                <div class="left1"><a href="#">智能 路由器</a></div>

                <div class="left1"><a href="#">电源 配件</a></div>

            </ul>

               

            </div>

           

        </div>

    </div>

    <div class="xiabu">

        <div class="context">

            <ul></ul>

            <div class="xia2">

                <div class="tu1"></div>

                <div class="tu2"></div>

                <div class="tu3"></div>

            </div>

        </div>

    </div>

   

</body>

</html>

CSS:
.header{
    width: 1226px;
    height: 140px;
    background-color: #f13105;
}
.top{
    width: 1226px;
    height: 40px;
    background-color: #cddb0b;
}
.nav{
    width: 767px;
    height: 40px;
    background-color: #da822a;
    float: left;
}
.info{
    width: 142px;
    height: 40px;
    background-color: #1ed75c;
    float: right;
}
.cart{
    width: 120px;
    height: 40px;
    background-color: #1263e4;
    float: right;
}
 
 
.header1{
    width: 1226px;
    height: 100px;
    background-color: #794475;
}
.logo{
    width: 56px;
    height: 56px;
    background-color: #ec5407;
    float: left;
    position: relative;
    top: 25%;
    left: 1%;
 
}
.headerNav{
    width: 850px;
    height: 100px;
    background-color: #0ad195;
    float: right;
}
.search{
    width: 296px;
    height: 50px;
    background-color: #980b9d;
    float: right;
    position: relative;
    top:25%
}
 

*{
    padding: 0;
    margin: 0 auto;
}
 
.home{
    width: 1226px;
    height: 644px;
    background-color: #139b85;
}
 
.dig{
    width: 1226px;
    height: 460px;
    background-color: #1da644;
    position: relative;
}
 
.category{
    width: 234px;
    height: 460px;
    background-color: #d6c7c79c;
    float: left;
}
 
ul{
    width: 234px;
    height: 460px;
    background-color: #d6c7c79c;
}
 
ul li{
    width: 234px;
    height: 42px;
    background-color: #fff;
    position: relative;
    top: 15px;
    list-style: none;
}
 
.left{
    width: 41px;
    height: 69px;
    background-color: #4e07f1;
    display: inline-block;
    position: absolute;
    top:40%;
}
.right{
    width: 41px;
    height: 69px;
    background-color: #4e07f1;
    display: inline-block;
    position: absolute;
    top:40%;
    right: 240px;
}
 
.small{
    width: 1226px;
    height: 170px;
    background-color: #100101;
    float: left;
    display: flex;
    justify-content: space-between;
}
.a{
    width: 300px;
    height: 170px;
    background-color: #976c97;
    display: inline-block;
}

js倒计时:

  • 11
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值