<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>导航条02</title>
<style type="text/css">
*{
margin: 0;
padding: 0;
}
li{
list-style: none;
text-align: center;
}
.gps{
width: 960px;
height: 40px;
background-color: #55a8ea;
margin: 50px auto;
position: relative;
}
a{
text-decoration: none;
width: 100px;
float:left;
font:14px "雅黑";
color: #fff;
line-height: 40px;
}
a:hover{
background-color: #00619f;
}
.new{
position: absolute;
left: 430px;
z-index: 1;
top:-5px;
}
</style>
</head>
<body>
<div class="gps">
<ul>
<li><a href="#">首页</a></li>
<li><a href="#">网站建设</a></li>
<li><a href="#">程序开发</a></li>
<li><a href="#">网络营销</a></li>
<li><a href="#" class="qiye">企业VI</a></li>
<li><a href="#">案例展示</a></li>
<li><a href="#">联系我们</a></li>
</ul>
<img src="new.png" class="new">
</div>
</body>
</html>
12983195-18472cf3f503b1a1.png
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>图片列表</title>
<style type="text/css">
*{
margin: 0;
padding: 0;
}
.box{
width: 960px;
height: 272px;
border: 1px slategray solid;
margin: 50px auto;
}
.display{
width: 100px;
height: 50px;
margin: 0 0 0 20px;
line-height: 50px;
border-bottom: 1px red solid;
text-align: center;
float: left;
}
.blank{
width: 816px;
height: 50px;
border-bottom: 1px silver solid;
float:left;
}
img{
display: block;
width: 160px;
height: 68px;
margin:20px 9px 5px 20px;
float: left;
transition: all 1s ease;
}
img:hover{
transform: translate(-10px, -10px);
}
</style>
</head>
<body>
<div class="box">
<div class="display">
<span>图片展示</span>
</div>
<div class="blank">
</div>
<img src="goods.jpg">
<img src="goods.jpg">
<img src="goods.jpg">
<img src="goods.jpg">
<img src="goods.jpg">
<img src="goods.jpg">
<img src="goods.jpg">
<img src="goods.jpg">
<img src="goods.jpg">
<img src="goods.jpg">
</div>
</body>
</html>
12983195-f54992a43eb2fa25.png