初步学习html5+css+Js

index.html

<!DOCTYPE html>
<html>
 <head>
  <meta charset="utf-8" />
  <title>POLO360</title>
  <link rel="stylesheet" href="css/reset.css" />
  <link rel="stylesheet" href="css/page-index.css" />
 </head>
 <body>
  <div class="header w">
   
   <div class="nav">
    <ul>
    <li>
     <a href="#">HOME</a>
     <p>Back to home</p>
    </li>
    <li>
     <a href="#">PRODUCTS</a>
     <p>What we have for you</p>
    </li>
    <li>
     <a href="#">SERVICES</a>
     <p>Things we do</p>
    </li>
    <li>
     <a href="#">BLOG</a>
     <p>Follow our updates</p>
    </li>
    <li>
     <a href="#">CONTACT</a>
     <p>Ways to reach us</p>
    </li>
    </ul>
   </div>
   <div class="logo">
    <a href="#" title="一个非常非常好的网站">
     <img src="img/logo.png" alt="网站logo" />
    </a>
   </div>
  </div>
  <div class="banner w">
   <img src="img/banner1.png" alt="这是一个图片" />
   <div class = "pointerDiv">
    <a href="#"></a>
    <a class="pointering" href="#"></a>
    <a href="#"></a>
    <a href="#"></a>
    <a href="#"></a>
   </div>
  </div>
  
  <div class="content w clearfix">
   <h1>Lorem ipsum dolor sit amet, consectetur adipisicing elit</h1>
   <div class="pl">
    <h2>Perfect Logic</h2>
    <p1>All you want your website to do.</p1>
    <div class="imgDiv">
     <img src="img/backgroundpl.png" alt="小男孩" />
    </div>
    <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.
    </p2>
    <a class="lm" href="#">Learn More</a>
   </div>
   <div class="cs">
    <h2>Complete Solution</h2>
    <p1>A tool anything and everything you can think</p1>
    <div class="imgDiv">
     <img src="img/backgroundcs.png" alt="小女孩"> 
    </div>
    <p2>Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, <br />sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciun tdolore magnam aliquam quaerat voluptatem.
    </p2>
    <a class="lm" href="#">Learn More</a>
   </div>
   <div class="uc">
    <h2>Uber Culture</h2>
    <p1>Fresh. Modern and ready for future</p1>
    <div class="imgDiv">
     <img src="img/backgrounduc.png" alt="绿球">
    </div>
    <p2>Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, <br />consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.
    </p2>
    <a class="lm" href="#">Learn More</a>
   </div>
  </div>
  <div class="contact w clearfix">
   <div class="sc">
    <h2>Social Connection</h2>
    <p class="p1">At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium
    </p>
    <div class="icon">
     <a href="#"><img src="img/tubiao1.png"/></a>
     <a href="#"><img src="img/tubiao2.png"/></a>
     <a href="#"><img src="img/tubiao3.png"/></a>
     <a href="#"><img src="img/tubiao4.png"/></a>
     <a href="#"><img src="img/tubiao5.png"/></a>
    </div>
   </div>
   <div class = "co">
    <h2>Contact</h2>
    <from action = "#">
     <input class = "txt" type="text" placeholder="your name"/>
     <input class = "txt" type="text" placeholder="you mail address"/>
     <textarea class = "tarea" placeholder="messagef"/></textarea>
     <button class = "btn">Send it</button>
    </from>
   </div>
   <div class = "nu"></div>
  </div>
 </body>
</html>

index.css

body{
  background: url(../img/1.png) repeat-x;
  height:3000px;
 }
 .clearfix:before,
 .clearfix:after{
  content: "";
  display: table;
  clear: both;
 }
 .w{
  width: 940px;
  margin: 0 auto;
 }
.header{
 padding-top: 37px;
 padding-bottom:46px ;
}
.logo{
 margin-left: 15px;
}
.nav{
 float: right;
 margin-top:22px ;
}
.nav li{
 float: left;
 padding: 0 10px 8px;
 border-left: 1px #d6d6d6 dotted;
}
.nav a{
 color: #666;
 font: bold 14px Georgia;
 text-decoration: none;
}
.nav p{
 color: #b7b7b7;
 font: 11px Tahoma;
}
.banner{
 height: 356px;
 background: url(../img/yinying.png) no-repeat bottom center;
 position: relative;
}
.pointerDiv{
 position: absolute;
 top: 314px;
 left: 15px;
}
.pointerDiv a{
 float: left;
 width: 17px;
 height: 17px;
 background: url(../img/pointer.png) no-repeat;
 margin-left:4px ;
}
.pointerDiv .pointering,
.pointerDiv a:hover
{
 background: url(../img/pointering.png) no-repeat;
}
.content h1{
 text-align: center;
 font:bold 24px Georgia;
 padding:6px 0 20px 0 ;
 background: url(../img/line.png) no-repeat bottom center;
 margin-bottom: 38px;
}
.content .pl,.content .cs,.content .uc,
.contact .sc,.contact .co,.contact .nu{
 float: left;
 width: 300px;
 
}
.content .cs,.contact .co{
 margin: 0 20px;
}
.content h2{
 color:#11719e;
 font:21px Georgia;
}
.content p1{
 color: #8c8c8c;
 font: 12px Myriad Pro;
}
.content .imgDiv{
 width: 299px;
 height: 190px;
 background: url(../img/background.png) no-repeat;
 margin: 16px 0 10px 0 ;
 text-align: center;
 padding-top: 12px;
}
.content p2{
 height 92px;
 font:13px Myriad Pro;
 color:#3e3e3e;
}
.content .lm{
 display: block;
 width: 163px;
 height: 40px;
 color: #016999;
 font: 12px/40px Myriad Pro;
 background: url(../img/jiantou.jpg) no-repeat;
 text-decoration:none ;
 text-indent: 1em;
 margin: 35px;
}
.contact{
 background: url(../img/line.png) no-repeat top center;
}
.contact .sc,.contact .co,.contact .nu{
 height: 200px;
 
}
.contact .txt{
 width:276px;
 height:33px;
 line-height: 33px;
 background: url(../img/wenbenkuangbeijing.jpg) no-repeat;
 border: none;
 padding: 0 10px;
 margin-bottom:16px;
}
.contact .tarea{
 width: 276px;
 height: 134px;
 background: url(../img/wenbenquyubeijing.jpg) no-repeat;
 border: none;
 overflow: auto;
 resize: none;
 padding: 10px;
 margin: 0;
}
.contact .btn{
 width: 163px;
 height: 32px;
 background: url(../img/anniubeijing.jpg) no-repeat;
 border:none;
 padding: 0;
 margin-top: 11px;
 margin-bottom: 23px;
 color: white;
 font: 13px georgia;
 text-align: left;
 text-indent: 1em;
}
.contact h2{
 color:#444;
 font: 18px Georgia;
 border-bottom: 1px dashed #d3d3d3;
 padding: 44px 0 10px 0;
 margin-bottom: 15px;
}
.sc .p1{
 color: #444;
 font: 12px helvetica;
}
.sc .icon{
 font-size: 0;
 
}
.sc .icon a{
 margin-right: 4px; 
}
发布了4 篇原创文章 · 获赞 0 · 访问量 101

猜你喜欢

转载自blog.csdn.net/ZeBaBa/article/details/102469080