polo 360

效果如下:

POLO 360效果.png

代码:

布局,架构
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>polto 360</title>
    <link rel="stylesheet" type="text/css" href="css/reset.css">
    <link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
    <!-- header的开始 -->
    <div class="header w">  
        <!--导航条-->
        <ul class="nav">
            <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 class="logo" title="pfoto 360">
            <a href="#">
                <img src="img/logo.png" alt="网站logo">
            </a>
        </div>
    </div>
    <!-- header的结束 -->

    <!-- banner开始 -->
    <div class="banner w">
        <img src="img/banner/banner01.png" alt="这是banner图片">
        <div class="pointerDiv">
            <a href="#"></a>
            <a href="#" class="active"></a>
            <a href="#"></a>
            <a href="#"></a>
            <a href="#"></a>
        </div>
    </div>
    <!-- banner结束 -->
    <!-- content开始 -->
    <div class="content clearfix w">
        <h1>Lorem ipsum dolor sit amet, consectetur adipisicing elit</h1>
        <!-- 放置内容的三个div -->
        <div class="pl">
            <h2>Perfect Logic</h2>
            <p class="p1">All you want your website to do.</p>
            <div class="imgDiv">
                <img src="img/pic/pic1.jpg" alt="小男孩">
            </div>
            <p class="p1-1">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="lm">Learn More</a>
        </div>
        <div class="cs">
            <h2>Complete Solution</h2>
            <p class="p2">A tool anything and everything you can think</p>  
            <div class="imgDiv">
                <img src="img/pic/pic2.jpg" alt="小女孩">
            </div>
            <p class="p1-1">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="lm">Learn More</a>   
        </div>
        <div class="uc">
            <h2>Uber Culture</h2>
            <p class="p3">Fresh. Modern and ready for future</p>
            <div class="imgDiv">
                <img src="img/pic/pic3.jpg" alt="脑子">
            </div>
            <p class="p1-1">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="lm">Learn More</a>
        </div>
    </div>
    <!-- content结束 -->
    <!-- contact开始 -->
    <div class="contact w clearfix">
        <div class="sc">
            <h2>Social Connection</h2>
            <p>At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium</p>
            <div class="icon">
                <a href="#"><img src="img/icon.png" alt="rss"></a>
                <a href="#"><img src="img/icon.png" alt="f"></a>
                <a href="#"><img src="img/icon.png" alt="f"></a>
                <a href="#"><img src="img/icon.png" alt="f"></a>
                <a href="#"><img src="img/icon.png" alt="f"></a>
            </div>
            <h2 class="nl">Newsletter</h2>
            <p>At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium</p>
            <form action="#">
                <input class="txt" type="text" placeholder="your name">
                <button class="btn">Sent it</button>
            </form>
        </div>
        <!-- 中间的联系栏 -->
        <div class="co">
            <h2>Contact</h2>
            <form action="#">
                <input class="txt" type="text" placeholder="your name">
                <input class="txt" type="text" placeholder="your email address">
                <textarea class="tarea" placeholder="message"></textarea>
                <button class="btn">Sent it</button>
            </form>
        </div>
        <div class="nu">
            <h2>News Updates</h2>
            <p><img src="img/pic/1.gif" alt="">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p>
            <p><img src="img/pic/2.gif" alt="">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam.</p>
            <p class="nomargin"><img src="img/pic/3.gif" alt="">At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium.</p>
            <button class="btn">Visit our Blog</button>
        </div>
    </div>
    <!-- contact结束 -->
    <!-- footer开始 -->
    <div class="footer">
        <div class="w">
            <p>Site Powered by Wordpress. Design and Developed by VIVROCKS.</p>
            <p><a href="#">Home</a>|<a href="#"> About </a>|<a href="#"> Products </a>|<a href="#"> Services </a>| <a href="#">Contact</a></p>
            <p><a href="#">Privacy Policy</a> | <a href="#">Terms of use</a></p>
            <p class="copy">Copyright 2010. Studio VIVROCKS. All Rights Reserved.</p>
        </div>
    </div>
    <!-- footer结束 -->
</body>
</html>
css
/*设置body*/
body{
   background: url(../img/bd--bg.png) repeat-x;
}
/*解决高度塌陷问题*/
.clearfix:before,
.clearfix:after{
   content: "";
   display: table;
   clear: both;
}
.w{
   width: 940px;
   margin: 0 auto;
}

.header{
   /*background-color: green;*/
   padding-top: 37px;
   padding-bottom: 46px; 
}

/*设置logo的位置*/
.logo{
   margin-left: 15px;
}
/*设置导航条*/
.nav{
   /*向右浮动*/
   float: right;
   margin-top: 22px;
}
.nav li{
   /*左浮动*/
   float: left;
   padding: 0px 10px 8px;
   border-left: 1px #d6d6d6 dotted;
}
.nav a{
   color: #666666;
   font: bold 14px Georgia;
   text-decoration: none;
}

.nav a:hover{
   color: #a5a4a4;
   text-decoration: underline;
}
.nav p{
   color: #b7b7b7;
   font: 11px Tahoma;
}

.banner{
   background: url(../img/banner-bg.png) no-repeat bottom center;
   height: 356px;
   position: relative;
}

