首页布局4进度

原创 2018-11-12 22:47:11 254
摘要:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>小米商城</title> <link rel="shortcut icon" type="image
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>小米商城</title>

<link rel="shortcut icon" type="image/x-icon" href="static/img/footlogo.png"><!-- 页面上的图标 -->
<link rel="stylesheet" href="static/font-awesome/cssfont-awesome.min.css">
<link rel="stylesheet" href="static/css/style.css">

</head>
<body>
<!-- 顶部 -->
<div>
<div></div>
</div>
<!-- 主体部分 -->
<div>

<div>
<div></div>
<div>
<div></div>
<div></div>

</div>
<div></div>

<div>
<div></div>
<div style="background: url(static/img/midAD1.jpg); margin-right: 13px;"></div>
<div  style="background: url(static/img/midAD2.jpg); margin-right: 13px;"></div>
<div  style="background: url(static/img/midAD3.jpg);"></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 blue"></div>
<div style="margin-right: 12.7px; border-top: 1px solid red"></div>
<div style="margin-right: 12.7px; border-top: 1px solid blue"></div>
<div style="border-top: 1px solid"></div>

</div>
<div></div>

<div style="background: url(static/img/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 style="background: url(static/img/longAD2.jpg);"></div>
<div>智能</div>
<div>
<div style="margin-right: 12.7px; background: url(static/img/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;background: url(static/img/buy/智能AD1.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 class="contentPhone_2 " style="margin-top: 12.7px;">

<div></div>
<div></div>
</div>
</div>

<div style="background: url(static/img/longAD3.jpg);"></div>
<div>家电</div>
<div>
<div>
<div style="margin-right: 12.7px; background: url(static/img/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;background: url(static/img/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 class="contentPhone_2 " style="margin-top: 12.7px;">

<div></div>
<div></div>
</div>

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

</div>
<!-- 底部 -->
<div>
<div>
网页底部
</div>

</div>

</body>
</html>
*{margin: 0px; padding: 0px;}
/*头部样式*/
li{list-style: none;}
a{text-decoration: none;color: #ccc; 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: 10px auto;
}	
.contentMenu{
	background: #ccc;
	margin: 10px auto;
	height: 90px;
}
.contentPic{
	background: #ccc;
	margin: 10px auto;
	height: 480px;

}
.contentPic_l{
	width: 246px;
	height: 480px;
	background: #ccc;
	float: left;
}
.contentPic_r{
	width: 980px;
	height: 480px;
	background: blue;
	float: right;
}
.contentPic_ul{
	
	margin: 10px auto;
	height: 180px;

}
.contentPic_ul_1{
	width: 235px;
	background: #5f5759;
	height: 180px;
	margin-right: 10px;
	float: left;
}
.contentPic_ul_0{
	width: 317px;
	background: #5f5759;
	height: 170px;
	float: left;


}
/*小米闪购*/
.contentShop{
	
	margin: 10px auto;
	height: 340px;

}
.contentShop_1{
	width: 235px;
	background: #ccc;
	float: left;
	height: 340px;
}

.contentImg{
	background: #ccc;
	margin: 10px auto;
	height: 100px;

}
.contentUL{
	background: #ccc;
	margin: 10px auto;
	height: 80px;

}
.contentPhone{
	margin: 10px auto;
	height: 614px;


}
.contentPhone_l{
	width: 234px;
	height:614px;
	background: url(../img/buy/手机AD.jpg);
	float: left;
	margin-right: 12px;
}
.contentPhone_r{
	width: 980px;
	height:614px;
	
	float: left;

}
.contentPhone_r div{
	height: 300px; width: 235px; 
	background: #ccc;
	float: left;
}
.contentPhone_1,.contentPhone_0{
	
    height: 300px;
    width: 235px; 
	background: #ccc;
	float: left;
}

.contentPhone_1_t,.contentPhone_1_d{
	height: 145px;
	width: 235px;
	background: #ccc;
	
}
.contentPhone_1_d{
	margin-top: 10px;
}
.contentPhone_2{
	float: left;

}

/* 网页底部*/
.footer{
	width: 1226px;
	height: 200px;
	background: #ccc;
	margin: 10px auto;
}


发布手记

热门词条