代码如下:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>图片列表</title>
<style type="text/css">
*{
padding: 0;
margin: 0;
}
.nav{
width: 958px;
height: 271px;
border: 1px solid #d5d5d5d5;
margin: 50px auto;
}
.first{
height: 35px;
margin: 15px 40px 0px;
color: #000;
font:18px "微软雅黑" ;
font-weight: bold;
}
hr{
margin: 0px 20px;
color: #d5d5d5d5;
}
ul{
width: 918px;
list-style-type:none;
padding:20px 20px 0px;
text-align:center;
}
li{
width: 160px;
height: 68px;
float: left;
margin: 0px 29px 25px 0px;
}
#specil{
margin: 0px 0px 25px 0px;
}
</style>
</head>
<body>
<div class="nav">
<div class="first">图片展示</div>
<hr>
<ul>
<li><img src="img/goods.jpg" alt="图片"></li>
<li><img src="img/goods.jpg" alt="图片"></li>
<li><img src="img/goods.jpg" alt="图片"></li>
<li><img src="img/goods.jpg" alt="图片"></li>
<li id="specil"><img src="img/goods.jpg" alt="图片"></li>
<li><img src="img/goods.jpg" alt="图片"></li>
<li><img src="img/goods.jpg" alt="图片"></li>
<li><img src="img/goods.jpg" alt="图片"></li>
<li><img src="img/goods.jpg" alt="图片"></li>
<li id="specil"><img src="img/goods.jpg" alt="图片"></li>
</ul>
</div>
</body>
</html>
效果如下:
图片列表.png
网友评论