小米首页小功能案例
body
{
background: #fff;
}
*{
margin: 0px;
padding: 0px;
list-style: none;
}
ul{
width: 606px;
height: 504px;
border: 1px solid pink;
margin: 50px auto;
}
ul li{
width: 198px;
height: 248px;
background: #FAFAFA;
margin: 1px;
float: left;
cursor: pointer;
text-align: center;
border: 1px solid #bebebe;
position: relative;
z-index: 999;
}
.UL li .ImgDiv{
width: 100%;
height: 160px;
text-align: center;
margin-bottom: 10px;
}
.UL li p:first-of-type{
font-size: 13px;
margin-bottom: 2px;
}
.UL li p:nth-child(3){
font-size: 12px;
color: #bebebe;