仿作小米官网-乞丐版

这几天学习进度落了很多,导致做的时候很不流畅,很多都不会,都要用到后面的浮什么的,所以我用仅存的知识做了个丐版的

 

 

 

 

 

 

 

 

完整代码为

<!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>Document</title>

    <style>

        body{

            margin: 0;

            padding: 0;

        }

      .box1{

       

        width: 2538px;

        height: 107px;

        background: black url(20220717183052.png) no-repeat 360px 20px;

       

       

       

      }

      .box1 a{

        line-height: 90px;

        width: 140px;

        text-decoration: none;

        color: white;

        display: inline-block;

       /* background-color: purple;*/

        font-size:18px;

        font-weight:bold;

      }

     

   

     .container{

        width: 1900px;

        height: 90px;

      /*  background-color: red;    */

         

         display: block;    

         margin:0 auto;

     }

.picture1{

    background:url(20220717181807.png) no-repeat center top;

    width: 2538px;

    height: 1370px;

    display: block;

}

.picture2{

background:url(20220717181837.png) no-repeat center top;

width: 2538px;

height: 1370px;

display: block;

}

.picture3{

background:url(20220717181903.png) no-repeat center top;

width: 2538px;

height: 1370px;

display: block;

}

.picture4{

background:url(20220717181940.png) no-repeat center top;

width: 2538px;

height: 1370px;

display: block;

}

.box6{

    margin:0 auto;

    width: 1750px;

    height: 490px;

    /*background-color: aqua;*/

}

.quyu1{

width:260px;

height:490px;

float:left;

/*background-color: brown;*/

margin-right:20px;

}

.quyu2{

    width:260px;

    height:490px;

    margin-right:0px;

    /*background-color:blueviolet;*/

}

.diyikuai{

   display:block;

   height: 36px;

   color:black;

   text-decoration: none;

 /*  background-color: yellow;*/

   

}

.xuan{

    display:block;

   height: 84px;

    /*background-color: blue;*/

    font-size:25px;

}

.rengong{

    display: block;

    width: 250px;

    height: 490px;

    background: url(20220717221226.png) no-repeat 2px 85px;

}

.box7{

   /* background-color: aquamarine;*/

    width: 1930px;

    height: 162px;

    margin:0 auto;

    background: url(20220717223004.png) no-repeat 44px 65px;

}

.at1{

    width: 1530px;

    height: 190px;

    /*background-color: blue;*/

    margin:0 auto;

   

}

.at1 a{

    color:black;

   text-decoration: none;

}


 

.at1 .jin{

    color:rgb(132, 132, 127);

}

.box8

{

    margin:0 auto;

    width:500px;

    height: 100px;

    /*background-color:black;*/

}

.last{

    display: block;

    width:500px;

    height: 52px;

    background: url(20220717231416.png) left 1px;

   

}

.container a:hover{

    color:orange;

    text-decoration: none;

}

.box6 a:hover{

    color:orange;

    text-decoration: none;

}

.box7 a:hover{

    color:orange;

    text-decoration: none;

}


 

    </style>  

</head>

