页面布局作业

2018-11-21  本文已影响0人  中二死军宅

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>本来生活网</title>
<style type="text/css">
*{
padding:0;
margin: 0;
border:0;
}
.to{
width: 1510px;
height: 100px;
background-color: #cc0000;
margin: 0 auto;
}
.box{
width: 1510px;
height: 20px;
background-color: #f5f5f5;
margin: 0 auto;
}
.box1{
width: 1510px;
height: 50px;
background-color: cornflowerblue;
margin: 0 auto;
}
.box2{
width: 1510px;
height: 100px;
background-color: #ffff00;
margin: 0 auto;
}
.box3{
width: 1510px;
height: 350px;
background-color: #000000;
margin: 0 auto;
}
.goods{
width: 1200px;
height: 200px;
background-color: #6495ed;
margin: 0 auto;
margin-bottom: 20px;
}
.goods1{
width: 1200px;
height: 300px;
background-color: #666666;
margin: 0 auto;
margin-bottom: 20px;
}
.goods2{
width: 1200px;
height: 350px;
background-color: #ffff00;
margin: 0 auto;
margin-bottom: 20px;
}
.goods3{
width: 1200px;
height: 300px;
background-color: #cc0000;
margin: 0 auto;
margin-bottom: 20px;
}
.goods4{
width: 1200px;
height: 350px;
background-color: #ffff00;
margin: 0 auto;
margin-bottom: 20px;
}
.goods5{
width: 1200px;
height: 300px;
background-color: #666666;
margin: 0 auto;
margin-bottom: 20px;
}
.goods6{
width: 1200px;
height: 300px;
background-color: rebeccapurple;
margin: 0 auto;
margin-bottom: 20px;
}
</style>

</head>
<body>
<div class="to"></div>
<div class="box"></div>
<div class="box1"> </div>
<div class="box2"></div>
<div class="box3"></div>
<div class="goods"></div>
<div class="goods1"></div>
<div class="goods2"></div>
<div class="goods3"></div>
<div class="goods4"></div>
<div class="goods5"></div>
<div class="goods6"></div>

</body>
</html>

上一篇下一篇

猜你喜欢

热点阅读