小米商城底部布局!

原创 2018-12-07 00:15:22 5
摘要:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <link rel="shortcut icon" type="image/x-icon" href="sta
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="shortcut icon" type="image/x-icon" href="static/img/footlogo.png">
<link rel="stylesheet" type="text/css" href="static/font-awesome/css/font-awesome.css">
<link rel="stylesheet" type="text/css" href="static/css/style.css">
<title>小米商城</title>
</head>
<body>
<!-- 头部  header -->
<div>
<div></div>
</div>
<!-- 内容  content -->
<div>
<div></div>
<div>
<div></div>
<div></div>
</div>
<div></div>
<div>
<div></div>
<div style="background: url(static/img/midAD1.jpg);margin-right:12px;"></div>
<div style="background: url(static/img/midAD2.jpg);margin-right:14px;"></div>
<div style="background: url(static/img/midAD3.jpg);"></div>
</div>
<div></div>
<!-- 小米闪购 -->
<div>
<h1>小米闪购</h1>
<div style="margin-right: 12.7px;border-top: 1px solid red;"></div>
<div style="margin-right: 12.7px; border-top:1px solid yellow;"></div>
<div style="margin-right: 12.7px; border-top:1px solid green;"></div>
<div style="margin-right: 12.7px; border-top:1px solid blue;"></div>
<div style="border-top:1px solid red;"></div>
</div>
<div></div>
<div style="background: url(static/img/longAD1.jpg);"></div>
<div>手机</div>
<div>
<div></div>
<div>
<div style="margin:0px 12.7px 0px 0px;"></div>
<div style="margin:0px 12.7px 0px 0px;"></div>
<div style="margin:0px 12.7px 0px 0px;"></div>
<div></div>
<div style="margin:14px 12.7px 0px 0px;"></div>
<div style="margin:14px 12.7px 0px 0px;"></div>
<div style="margin:14px 12.7px 0px 0px;"></div>
<div style="margin-top: 14px;"></div>
</div>
</div>
<div></div>
<div style="background: url(static/img/longAD2.jpg);"></div>
<div>智能</div>
<div>
<div style="margin:0px 12.7px 0px 0px; background: url(static/img/buy/智能AD1.jpg);"></div>
<div style="margin:0px 12.7px 0px 0px;"></div>
<div style="margin:0px 12.7px 0px 0px;"></div>
<div style="margin:0px 12.7px 0px 0px;"></div>
<div></div>
<div style="margin:0px 12.7px 0px 0px; margin-top: 14px; background: url(static/img/buy/智能AD2.jpg)"></div>
<div style="margin:0px 12.7px 0px 0px; margin-top: 14px;"></div>
<div style="margin:0px 12.7px 0px 0px; margin-top: 14px;"></div>
<div style="margin:0px 12.7px 0px 0px; margin-top: 14px;"></div>
<div style="margin-top: 14px;">
<div></div>
<div style="margin-top: 10px;"></div>
</div>
</div>
<div></div>
<div style="background: url(static/img/longAD3.jpg);"></div>
<div>家电</div>
<div>
<div style="margin:0px 12.7px 0px 0px; background: url(static/img/buy/家电AD1.jpg);"></div>
<div style="margin:0px 12.7px 0px 0px;"></div>
<div style="margin:0px 12.7px 0px 0px;"></div>
<div style="margin:0px 12.7px 0px 0px;"></div>
<div></div>
<div style="margin:0px 12.7px 0px 0px; margin-top: 14px; background: url(static/img/buy/家电AD2.jpg)"></div>
<div style="margin:0px 12.7px 0px 0px; margin-top: 14px;"></div>
<div style="margin:0px 12.7px 0px 0px; margin-top: 14px;"></div>
<div style="margin:0px 12.7px 0px 0px; margin-top: 14px;"></div>
<div style="margin-top: 14px;">
<div></div>
<div style="margin-top: 10px;"></div>
</div>
</div>
<div></div>
<div style="background: url(static/img/longAD4.jpg);"></div>
<div class=""></div>
</div>
<!-- 页脚  footer-->
<div>
<div>
<!-- 预约维修 7天无理由 -->
<div>
<a href="#"><i class="fa fa-wrench"></i>预约维修服务</a>
<span></span>
<a href="#"><i class="fa fa-rotate-right "></i>七天无理由退货</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></div>
<div>
            <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 class="footers2_1 fl">
        <p>Feir-520-1314</p>
                <p>周一至周日 8:00-18:00<br>(仅收市话费)</p>
                <button><span class="fa fa-commenting "></span> 联系客服</button>
