<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>网页还原</title>
<style>
*{
margin: 0;
padding: 0;
}
.header{
width:100%;
height:491px;
}
.header_top{
width:100%;
height:142px;
background-color: black;
}
.header_top .inner{
width:994px;
height:142px;
margin: 0 auto;
}
.header_top .inner .logo{
width:451px;
height:142px;
float: left;
}
.header_top .inner .logo h1{
width:451px;
height:142px;
background-image: url(images/index5_02.png);
}
.header_top .inner .logo h1 a{
width:451px;
height:142px;
display: block;
text-indent: -1000px;
}
.header_top .inner .nav{
width:480px;
height:142px;
float: right;
}
.header_top .inner .nav ul li{
list-style: none; /*列表符号清楚*/
float: left;
font-size: 12px;
/*行高等于容器高度时,文本垂直居中*/
line-height: 142px;
/*间距*/
margin-right: 29px;
}
.header_top .inner .nav ul li a{
text-decoration: none;
color: #7f7f7f;
}
.header_top .inner .nav ul li .active{
color:#cb2700 ;
}
.header_bot{
width:100%;
height:349px;
background-image: url(images/index_02.png);
}
.header_bot .inner{
width: 965px;
height: 283px;
margin: 0 auto;
padding-top: 66px;
padding-left: 29px;
position: relative; /*图片定位*/
}
.header_bot .inner h3{
color: white;
font-size: 24px;
margin-bottom: 17px;
}
.header_bot .inner p{
width: 588px;
color: #7f7f7f;
line-height: 25px;
margin-bottom: 19px;
}
.header_bot .inner p a{
color: #cb2800;
}
.header_bot .inner .more{
display: block;
width: 106px;
height: 41px;
color: white;
background-image: url(images/more_1_03.png);
text-decoration: none; /*无文本修饰*/
line-height: 41px;
text-align: center;
font-size: 20p;
border-radius: 4px; /*圆角*/
}
.header_bot .inner img{
/*图片位置特殊时,用绝对定位*/
position: absolute;
left: 654px;
top: -30px;
}
.main{
width:100%;
height:896px;
background-image: url(images/index_04_03.png);
}
.main .inner{
width: 940px;
height: 856px;
margin: 0 auto;
padding-top: 40px;
padding-left: 29px;
padding-right: 25px;
}
.main .inner .top{
width: 940px;
height: 180px;
}
.main .inner .top ul li{
float:left;
list-style: none;
margin-right: 20px;
}
.main .inner .top ul .img3{
margin-right: 0;
}
.main .inner .top ul li img{
/*清楚图片自带的格式*/
display: block;
}
.main .inner .left{
width: 620px;
height: 636px;
float: left;
padding-top:40px ;
}
.main .inner .left h3{
font-size: 26px;
color: white;
margin-bottom: 20px;
}
.main .inner .left img{
display: block;
float:left;
}
.main .inner .left .one,.main .inner .left .two{
width: 537px;
float: right; /*浮动不占位置*/
color: #7F7F7F;
line-height: 24px;
}
.main .inner .left .one{
margin-bottom: 10px;
}
.main .inner .left .two{
margin-bottom: 30px;
}
.main .inner .left .one span{
color: white;
}
.main .inner .left .more{
display: block;
width: 106px;
height: 41px;
color: white;
background-image: url(images/more_1_03.png);
text-decoration: none; /*无文本修饰*/
line-height: 41px;
text-align: center;
font-size: 20p;
border-radius: 4px; /*圆角*/
/*清除浮动*/
clear: both;
margin-left: 82px;
margin-bottom: 30px;
}
.main .inner .left .box{
border-bottom: 1px dotted #3C3D3D;
margin-bottom: 30px;
}
.main .inner .left .img1{
display: block;
float:left;
}
.main .inner .left .img2{
padding-left: 21px;
margin-bottom: 30px;
}
.main .inner .left .three{
width: 299px;
float: right; /*浮动不占位置*/
color: #7F7F7F;
line-height: 24px;
}
.main .inner .left .three span{
color: white;
}
.main .inner .left .more1{
display: block;
width: 106px;
height: 41px;
color: white;
background-image: url(images/more_1_03.png);
text-decoration: none; /*无文本修饰*/
line-height: 41px;
text-align: center;
font-size: 20p;
border-radius: 4px; /*圆角*/
/*清除浮动*/
clear: both;
margin-left: 82px;
}
.main .inner .right{
width: 300px;
height: 636px;
float: right;
padding-top: 40px;
}
.main .inner .right h3{
width: 300px;
height: 48px;
background-color: black;
color: white;
line-height: 48px;
text-indent: 22px; /*文本缩进*/
font-size: 24px;
margin-bottom: 20px;
}
.main .inner .right ul li{
width:280px;
height:34px;
margin-left:20px ;
color: white;
list-style: none;
line-height: 34px;
border-bottom: 1px dotted #3c3d3d;
text-indent: 12px;
font-style: italic;
/*取消背景图的平铺*/
background-repeat: no-repeat;
background-image: url(images/sanjaio_07.png);
background-position: left center;
}
.main .inner .right ul .last{
border-bottom: none;
margin-bottom: 30px; /*调整距离下个bottom的距离*/
}
.main .inner .right .bottom{
width: 300px;
height: 232px;
background-color: black;
}
.main .inner .right .bottom h5{
text-indent: 20px;
padding-top: 20px;
color: white;
font-size: 16px;
}
.main .inner .right .bottom img{
padding-top: 14px;
padding-left: 20px;
display: block;
}
.main .inner .right .bottom .bont{
padding-top: 22px;
color: white;
font-size: 15px;
text-indent: 20px;
font-weight: bold;
}
.main .inner .right .bottom .text{
padding-top: 10px;
color: #7f7f7f;
font-size: 15px;
text-indent: 20px;
line-height: 24px;
}
.footer{
width:100%;
height:124px;
background:black;
}
.footer .inner{
width:100%;
height: 124px;
margin: 0 auto;
}
.footer .inner .text{
width: 750px;
height: 124px;
float: left;
padding-top: 38px;
}
.footer .inner .text .text1,.text2{
font-size: 13px;
color: #7f7f7f;
text-align: center;
}
.footer .inner .text .text2{
margin-bottom: 12px;
}
.footer .inner .text .text3{
color: #cb2800;
}
.footer .inner ul li{
list-style: none;
float: left;
margin-right: 10px;
margin-top: 49px;
}
</style>
</head>
<body>
<div class="header">
<div class="header_top">
<div class="inner">
<div class=" logo">
<!--logo用H1标签-->
<h1><a href="index1.html">EaglesTroop</a></h1>
</div>
<div class="nav">
<!--相同元素的并列排序,都是使用无序列表-->
<ul>
<li>
<a href="#" class="active">About</a>
</li>
<li>
<a href="#">Foudation</a>
</li>
<li>
<a href="#">Program</a>
</li>
<li>
<a href="#">Leaders</a>
</li>
<li>
<a href="#">Gallery</a>
</li>
<li>
<a href="#">Contacts</a>
</li>
</ul>
</div>
</div>
</div>
<div class="header_bot">
<div class="inner">
<h3> Welcome to Eagles Boy Scount Troops!</h3>
<p>
There is no denying <a href="#">that the Internet</a> has brought us great convenience.
With <a href="#">the internet,</a> home can be a library, a school, an office, a place
of a entertainment. Information on trains to discounts on goods, all at
the of a keyboard.
</p>
<!--
按钮一般用a标签
特殊图片一般用定位去做
-->
<a href="#" class="more">more</a>
<img src="images/1_03.png" alt="" />
</div>
</div>
</div>
<div class="main">
<div class="inner">
<div class="top">
<ul>
<li>
<img src="images/top_04.png" alt="" />
</li>
<li>
<img src="images/top_2_03.png" alt="" />
</li>
<li class="img3">
<img src="images/top_3_03.png" alt=""/>
</li>
</ul>
</div>
<div class="left">
<h3>Next Event</h3>
<img class="img" src="images/rili_06.png" />
<p class="one">
<span>Lorem ipsum dolor sit amet,consetetur sadipscing elitr</span>
sed diam nonumy eirmod tempor Lorem ipsum dolor sit amet,consetetur sadipscing elitr
Lorem ipsum dolor sit amet,consetetur sadipscing elitr Lorem ipsum dolor sit amet,consetetur sadipscing elitr
</p>
<p class="two">
consetetur sadipscing elitrLorem ipsum dolor sit amet,consetetur sadipscing elitr Lorem ipsum dolor sit amet,
</p>
<a href="#" class="more">more</a>
<div class="box">
</div>
<img class="img1" src="images/riqi_12.png" />
<img class="img2" src="images/boy_07.png" />
<p class="three">
<span>Lorem ipsum dolor sit amet,consetetur sadipscing elitr</span>
sed diam nonumy eirmod tempor Lorem ipsum dolor sit amet,consetetur sadipscing elitr
Lorem ipsum dolor sit amet,consetetur sadipscing elitr Lorem ipsum dolor sit amet,consetetur sadipscing elitr
</p>
<a href="#" class="more1">more</a>
</div>
<!-- 当class里面只有一个标签时,css中不用写.(点)
利用背景图来特殊列表
-->
<div class="right">
<h3>Our Adventures</h3>
<ul>
<li>Lorem ipsum dolor sit amet</li>
<li>Consetetur sadipscing eitr</li>
<li>Lorem ipsum dolor sit amet</li>
<li>Consetetur sadipscing eitr </li>
<li>Lorem ipsum dolor sit amet</li>
<li>Consetetur sadipscing eitr </li>
<li class="last">Lorem ipsum dolor sit amet</li>
</ul>
<div class="bottom">
<h5>Troop#345 Meetings</h5>
<img src="images/jing_07.png" />
<p class="bont">Monday 9:00-12:00</p>
<p class="text">Lorem ipsum dolor sit amet </p>
</div>
</div>
</div>
</div>
<div class="footer">
<div class="inner">
<div class="text">
<p class="text1">Eagles Troop @2012</p>
<p class="text2"><a href="#" class="text3">Website Template</a> by TemplateMonster.com</p>
</div>
<ul>
<li> <img src="images/foot_03.png" class="one"/></li>
<li> <img src="images/foot2_03.png" class="two"/></li>
<li><img src="images/foot3_03.png" class="three"/> </li>
<li><img src="images/foot4_03.png" class="four"/></li>
</ul>
</div>
</div>
</div>
</body>
</html>