Title
*{
margin: 0;
padding: 0;
}
ul{
list-style: none;
/* 取消列表的默认样式*/
}
.top{
background-color: black;
height: 60px;
}
.banner{
width: 960px;
height: 400px;
background-color: skyblue;
margin: 20px auto;
border-radius: 15px;
}
.main{
width: 960px;
height: 200px;
margin: 0 auto;
}
.main ul li{
width: 240px;
height: 200px;
background-color: pink;
float: left;
/* */
}
.main ul li:nth-child(even){
background-color: purple;
/*even 是偶数 odd是奇数*/
}
.footer
{
height: 100px;
background-color: #00a0b3;
}
top
- 1
- 2
- 3
- 4