Project4_The_Camera

web习作 四

<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8" http-equiv="Content-Type" content="text/html";/>
    <title>儿童摄影</title>
   <link rel="stylesheet" href="css/index.css" type="text/css"/>
</head>
<body>
<!--bg begin-->
<div id="bg">
  <div class="nav">
    <span>网站首页</span>
    <span class="margin_more">关于我们</span>
    <span class="margin_more"></span>
    <span >摄影作品</span>
    <span>联系我们</span>
  </div>
</div>
<!--bg emd-->
<!--news begin-->
<div id="news">
  <div class="news_con">
    <img src="img/news1.jpg"/>
    <h2 class="one">优惠活动</h2>
    <p class="two">新年订单有特大惊喜</p>
    <p class="shadow"></p>
  </div>
  <div class="news_con">
    <img src="img/news2.jpg"/>
    <<h2 class="one">宝贝写真应注意什么</h2>
    <p class="two">孩子拍摄的时候如果是陌生人接触的话会比较容易哭闹,如果换做是亲近的或者比较平时比较熟悉玩得来的就会好很多。</p>
    <p class="shadow"></p>
  </div>
  <div class="news_con">
    <img src="img/news3.jpg"/>
    <h2 class="noe">宝贝庆生会</h2>
    <p class="two">为新生宝宝准备的生日party,参与者可获得精美生日礼物一份。</p>
    <p class="shadow"></p>
  </div>
</div>
<!--news end-->
<!--exhibition begin-->
<div id="exhibition">
  <div class="pic">
    <img src="img/img1.jpg"/>
    <img src="img/img2.jpg"/>
    <img src="img/img3.jpg"/>
    <img src="img/img4.jpg"/>
  </div>
</div>
<!--exhibition end-->
<!--footer begin-->
<div id="footer">青春树版权所有 2000-2016 京 ICP 备 08001421 号&nbsp;&nbsp;京公网安备 1101108007702</div>
<!--footer end-->
<!--tree begin-->
<div class="tree">
<img src="img/erweima.png"/>
</div>
<!--tree end-->
</body>
</html>

css部分

/*重置浏览器的默认样式*/
*{margin:0;padding: 0;
  border: 0;background: none;}
/*全局控制*/
body{font-family: "微软雅黑";background: #fdfdfd;}
#bg{
  width: 980px;
  height: 617px;
  background:url("../img/bg.jpg") no-repeat;
  margin: 0 auto;
  padding-top: 10px;
}
.nav{
  width: 848px;
  height: 46px;
  background: url("../img/nav.jpg") no-repeat;
  margin: 0 auto;
  padding: 40px 0 0 123px;
}
.nav sapn{
  color: #685649;
  font-size: 16px;
  padding: 0 30px;
}
.nav .margin_more{ margin-right: 240px;}
#news{
  width: 980px;
  height: 300px;
  background: url("../img/dongtai.jpg") 60px top no-repeat;
  margin: 18px auto;
  padding-top: 120px;
}
.news_con{
  width: 294px;
  height: 284px;
  float: left;
  padding-left: 29px;
}
.news_con .one{
  width: 284px;
  height: 50px;
  padding-left: 10px;
  line-height: 50px;
  font-weight: bold;
  font-size: 16px;
  border-bottom: 1px solid #dddddd;
}
.new_con .two{
   width: 284px;
   height: 70px;
  line-height: 20px;
   padding: 10px 0 0 10px;
   font-size: 12px;
   color: #bbbbbb;
 }
 .news_con .shadow{
   width: 294px;
   height: 5px;
   background: url("../img/yinying.jpg") no-repeat;
 }
#exhibition{
  width: 980px;
  height: 292px;
  background: url("../img/xinshang.jpg") no-repeat;
  margin: 0 auto;
  padding-top: 170px;
}
#exhibition .pic{
  width: 916px;
  height: 260px;
  margin: 0 auto;
}
#exhibition .pic img{margin-left: 56px;}
#footer{
  width: 100%;
  height: 80px;
  background: url("../img/footer_bg.jpg") repeat-x;
  color: #ffffff;
  text-align: center;
  line-height: 90px;
}
.tree{
  position: fixed;
  right: 5%;
  bottom: 5%;
}

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

FawkesDoris

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值