HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Polo360首页</title>
<link rel="stylesheet" href="ie6_png/DD_belatedPNG_0.0.8a-min.js">
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<!-- header的开始 -->
<div class="header w">
<ul class="nva">
<li>
<a href="#">HOME</a>
<p>Back to home</p>
</li>
<li>
<a href="#">PRODUCTS</a>
<p>What we have for you</p>
<li>
<a href="#">SERVICES</a>
<p>Things we do</p>
<li>
<a href="#">BLOG</a>
<p>Follow our updates</p>
<li>
<a href="#">CONTACT</a>
<p>Ways to reach us</p>
</ul>
<a href="#"><img src="img/logo.png" alt="lalala"></a>
</div>
<!-- header的结束 -->
<!-- bannar的开始 -->
<div class="bannar w">
<a href="#"><img src="img/bannar/bannar1.png"></a>
<div class="pointerDiv">
<a href="#"></a>
<a href="#" class="an2"></a>
<a href="#"></a>
<a href="#"></a>
<a href="#"></a>
</div>
</div>
<!-- banner的结束 -->
<div class="contact w">
<h2 class="h1">Lorem ipsum dolor sit amet, consectetur adipisicing elit</h2>
<div class="pl">
<h2 class="h2">Perfect Logic</h2>
<p class="p1">All you want your website to do.</p>
<div class="bg1">
<img class="tp" src="img/小男孩.png" alt="小男孩">
</div>
<p class="p2">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.</p>
<a href="#" class="a1">Learn More</a>
</div>
<div class="cs">
<h2 class="h2">Complete Solution</h2>
<p class="p1">A tool anything and everything you can think</p>
<div class="bg1">
<img class="tp" src="img/小女孩.png" alt="小女孩">
</div>
<p class="p2">Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciun tdolore magnam aliquam quaerat voluptatem.</p>
<a href="#" class="a1">Learn More</a>
</div>
<div class="uc">
<h2 class="h2">Uber Culture</h2>
<p class="p1">Fresh. Modern and ready for future</p>
<div class="bg1">
<img class="tp" src="img/字母老壳.png" alt="字母老壳">
</div>
<p class="p2">Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.</p>
<a href="#" class="a1">Learn More</a>
</div>
</div>
</body>
</html>
CSS
*{
margin: 0;
padding: 0;
}
body{
height: 3000px;
background-image: url(../img/bg.png);
background-repeat: repeat-x;
}
.w{
width: 940px;
margin: 20px auto;
}
.header{
height: 137px;
/*background-color: red;*/
}
.header a img{
float: left;
padding-left: 15px;
padding-top: 12px;
}
.nva{
float: right;
}
.nva li{
list-style: none;
float: left;
margin: 30px 8px 10px 12px;
padding-bottom: 15px;
padding-left: 10px;
border-left: 1px #d6d6d6 dotted;
}
.nva li a{
text-decoration: none;
font-family: Georgia;
font-size: 14px;
color: #666;
}
.nva li a:hover{
color: #b7b7b7;
}
.nva li p{
font-family: Tahoma;
font-size: 11px;
color: #b7b7b7;
}
.bannar{
height: 356px;
background: url(../img/bannar/yinyin.png) no-repeat bottom center;
position: relative;
}
.pointerDiv{
position: absolute;
top: 314px;
left: 17px;
}
.pointerDiv a{
float: left;
height: 17px;
width: 17px;
background: url(../img/bannar/baiseanniu.png) no-repeat;
margin: 4px;
}
.pointerDiv .an2{
background: url(../img/bannar/landeanniu.png) no-repeat;
}
.pointerDiv a:hover{
background: url(../img/bannar/landeanniu.png) no-repeat;
}
.contact .h1{
color: #000;
font: 24px Georgia;
text-align: center;
display: block;
background: url(../img/长阴影.png) no-repeat bottom center;
padding-bottom: 30px;
}
.contact .pl , .contact .cs , .contact .uc{
width: 300px;
height: 435px;
float: left;
margin: 2px 20px 2px 0px;
/*background-color: red;*/
}
.contact .uc{
margin-right: 0px;
}
.contact .h2{
color: #11719e;
font: 21px Georgia;
padding-bottom: 12px;
text-indent: 0.5em;
}
.contact .p1{
color: #8c8c8c;
font: 12px Helvetica;
text-indent: 1em;
margin: 2px 0px 8px 0px;
}
.contact .bg1{
width: 299px;
height: 202px;
/*padding-top:0px;*/
background: url(../img/阴影背景.png) no-repeat center;
text-align: center;
margin-right: 20px;
}
.contact .tp{
margin-top: 12px;
}
.contact .p2{
padding-top: 8px;
color: #3e3e3e;
font: 13px Helvetica;
word-spacing: 1px;
}
.contact .a1{
text-decoration: none;
color: #016999;
font: 12px Helvetica;
line-height: 32px;
text-indent: 1em;
display: block;
width: 163px;
height: 32px;
background: url(../img/按钮.png) no-repeat center;
margin-top: 20px;
}
.contact .a1:hover{
text-indent: 1.2em;
}
效果图
image.png
网友评论