小米商城大框架仿照布局最后一天望老师作业通过下!

Original 2019-03-25 01:04:36 200
abstract:html代码部分:<!DOCTYPE html><html>          <head>        <meta charset="UTF-8


html代码部分:


<!DOCTYPE html>

<html>

      

    <head>

        <meta charset="UTF-8">

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

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

        <title>小米商城</title>

        <link rel="shortcut icon" href="static/img/footlogo.png" type="image/x-icon">

        <link rel="stylesheet" href="static/font-awesome/css/font-awesome.min.css">

        <link rel="stylesheet" href="static/css/style.css">

    </head>

      

    <body>

        <!-- 顶部 -->

        <div class="header">

            <div class="menu"></div>

        </div>

        <!-- 主体部分 -->

        <div class="contents">

            <div class="content">

                <div class="contentMenu"></div>

                <div class="contentPic">

                    <div class="contentPic_l"></div>

                    <div class="contentPic_r"></div>

                </div>

                <div class="contentPic_ul">

                    <div class="contentPic_ul_1"></div>

                    <div class="contentPic_ul_0" style="background: url(static/img/midAD1.jpg);margin-right: 13px"></div>

                    <div class="contentPic_ul_0" style="background: url(static/img/midAD2.jpg);margin-right: 13px"></div>

                    <div class="contentPic_ul_0" style="background: url(static/img/midAD3.jpg)"></div>

                </div>

                <!-- 小米闪购 -->

                <div class="contentShop">

                     <h1>小米闪购</h1>

  

                    <div class="contentShop_1" style="margin-right:12.7px;border-top:1px solid red"></div>

                    <div class="contentShop_1" style="margin-right:12.7px;border-top:1px solid #FFAC13"></div>

                    <div class="contentShop_1" style="margin-right:12.7px;border-top:1px solid #83C44E"></div>

                    <div class="contentShop_1" style="margin-right:12.7px;border-top:1px solid #2196F3"></div>

                    <div class="contentShop_1" style="border-top:1px solid #E53935"></div>

                </div>

                <div class="contentImg" style="background: url(static/img/longAD1.jpg)"></div>

                <div class="contentUL">手机</div>

                <div class="contentPhone">

                    <div class="contentPhone_l"></div>

                    <div class="contentPhone_r">

                        <div style="margin-right:13.3px;"></div>

                        <div style="margin-right:13.3px;"></div>

                        <div style="margin-right:13.3px;"></div>

                        <div></div>

                        <div style="margin-right:13.3px;margin-top:14px;"></div>

                        <div style="margin-right:13.3px;margin-top:14px;"></div>

                        <div style="margin-right:13.3px;margin-top:14px;"></div>

                        <div style="margin-top:12px;"></div>

                    </div>

                </div>

                <div class="contentImg" style="background: url(static/img/longAD2.jpg)"></div>

                <div class="contentUL">家电</div>

                <div class="contentPhone">

                    <div class="contentPhone_0" style="margin-right:12.7px;background: url(static/img/buy/jdAD1.jpg);"></div>

                    <div class="contentPhone_1" style="margin-right:12.7px;"></div>

                    <div class="contentPhone_1" style="margin-right:12.7px;"></div>

                    <div class="contentPhone_1" style="margin-right:12.7px;"></div>

                    <div class="contentPhone_1"></div>

                    <div class="contentPhone_0" style="margin-right:12.7px;margin-top:12px;background: url(static/img/buy/jdAD2.jpg);"></div>

                    <div class="contentPhone_1" style="margin-right:12.7px;margin-top:12px;"></div>

                    <div class="contentPhone_1" style="margin-right:12.7px;margin-top:12px;"></div>

                    <div class="contentPhone_1" style="margin-right:12.7px;margin-top:12px;"></div>

                    <div class="contentPhone_2" style="margin-top:12px;">

                        <div class="contentPhone_1_t"></div>

                        <div class="contentPhone_1_d"></div>

                    </div>

                </div>

                <div class="contentImg" style="background: url(static/img/longAD3.jpg)"></div>

                <div class="contentUL">智能</div>

                <div class="contentPhone">

                    <div class="contentPhone_0" style="margin-right:12.7px;background: url(static/img/buy/znAD1.jpg);"></div>

                    <div class="contentPhone_1" style="margin-right:12.7px;"></div>

                    <div class="contentPhone_1" style="margin-right:12.7px;"></div>

                    <div class="contentPhone_1" style="margin-right:12.7px;"></div>

                    <div class="contentPhone_1"></div>

                    <div class="contentPhone_0" style="margin-right:12.7px;margin-top:12px;background: url(static/img/buy/znAD2.jpg);"></div>

                    <div class="contentPhone_1" style="margin-right:12.7px;margin-top:12px;"></div>

                    <div class="contentPhone_1" style="margin-right:12.7px;margin-top:12px;"></div>

                    <div class="contentPhone_1" style="margin-right:12.7px;margin-top:12px;"></div>

                    <div class="contentPhone_2" style="margin-top:12px;">

                        <div class="contentPhone_1_t"></div>

                        <div class="contentPhone_1_d"></div>

                    </div>

                </div>

                <div class="contentImg" style="background: url(static/img/longAD4.jpg)"></div>

            </div>

        </div>

        <!-- 底部 -->

        <div class="footers">

            <div class="footer_1"> <a href=""><i class="fa fa-wrench"></i>预约维修服务</a><span></span>

 <a href=""><i class="fa fa-rotate-right"></i>7天无理由退货</a><span></span>

 <a href=""><i class="fa fa-refresh"></i>15天免费换货</a><span></span>

 <a href=""><i class="fa fa-gift"></i>满150元包邮</a><span></span>

  

                <a

                href=""><i class="fa fa-map-marker"></i>520余家售后网点</a>

            </div>

            <div class="footer_2"></div>

            <div class="footer_3">

                <div class="footer_3_l">

                    <dl> <dt>帮助中心</dt>

  

                        <dd><a href="">账户管理</a>

                        </dd>

                        <dd><a href="">购物指南</a>

                        </dd>

                        <dd><a href="">订单操作</a>

                        </dd>

                    </dl>

                    <dl> <dt>服务支持</dt>

  

                        <dd><a href="">售后政策</a>

                        </dd>

                        <dd><a href="">自助服务</a>

                        </dd>

                        <dd><a href="">相关下载</a>

                        </dd>

                    </dl>

                    <dl> <dt>线下门店</dt>

  

                        <dd><a href="">小米之家</a>

                        </dd>

                        <dd><a href="">服务网点</a>

                        </dd>

                        <dd><a href="">授权体验店</a>

                        </dd>

                    </dl>

                    <dl> <dt>关于小米</dt>

  

                        <dd><a href="">了解小米</a>

                        </dd>

                        <dd><a href="">加入小米</a>

                        </dd>

                        <dd><a href="">投资者关系</a>

                        </dd>

                    </dl>

                    <dl> <dt>关注我们</dt>

  

                        <dd><a href="">新浪微博</a>

                        </dd>

                        <dd><a href="">官网微博</a>

                        </dd>

                        <dd><a href="">联系我们</a>

                        </dd>

                    </dl>

                    <dl> <dt>特色服务</dt>

  

                        <dd><a href="">F码通道</a>

                        </dd>

                        <dd><a href="">礼物码</a>

                        </dd>

                        <dd><a href="">防伪查询</a>

                        </dd>

                    </dl>

                </div>

                <div class="footer_3_r">

                    <p class="telephone">Feir-520-1314</p>

                    <p class="time">周一至周日 8:00-18:00

                        <br>(仅收市话费)</p>

                    <button><span class="fa fa-commenting "></span> 联系客服</button>

                </div>

            </div>

            <div class="footer_4">

                <div class="footer_4_l">

                    <img src="static/img/footlogo.png" alt="" class="logoBottom">

                </div>

                <div class="footer_4_c">

                    <div class="footer_4_c_a">

                        <ul>

                            <li>小米商城<span></span>

                            </li>

                            <li>MIUI<span></span>

                            </li>

                            <li>米家<span></span>

                            </li>

                            <li>米聊<span></span>

                            </li>

                            <li>多看<span></span>

                            </li>

                            <li>游戏<span></span>

                            </li>

                            <li>路由器<span></span>

                            </li>

                            <li>米粉卡<span></span>

                            </li>

                            <li>政企服务<span></span>

                            </li>

                            <li>小米天猫店<span></span>

                            </li>

                            <li>隐私政策<span></span>

                            </li>

                            <li>问题反馈<span></span>

                            </li>

                            <li>Select Region</li>

                        </ul>

                    </div>

                    <div class="footer_4_c_b"> <a href="">©mi.com</a>

 <a href="">京ICP证110507号</a>

 <a href="">京ICP备10046444号</a>

 <a href="">京公网安备11010802020134号</a>

 <a href="">京网文[2014]0059-0009号</a>

  

                        <br>违法和不良信息举报电话:136-110-13185,本网站所列数据,除特殊说明,所有数据均出自我司实验室测试</div>

                </div>

                <div class="footer_4_r">

                    <img src="static/img/footericon1.png" alt="" class="icon">

                    <img src="static/img/footericon2.png" alt="" class="icon">

                    <img src="static/img/footericon3.png" alt="" class="icon">

                    <img src="static/img/footericon4.png" alt="" class="icon">

                    <img src="static/img/footericon5.png" alt="" class="icon">

                </div>

            </div>

            <div class="footer_5">探索黑科技,小米为发烧而生!</div>

        </div>

    </body>

  