</div>
</div>
<div></div>
<div class="footers3 fl">
<div class="footers3_0 fl"><img src="static/img/footlogo.png"></div>
<div class="footers3_1 fl">
<a href="">小米商城</a>
<span></span>
<a href="">MIUI</a>
<span></span>
<a href="">米家</a>
<span></span>
<a href="">米聊</a>
<span></span>
<a href="">多看</a>
<span></span>
<a href="">游戏</a>
<span></span>
<a href="">路由器</a>
<span></span>
<a href="">米粉卡</a>
<span></span>
<a href="">政企服务</a>
<span></span>
<a href="">小米天猫店</a>
<span></span>
<a href="">隐私政策</a>
<span></span>
<a href="">问题反馈</a>
<span></span>
<a href="">Select Region</a>
</div>
<div class="footers3_2 fl">
<p>
<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>
</p>
</div>
</div>
<div>
<img src="static/img/footericon1.png">
<img src="static/img/footericon2.png">
<img src="static/img/footericon3.png">
<img src="static/img/footericon4.png">
<img src="static/img/footericon5.png">
</div>
<div></div>
<div>探索黑科技,小米为发烧而生!</div>
</div>
</div>
</body>
</html>
*{padding: 0px;margin: 0px;border: 0px;}
.clear{clear: both;}
li {list-style: none;}
.fl{float: left;}
a{text-decoration: none;color: #ccc;cursor: pointer;}
/*头部样式*/
.header{background: #333;width: 100%;height: 40px;}

/*主体样式*/
/*父级给了宽度,一般让子级自己撑开所以content不设高度*/
.content{width: 1226px;margin: 0px auto;}
.content_menu{background: #ccc;height: 90px;margin:10px auto;}
.content_pic{margin:10px auto;}
.content_picl{width: 246px;height: 480px;background: #ccc;height: 480px;float: left;}
.content_picf{width: 980px;height: 480px; background: blue;float: left;}
.contentpic_ul{height: 170px;margin:10px auto;}
.contentpic_ul_1{width: 235px;background: #5F5750;height: 170px;margin-right: 13px;float: left;}
.contentpic_ul_0{width: 317px;height: 170px;float: left;}
/*小米闪购*/
.contentshop{height: 280px;margin:10px auto;}
.contentshop_1{width: 235px;height:340px;background: #ccc;float: left;}
.contentimg{background: #ccc;height: 100px;margin:10px auto;}
.contentul{background: #ccc;height: 80px;margin:10px auto;}
.contentphone{margin:10px auto;}
.contentphone_l{height: 614px;width: 234px;background: url('../img/buy/手机AD.jpg');float: left;margin-right: 12px;}
.contentphone_r{height: 614px;width: 980px;float: left;}
.contentphone_r div{width: 235px;height: 300px;float: left;background: #ccc;}
.contentphone_0,.contentphone_1{width: 235px;height: 300px;float: left;background: #ccc;}
.contentphone_t,.contentphone_b{width: 235px;height: 145px;background:#ccc;}
/*页脚样式*/
.footer{background: #fff;width: 1226px;margin: 10px auto;}
.footers1{text-align: center;border-bottom: 1px solid #e0e0e0;}
.footers1 i{margin-right:10px;}
.footers1 a{height: 80px;line-height: 80px;color: #616161;font-weight: 300px;font-size: 16px;}
.footers a:hover{color:#ff5700;}
.footers1 span{color: #616161;margin: 0 56px;font-size: 20px;border-left: 1px solid #e0e0e0;}
.footers2{padding-top: 40px;text-align: center;}
.footers2 dl{width: 160px;display: block;}
.footers2 dt{margin-bottom:26px;font-size: 14px;color: #424242;}
.footers2 dd{height: 18px;line-height: 18px;margin-top: 10px;}
.footers2 dd a,.footers2_1 .time{font-size: 12px;margin-top: 10px;color: #757575;}
.footers2_1{width: 259px;height: 112px;border-left: 1px solid #e0e0e0;}
.footers2_1 .telephone{font-size: 22px;line-height: 22px;color: #ff6700;margin:0px 0px 8px;}
.footers2_1 button{width: 118px;height: 28px;font-size: 12px;color: #ff5700; background-color: #fff; border:1px solid #ff6700;margin-top:16px;}
.footers2_1 button:hover{background:#ff6700;color: #fff;}
.footers3{margin:25px 0px 0px;height: 30px;}
.footers3_1,.footers3_2{margin-left: 10px;height: 20px;line-height: 30px;}
.footers3_1 span{border-left: 1px solid #e0e0e0;font-size: 1px;margin: 2px;}
.footers3_1 a,.footers3_2 a{height: 19px;font-size: 12px;color: #757575;}
.footers3_2{width: 640px;height: 40px;line-height: 40px;}
.footers4{width: 465px;height: 27px;float: right;margin-top: -10px;}
.footers4 img{border: none; display: block;width: 83px;float: left;}
/*探索黑科技 小米为发烧而生!*/
.footers .ipc{font-family: 楷体;font-size: 24px;color: rgb(204,204,204); width: 1226px;text-align: center; height:50px;line-height: 50px; }


批改老师:Peter-Zhu批改时间:2018-12-07 09:04:19
老师总结:写得不错, 不过, 如果你的宽度或高度为0 ,可以省略掉单位的: px

发布手记

热门词条