abstract:<!-- 以下有两个文件,一个是HTML文件,另一个是CSS样式文件。 --><!doctype html><html><head><meta charset="UTF-8"><title>小米商城</title><!-- 引入title左边的logo图标 --><link r
<!-- 以下有两个文件,一个是HTML文件,另一个是CSS样式文件。 -->
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>小米商城</title>
<!-- 引入title左边的logo图标 -->
<link rel="icon" type="image/x-icon" href="static/images/footlogo.png">
<link rel="stylesheet" href="static/css/style1.css">
<!-- 引入外部字体CSS -->
<link rel="stylesheet" href="static/font-awesome/css/font-awesome.min.css">
<script src="static/js/jq_3.3.1_mi.js"></script> <!-- 引入jquery -->
</head>
<body>
<!-- 头部代码-导航 -->
<div>
<div></div>
</div>
<!-- 主体部分代码 -->
<div> <!-- 内容s -->
<div>
<!-- 导航条下面的图片和菜单 -->
<div>mi cai dan</div>
<div> <!-- 菜单下第一“行”左右两侧div块内容,需要浮动 -->
<div></div>
<div></div>
</div>
<div></div> 清除浮动。
<div>
<div></div>
<div style="background: url(static/images/midAD1.jpg);margin-right: 14px;"></div>
<div style="background: url(static/images/midAD2.jpg);margin-right: 14px;" ></div>
<div style="background: url(static/images/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;"></div>
<div style="margin-right: 12.7px;"></div>
<div style="margin-right: 12.7px;"></div>
<div></div>
</div>
<div></div>
<!-- 一张宽图片 -->
<div style="background: url(static/images/longAD1.jpg);">
</div>
<!-- 手机 -->
<div>手机</div>
<div>
<div></div>
<div>
<div style="margin-right: 12.7px;"></div>
<div style="margin-right: 12.7px;"></div>
<div style="margin-right: 12.7px;"></div>
<div></div>
<div style="margin-right: 12.7px;margin-top: 12.7px;"></div>
<div style="margin-right: 12.7px;margin-top: 12.7px;"></div>
<div style="margin-right: 12.7px;margin-top: 12.7px;"></div>
<div style="margin-top: 12.7px;"></div>
</div>
</div>
<div></div>
<!-- 一张宽图片 -->
<div style="background: url(static/images/longAD2.jpg);">
</div>
<!-- 家电行 -->
<div>家电</div>
<div>
<div style="margin-right: 12.7px;background: url(static/images/buy/家电AD1.jpg);"></div>
<div style="margin-right: 12.7px;"></div>
<div style="margin-right: 12.7px;"></div>
<div style="margin-right: 12.7px;"></div>
<div></div>
<div style="margin-right: 12.7px;margin-top: 12.7px;background: url(static/images/buy/家电AD2.jpg);"></div>
<div style="margin-right: 12.7px;margin-top: 12.7px;"></div>
<div style="margin-right: 12.7px;margin-top: 12.7px;"></div>
<div style="margin-right: 12.7px;margin-top: 12.7px;"></div>
<div style="margin-top: 12.7px;">
<div></div>
<div></div>
</div>
</div>
<!-- 一张宽图片 -->
<div style="background: url(static/images/longAD3.jpg);">
</div>
<div>智能</div>
<div>
<div style="margin-right: 12.7px;background: url(static/images/buy/智能AD1.jpg);"></div>
<div style="margin-right: 12.7px;"></div>
<div style="margin-right: 12.7px;"></div>
<div style="margin-right: 12.7px;"></div>
<div></div>
<div style="margin-right: 12.7px;margin-top: 12.7px;background: url(static/images/buy/智能AD2.jpg);"></div>
<div style="margin-right: 12.7px;margin-top: 12.7px;"></div>
<div style="margin-right: 12.7px;margin-top: 12.7px;"></div>
<div style="margin-right: 12.7px;margin-top: 12.7px;"></div>
<div style="margin-top: 12.7px;">
<div></div>
<div></div>
</div>
</div>
<!-- 一张宽图片 -->
<div style="background: url(static/images/longAD4.jpg);">
</div>
</div>
</div>
<!-- 底部代码 -->
<div>
<div>
<!-- footer部分分为两个大的div -->
<!-- 第一个叫footer_top_li;第二个叫footer_buttom_li -->
<div>
<div>
<a href=""><i class="fa fa-wrench"></i>预约维修服务</a><span></span> <!-- 做竖线 -->
<a href=""><i class="fa fa-clock-o"></i>7天无理由退货</a><span></span>
<a href=""><i class="fa fa-anchor"></i>15天免费换货</a><span></span>
<a href=""><i class="fa fa-envelope"></i>满150元包邮</a><span></span>
<a href=""><i class="fa fa-car"></i>520余家售后网点</a>
</div>
<span></span> <!-- 做横线 -->
<!-- 底部第二部分 -->
<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>
<p>400-100-5678</p>
<p>周一至周日 8:00-18:00<br>(仅收市话费)</p>
<button><span class="fa fa-commenting "></span> 联系客服</button>
</div>
</div>
<div></div>
</div>
</div>
<!-- footer_buttom_li部分(第二大部分) -->
<div>
<div>
<img src="static/images/footlogo.png" alt="" >
</div>
<div>
<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="">账号协议</a><span></span>
<a href="">问题反馈</a><span></span>
<a href="">廉政举报</a><span></span>
<a href="">诚信合规</a><span></span>
<a href="">Select Region</a><br>
<span class="fa fa-copyright"></span><a href="">mi.com</a>
<span>京ICP证110507号 </span>
<a href="">京ICP备10046444号</a>
<a href="">京工网安备11010802020134号</a>
<a href="">京网文[2017]1530-131号</a><br>
<a href="">(京)网械平台备字(2018)第00005号</a>
<a href="">互联网药品信息服务资格证(京)-非经营性-2014-0090</a>
<a href="">营业执照</a>
<a href="">医疗器械公告</a><br>
<a href="" style="margin-left:63px;">增值电信业务许可证</a>
<span>网络食品经营备案(京) [2018]WLSPJYBAHF-12</span>
<a href="">食品经营许可证</a><br>
<span style="margin-left:63px;">违法和不良信息举报电话:185-0130-1238</span>
<a href="">知识产权侵权投诉</a>
<span>本网站所列数据,除特殊说明,所有数据均出自我司实验室测试</span>
</div>
<div>
<a href=""><img src="static/images/footericon1.png" width="85px" alt=""></a>
<a href=""><img src="static/images/footericon2.png"></a>
<a href=""><img src="static/images/footericon3.png"></a>
<a href=""><img src="static/images/footericon4.png"></a>
<a href=""><img src="static/images/footericon5.png"></a>
</div>
<div>
<p>探索黑科技,小米为发烧而生!</p>
</div>
</div>
</div>
</div>
</body>
</html>
<!-- 以下是CSS样式文件: -->
/*网页通用的样式*/
*{margin: 0px;padding: 0px;} /*去除浏览器自带内外边距*/
li{list-style: none;} /*去除所有li标签的列表样式*/
/*去除a链接中的下划线及字体颜色样式,将鼠标指针设置为手型*/
a{text-decoration: none;color: #000;cursor: pointer;}
.clear{clear: both;} /*所有清除浮动类*/
/*头部样式*/
.header{width: 100%;height:40px ;background:#333; }
.menu{background:#ccc;width: 1226px;height: 40px;margin: 0px auto;}
/*主体部分样式*/
.content{width: 1226px;margin: 0px auto;}
.contentMenu{background: #ccc;width: 1226px;height: 90px;margin: 10px auto;}
.contentPic{margin: 10px auto;}
.contentPic_l{float: left; background: #ccc;width: 246px;height: 480px;}
.contentPic_r{float: left; background: blue;width: 980px;height: 480px;}
.contentPic_ul{/*background: #ccc;width: 1226px;height: 180px;*/margin: 10px auto;}
.contentPic_ul_1{float: left;background:#5f5750 ;width: 235px;height: 170px;margin-right: 10px; }
.contentPic_ul_0{float: left;width:317px ;height: 170px; }
/*小米闪购*/
.contentShop{width: 1226px;height: 340px;margin: 10px auto;}
.contentShop_1{float: left; width:235px;height:340px ;background: #ccc;}
/*一张宽图片*/
.contentImg{width: 1226px;height: 100px;margin: 10px auto;}
/*手机*/
.contentUL{background: #ccc;width: 1226px;height: 80px;margin: 10px auto;}
.contentPhone{width: 1226px;height:614px;margin: 10px auto;}
.contentPhone_l{float: left; width:234px;height:614px;background:url(../images/buy/手机AD.jpg);
margin-right: 12px;}
.contentPhone_r{float: left;width:980px;height:614px;}
.contentPhone_r div{float: left;width:235px;height:300px;background: #ccc;}
/*家电、智能*/
.contentPhone_0,.contentPhone_1{width:235px ;height: 300px;float: left;background: #ccc;}
.contentPhone_2{float: left;}
.contentPhone_1_t,.contentPhone_1_d{width:235px ;height: 145px;background: #ccc;}
.contentPhone_1_d{margin-top: 10px;}
/*底部样式*/
/*底部第一行*/
.footer{/*background: #ccc;*/width: 1226px;/*height: 300px;*/margin: 10px auto;}
.footer_top_li_1{width: 1226px;height: 80px;/*background: pink;*/ line-height: 80px;text-align: center;}
.footer_top_li_1 a{color:#616161;padding: 0 50px; font-size: 16px;/*background: pink;*/}
.footer_top_li_1 a i{margin-right: 5px;}
.footer_top_li_1 span{border-left: 1px solid #e0e0e0;/*font-size: 20px;margin: 0 50px;color: red;*/ }
.footer_top_li_1 a:hover{color:#ff6700; }
.line{border-bottom: 2px solid #e0e0e0;width: 1226px;display: block;margin-bottom: 5px;}
/*底部第二部分*/
.foot_top_li_2_a{width: 1226px;height: 160px;/*background: green;*/}
.foot_top_li_2_a dl{float: left;display: block;width: 135px;margin: 40px 10px;}
.foot_top_li_2_a dl dt{color:#616161;font-size: 14px;line-height: 14px;margin-bottom: 20px;}
.foot_top_li_2_a dl dd{color:#616161;font-size: 12px;/*line-height: 12px;*/margin: 16px 0px;}
.foot_top_li_2_a dl dd a:hover{color:#ff6700;}
.foot_top_li_2_a .connect{margin-top: 40px;display: inline-block;padding: 0 30px;border-left: 1px solid #e0e0e0;}
.foot_top_li_2_a .connect .telephone{font-size: 22px;line-height: 22px;color:#ff6700;margin: 10px auto;text-align: center;}
.foot_top_li_2_a .connect .time{font-size: 12px;text-align: center;}
.foot_top_li_2_a .connect button{width: 118px;height: 28px;font-size: 12px;line-height:28px;border: 1px solid #ff6700;color:#ff6700;background: #fff;margin-top: 20px; }
.foot_top_li_2_a .connect button:hover{background:#ff6700;color: #fff; }
/*底部第三部分*/
.footer_buttom_li_1 .picture1{float: left;margin-right: 6px;}
.footer_buttom_li_2 a{font-size: 12px;line-height: 12px;}
.footer_buttom_li_2 a:hover{color:#ff6700;}
.footer_buttom_li_2 span{font-size: 12px;line-height: 12px;margin: 0px 5px;
border-right: 1px solid #ccc;}
.footer_buttom_li_3{margin: 30px 0px;margin-left: 63px;}
.footer_buttom_li_4 p{font-family: 楷体;font-size: 18px;color:#616161;text-align: center; }
Correcting teacher:天蓬老师Correction time:2019-04-14 21:55:23
Teacher's summary:html中用到了大量的style内联样式, 真的有必要这样吗?