</html>

CSS代码部分

* {

    margin:0;

    padding:0;

}

li {

    list-style: none;

}

a {

    text-decoration: none;

    color: #ccc;

    cursor: pointer;

}

/* 顶部样式 */

 .header {

    background: #333;

    width: 100%;

    height: 40px;

}

.menu {

    width: 1226px;

    height: 40px;

    margin: 0 auto;

}

/* 主体部分样式 */

 .content {

    width: 1226px;

    margin: 0px auto;

}

.contentMenu {

    background: #ccc;

    height: 90px;

    margin: 10px auto;

}

.contentPic {

    margin: 10px auto;

}

.contentPic_l {

    width:246px;

    height: 480px;

    background: #ccc;

    float: left;

}

.contentPic_r {

    width:980px;

    height: 480px;

    background: blue;

    float: left;

}

/* 清楚浮动 */

 .contentPic:after {

    display: block;

    /*将文本转为块级元素*/

    content:"";

    /*设置内容为空*/

    height: 0;

    /*高度为0*/

    line-height: 0;

    /*行高为0*/

    visibility: hidden;

 

Correcting teacher:查无此人Correction time:2019-03-25 09:31:22
Teacher's summary:嗯,又是你。好好学习,之前是不是时间浪费了,现在开始着急了。继续加油吧

Release Notes

Popular Entries