/*设置小圆点*/
.pointerDiv{
   position: absolute;
   top: 314px;
   left: 15px;
}

.pointerDiv a{
   /*display: inline-block;*/
   width: 17px;
   height: 17px;
   float: left;
   margin-left: 4px;
   background: url(../img/pointer.png) no-repeat;
}
.pointerDiv .active,
.pointerDiv a:hover{
   background: url(../img/pointer--active.png) no-repeat;
}

/********************设置content部分***********************/
.content h1{
   text-align: center;
   font: 24px Georgia;
   padding: 6px 0px 20px 0px;
   background: url(../img/Line.png) no-repeat bottom center;
   margin-bottom: 30px;
}
/*中间的三个div*/
.content .pl, .content .cs, .content .uc,
.contact .sc, .contact .co, .contact .nu{
   float: left;
   width: 300px;
   /*background-color: yellow;*/
}
.content .cs, .contact .co{
   margin: 0px 20px;
}

.content h2{
   color: #11719e;
   font: 21px Georgia;
}
.content .p1,.p2,.p3{
   color: #8c8c8c;
   font: 12px Helvetica;
}
/*设置背景图片*/
.content .imgDiv{
   width: 299px;
   height: 190px;
   background: url(../img/img-bg.png) no-repeat;
   margin: 15px 0px;
   padding-top: 12px;
   text-align: center;
}
.content .p1-1{
   height: 92px;
   color: #3e3e3e;
   font: 13px Helvetica;
   word-spacing: 2px;/*调整单词间距*/
}

/*设置按钮*/
.content .lm{
   display: block;
   width: 163px;
   height: 40px;
   background: url(../img/btn1.png) no-repeat;
   color: #016999;
   font: 12px/40px Helvetica;
   text-indent: 1em;/*设置文字的缩进*/
   text-decoration: none;
   margin-bottom: 35px;
}
.contact{
   background: url(../img/Line.png) no-repeat top center;
}
.contact .txt{
   width: 276px;
   height: 33px;
   background: url(../img/input1.png) no-repeat;
   _background-attachment: fixed;/*用来兼容ie6浏览器的输入内容框不跑,*/
   border: none;
   padding: 0 10px;
   margin: 0px 0px 16px;
}
.contact .tarea{
   display: block;
   width: 276px;
   height: 114px;
   background: url(../img/tarea-input.png) no-repeat;
   _background-attachment: fixed;/*用来兼容ie6浏览器的输入内容框不跑,*/
   border: none;
   overflow: auto;/*去除ie浏览器的滚动条*/
   /*设置文本域不能调整大小*/
   resize: none;
   padding: 10px;
   margin: 0;
}
.contact .btn{
   width: 163px;
   height: 32px;
   background: url(../img/btn2.png) no-repeat;
   border: none;
   padding: 0;
   margin: 11px 0 23px;
   color: white;
   font: 13px Georgia;
   text-align: left;
   text-indent: 1em;
}
.contact h2{
   color: #444444;
   font: 18px/1 Georgia;
   border-bottom: 1px dashed #d3d3d3;
   padding: 44px 0px 10px 0px;
   margin-bottom: 15px;
}
.sc p{
   color: #444;
   font: 12px/1 Helvetica;
}
.sc .icon{
   font-size: 0;
   margin-top: 4px;
}
.sc .icon a{
   margin-right: 6px;
}
.sc .nl{
   color: #444;
   font: bold 18px/1 "GillSansMT";
   padding: 41px 0 10px;
}
.sc .txt{
   margin-top: 15px;
   margin-bottom: 0;
}
.nu img{
   float: left;
   margin-right: 8px;
}

.nu p{
   height: 58px;
   _height: 60px;
   color: #444;
   font: 12px/1 Helvetica;
   border-bottom: 1px dashed #d3d3d3;
   margin-bottom: 15px;
   padding-bottom: 8px; 
}
.nu .nomargin{
   margin-bottom: 0;
}
.footer{
   height: 173px;
   background: #333;
   border-top: 10px solid #4c4c4c;
}
.footer a, .footer p{
   color: #999;
   font: 11px Helvetica;
   text-decoration: none;
}

.footer .copy{
   float: right;
   position: relative;
   bottom: 73px;
}
.footer p{
   margin-left: 8px;
   margin-right: 24px;
   margin-bottom: 10px;
}
.footer .w{
   padding-top: 18px;
}
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Android 自定义View的各种姿势1 Activity的显示之ViewRootImpl详解 Activity...
    passiontim阅读 173,593评论 25 708
  • 问答题47 /72 常见浏览器兼容性问题与解决方案? 参考答案 (1)浏览器兼容问题一:不同浏览器的标签默认的外补...
    _Yfling阅读 13,815评论 1 92
  • 1、通过CocoaPods安装项目名称项目信息 AFNetworking网络请求组件 FMDB本地数据库组件 SD...
    阳明AGI阅读 16,019评论 3 119
  • 爸爸二三事 一一刘舜宇 我有一个爸爸,我有一个让我操心的爸爸,让我担心的爸爸...
    青春飞扬358阅读 290评论 0 0
  • 连续加班两天,拖着快瘫成泥的身子,提着刚刚在超市买的菜,回到住的地方。平时下班还想着晚上炒什么菜吃,周而复始地爬七...
    云祭阅读 470评论 0 0