<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<link rel="stylesheet" type="text/css" href="../static/css/img.css">
</head>
<body>
<div class="recommand">
<div class="img">
<a href="www.gzcc.cn"><img src="http://p4.so.qhimgs1.com/t0181469b166e712084.jpg"> </a>
<div class="desc"><a href="www.gzcc.cn">看这里</a> </div>
<div class="img">
<a href="www.gzcc.cn"><img src="http://p2.so.qhimgs1.com/t016124241a929b8a82.jpg"> </a>
<div class="desc"><a href="www.gzcc.cn">看这里</a> </div>
<div class="img">
<a href="www.gzcc.cn"><img src="http://p3.so.qhimgs1.com/t0121f197d096b708e3.jpg"> </a>
<div class="desc"><a href="www.gzcc.cn">看这里</a> </div>
<div class="img">
<a href="www.gzcc.cn"><img src="http://p4.so.qhimgs1.com/t01c311fb97583e35d4.jpg"> </a>
<div class="desc"><a href="www.gzcc.cn">看这里</a> </div>
</div>
</div>
</div>
</div>
</div>
img{
width: 300px;
}
div.img{
border: 1px solid;
width: 280px;
float: left;
margin: auto;
}
div.img img{
width:100%;
height: auto;
}
div.desc{
text-align: center;
padding: 5px;
}
div img:hover{
border: 1px solid;
}
div clearfloat{
clear: both;
}
</body>
</html>