日期:2014-05-16 浏览次数:20816 次
.pic_upload
{
width:180px;
height:180px;
float:left;
margin:20px 0 0 20px;
border:2px solid #5FA9E1;
background-color:#F3F3F3;
position:relative;/*使图片相对这个div绝对定位*/
}
.pic_upload img {
margin: auto;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
}