我的作业的代码

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
<style>
    *{
        margin: 0;
        padding: 0;
    }
    .A{ 
        width: 1226px;
            height: 600px;
            background-color: rgb(238, 250, 215);
            overflow: hidden;
        }
        ul{
            list-style: none;
        }
        .B{
            width: 1226px;
            height: 40px;
            background-color: black;
            padding: 10px;
        }
        .B1{
            display: flex;
            width: 780px;
            height: 25px;
            background-color: blue;
            align-items: center;
            justify-content: center;
            margin-top: 10px;
            margin-bottom: 10px;
            color:white;
            padding-left: 1px;
            float: left;
        }
        .B1 a{
            font-size: 12px;
            padding: 3px;
        }
        .B2{
            position: relative;
            display: flex;
            width: 300px;
            height: 25px;
            background-color: blue;
            align-items: center;
            justify-content: left;
            margin-top: 10px;
            margin-bottom: 10px;
            color:white;
            padding-left: 1px;
            float: right;
        }
        .body{
            width: 1226px;
            height: 100px;
            background-color: white;
        }
        .C {
            width: 62px;
            height: 100px;
            background-color: green;
            float: left;
            display: flex;
        }
    .C2{
        width: 56px;
        height: 56px;
        padding-top: 20px;
    }
    .Cl{
        position: relative;
        display: flex;
        width: 1164px;
        height: 100px;
        background-color: blueviolet;
        float: right;
        align-items: center;
        justify-content: left;
    }
    .Cl  a{
        
        padding-left: 30px;
       
        
    }
    .input{
        position: absolute;
        left: 900px;
        top: 100px;
        width: 200px;
        height: 50px;
    }
    .D1{
        width: 234px;
        height: 460px;
        background-color:yellow ;
        float: left;
    }
    .D2{
        display: flex;
        flex-direction: column;
        align-items: left;
        justify-content: center;
        
    }
    .D2 li{
        padding-top: 20px;
    }
    .D{
        position: relative;
        width: 1226px;
        height: 460px;
        background-color: brown;
        background-image: url(https://i1.mifile.cn/a4/xmad_15627255042708_pFaEU.jpg);
        background-size: cover;
    }
</style>
</head>
<body>
    <div class="A">
        <ul>
            <li class="B">
                <div class="B1">
                <a>小米官网</a>|
                <a>小米商城</a>|
                <a>小米澎湃OS</a>|
                <a>loT</a>|
                <a>云服务</a>|
                <a>天星数科</a>|
                <a>有品</a>|
                <a>小爱开放平台</a>|
                <a>资质证照</a>|
                <a>协议规则</a>|                                                                                                                                          
                <a>下载app</a>|
                <a> Select Location</a>
                </div>
                <div class="B2">
                <a>登录</a>|
                <a>注册</a>|
                <a>消息通知</a>
                </div>
                <div class="B3">
                <a>购物车(0)</a>
                </div>  
            </li>
            <li class="body">
                <div class="C">
                     <a ><img src="https://cdn.cnbj1.fds.api.mi-img.com/s02.mifile.cn/assets/static/image/logo-mi2.png" alt=""  class="C2"></a>
                </div>
                <div class="C1">
                    <a>Xiaomi手机</a>
                    <a>Redmi手机</a>
                    <a>电视</a>
                    <a>笔记本</a>
                    <a>平板</a>
                    <a>家电</a>
                    <a>路由器</a>
                    <a>服务中心</a>
                    <a>社区</a>
     
                </div>
                <div class="input">
                    <input type="text" placeholder="小米" width="200px" height=100"px">
                </div>
            </li>
            <li class="D">
                <div class="D1">
                    <ul class="D2">
                        <li>手机 ></li>
                        <li>电视 ></li>
                        <li>家电 ></li>
                        <li>笔记本 平板 ></li>
                        <li>出行 穿戴 ></li>
                        <li>耳机 音箱 ></li>
                        <li>健康 儿童 ></li>
                        <li>生活 箱包 ></li>
                        <li>智能 路由器 ></li>
                        <li>电源 配件 ></li>
                    </ul>
                </div>    
</body>
</html>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值