<body>

   

         

    <div class="box1">

      <div class="container" >

        <span><a href="#" class="m"></a></span>

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

        <span><a href="#" class="m">小米商城</a></span>

        <span><a href="#" class="m">小米影像</a></span>

        <span><a href="#" class="m">MIUI</a></span>

        <span><a href="#" class="m">lot</a></span>

        <span><a href="#" class="m">云服务</a></span>

        <span><a href="#" class="m">天星数据</a></span>

        <span><a href="#" class="m">右品</a></span>

        <span><a href="#" class="m">小艾开放平台</a></span>

        <span><a href="#" class="m">企业团购</a></span>

        <span><a href="#" class="m">登录&nbsp;&nbsp;&nbsp;|</a> </span>

       

        <span><a href="#" class="m">注册</a></span>

    </div>

   

    </div>

    <div class="box2">

        <a href="#" class="picture1"> </a>

    </div>

    <div class="box3">

        <a href="#" class="picture2"> </a>

    </div>

    <div class="box4">

        <a href="#" class="picture3"> </a>

    </div>

    <div class="box5">

        <a href="#" class="picture4"> </a>

    </div>

    <div class="box6">

        <div class="quyu1">

            <div class="xuan">选购指南</div>

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

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

            <div ><a href="#" class="diyikuai">笔记本</a></div>

            <div ><a href="#" class="diyikuai">平板</a></div>

            <div ><a href="#" class="diyikuai">穿戴</a></div>

            <div ><a href="#" class="diyikuai">耳机</a></div>

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

            <div ><a href="#" class="diyikuai">路由器</a></div>

            <div ><a href="#" class="diyikuai">音箱</a></div>

            <div ><a href="#" class="diyikuai">配件</a></div>

        </div>

        <div class="quyu1">

             <div class="xuan">服务中心</div>

             <div ><a href="#" class="diyikuai">申请售后</a></div>

             <div ><a href="#" class="diyikuai">售后政策</a></div>

             <div ><a href="#" class="diyikuai">维修服务价格</a></div>

             <div ><a href="#" class="diyikuai">订单查询</a></div>

             <div ><a href="#" class="diyikuai">以旧换新</a></div>

             <div ><a href="#" class="diyikuai">保障服务</a></div>

             <div ><a href="#" class="diyikuai">防伪查询</a></div>

             <div ><a href="#" class="diyikuai">f吗通道</a></div>

           

         

            </div>

        <div class="quyu1">

            <div class="xuan">线下门店</div>

            <div ><a href="#" class="diyikuai">申请售后</a></div>

            <div ><a href="#" class="diyikuai">售后政策</a></div>

            <div ><a href="#" class="diyikuai">维修服务价格</a></div>

            <div ><a href="#" class="diyikuai">订单查询</a></div>

            <div ><a href="#" class="diyikuai">以旧换新</a></div>

            <div ><a href="#" class="diyikuai">保障服务</a></div>

            <div ><a href="#" class="diyikuai">防伪查询</a></div>

            <div ><a href="#" class="diyikuai">f吗通道</a></div>

            </div>

        <div class="quyu1">

            <div class="xuan">关于小米</div>

            <div ><a href="#" class="diyikuai">申请售后</a></div>

            <div ><a href="#" class="diyikuai">售后政策</a></div>

            <div ><a href="#" class="diyikuai">维修服务价格</a></div>

            <div ><a href="#" class="diyikuai">订单查询</a></div>

            <div ><a href="#" class="diyikuai">以旧换新</a></div>

            <div ><a href="#" class="diyikuai">保障服务</a></div>

            <div ><a href="#" class="diyikuai">防伪查询</a></div>

            <div ><a href="#" class="diyikuai">f吗通道</a></div>

            </div>

        <div class="quyu1">

            <div class="xuan">关注我们</div>

            <div ><a href="#" class="diyikuai">申请售后</a></div>

            <div ><a href="#" class="diyikuai">售后政策</a></div>

            <div ><a href="#" class="diyikuai">维修服务价格</a></div>

            <div ><a href="#" class="diyikuai">订单查询</a></div>

            <div ><a href="#" class="diyikuai">以旧换新</a></div>

            <div ><a href="#" class="diyikuai">保障服务</a></div>

            <div ><a href="#" class="diyikuai">防伪查询</a></div>

            <div ><a href="#" class="diyikuai">f吗通道</a></div>

            </div>

        <div class="quyu1">

                    <a href="#" class="rengong"></a>

            </div>

        </div>

        <div class="box7">

            <div class="at1">

                 <p> <a href="#">小米商城</a> |  <a href="#">MIUI</a>  |<a href="#">米聊</a>|<a href="#">多看</a>|<a href="#">游戏</a>|<a href="#">小米商城</a> | <a href="#">小米商城</a> | <a href="#">小米商城</a> | <a href="#">小米商城</a> | <a href="#">小米商城</a>| <a href="#">小米商城</a>| <a href="#">小米商城</a>| <a href="#">小米商城</a>| <a href="#">小米商城</a>| <a href="#">小米商城</a>| <a href="#">小米商城</a>| <a href="#">小米商城</a>  </p>

                 <p><a href="#">北京互联网法院法律服务工作站</a> | <a href="#">中国消费者协会</a> | <a href="#">小米商城</a>| <a href="#">小米商城</a>| <a href="#">小米商城</a>| <a href="#">小米商城</a> </p>

                 <p><a href="#" class="jin">京ICP证110507号</a>&nbsp;&nbsp;<a href="#" class="jin">京ICP证110507号</a>&nbsp;&nbsp;<a href="#" class="jin">京ICP证110507号</a>&nbsp;&nbsp;<a href="#" class="jin">京ICP证110507号</a>&nbsp;&nbsp;<a href="#" class="jin">京ICP证110507号</a>&nbsp</p>

                 

                 <p class="jin">违法和不良信息举报电话:171-5104-4404 知识产权侵权投诉 本网站所列数据,除特殊说明,所有数据均出自我司实验室测试</p>

                 <p><a href="#" class="last"></a></p>

            </div>

       

           

       

           

        </div>

       

   

   

   

   

</body>

</html>

效果图还行,正版该有的功能的盗版的都有,点击文字链接变色也有,当时这个差点忘记做了

 

 

 

 

 

 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值