polo页面联系

页面效果图

html代码

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8"/>
        <title>polo360练习</title>
        <link rel="stylesheet" type="text/css" href="css/reset.css"/>
        <link rel="stylesheet" type="text/css" href="css/page-index.css"/>
    </head>
    <body>
        <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">
                    <a href="#" title="欢迎">
                            <img src="img/logo.png" alt="网页的logo"/> 
                    </a>
                </div>
        </div>
        <div class="banner w">
            <img src="img/banner.png" alt="这是一个图片"/>
            <div class="pointerDiv">
               <a href="#"></a>
               <a class="active" 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>
                <P class="p1">All you want your website to do.</P>
                <div class="imgDiv">
                    <img src="img/boy.jpg"/>
                </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 class="lm" href="#">Learn More</a>
            </div>
            <div class="cs">
                <h2>Complete Solution</h2>
                <p class="p1">A tool anything and everything you can think</p>
                <div class="imgDiv">
                    <img src="img/girl.png"/>
                </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 class="lm" href="#">Learn More</a>
            </div>
            <div class="uc">
                <h2>Uber Culture</h2>
                <p class="p1">Fresh. Modern and ready for future</p>
                <div class="imgDiv">
                <img src="img/green-boll.jpg"/>
                </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 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/icon/wifi.png"/>
                    </a>
                    <a href="#">
                        <img src="img/icon/f.png"/>
                    </a>
                    <a href="#">
                        <img src="img/icon/in.png"/>
                    </a>
                    <a href="#">
                        <img src="img/icon/tube.png"/>
                    </a>
                    <a href="#">
                        <img src="img/icon/t.png"/>
                    </a>
                </div>
                <h2 class="p2">Newsletter</h2>
                <p class="p1">At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium</p>
                <form action="#">
                        <input class="text" type="text" placeholder="your email address"/>
                        <button class="btn">Subscribe</button>
                    </form>
            </div>
            <div class="ct">
                <h2>Contact</h2>
                <form action="#">
                    <input class="text" type="text" placeholder="your name"/>
                    <input class="text" type="text" placeholder="your email address"/>
                    <textarea class="tarea" placeholder="message"></textarea>
                    <button class="btn">Send it</button>
                </form>
            </div>
            <div class="ns">
                <h2>News Updates</h2>
                <P>
                    <img src="img/ns/ball.jpg"/>
                    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. 
                </P>
                <P>
                        <img src="img/ns/ballon.jpg"/>
                        Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam.
                </P>
                <P>
                        <img src="img/ns/se.jpg"/>
                        At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium.
                </P>
                <button class="btn">Visit our Blog</button>
            </div>
        </div>
        <div class="footer">
            <div class="w">
                <p class="right" >Copyright 2010. Studio VIVROCKS. All Rights Reserved.</p>
                <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>                        
            </div>
        </div>
    </body>
</html>

CSS代码

body{
    background:url(../img/bg-bg.png) repeat-x;
}
.w{
    width:940px;
    margin:0px auto;
}
.clearfix:after,
.clearfix:before{
    content:"";
    display:table;
    clear: both;
}
.header{
    padding: 37px 0px 46px;
}
.logo{
    padding-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 p{
    font: 11px Tahoma;
}
.nav a:hover{
    color: red;
}
.banner{
    position: relative;
    height: 356px;
    background: url(../img/banner-shadow.png) no-repeat bottom center;
}
.pointerDiv{
    position: absolute;
    left:15px;
    top:314px;
}
.pointerDiv a{
    float: left;
    width: 17px;
    height: 17px;
    background: url(../img/pointerDiv.png) no-repeat;
}
.banner .active,
.banner a:hover{
    background: url(../img/pointerDiv-active.png) no-repeat;
}
.content h1{
    text-align:center;
    font: bold 24px Georgia;
    padding: 6px 0px 20px;
    background: url(../img/line.png) no-repeat bottom center;
}
.content .pl, .content .cs, .content .uc,
.contact .sc, .contact .ct, .contact .ns{
    float: left;
    width: 300px;
}
.content h2{
    color:#11719e;  
    font: 21px Georgia;
}
.content .p1{
    color:#8c8c8c;
    font:12px Helvetica;
}
.content .cs, .contact .ct{
    margin: 0px 20px 0px 20px;
}

.content .imgDiv{
    width: 299px;
    height: 190px;
    margin: 16px 0px 11px;
    text-align: center;
    padding-top: 12px;
    background: url(../img/img-bg.png) no-repeat;
}
.content .p2{
    height: 93px;
    color: #3e3e3e;
    font: 13px/1 Helvetica;
    word-spacing: 2px;
}
.content .lm{
    display: block;
    width: 163px;
    height: 40px;
    background: url(../img/lm-bg.png) no-repeat;
    text-decoration: none;
    color: #016999;
    font: 12px/40px Helvetica; 
    text-indent: 1em;
    margin-bottom: 35px;
}
.contact{
    background: url(../img/line-bg.png) no-repeat top center;
}
.contact .text{
    width:276px;
    height:33px;
    border: none; 
    background: url(../img/input.gif) no-repeat;
    margin: 0px 0px 16px;
    padding: 0px 10px;
}
.contact .tarea{
    width: 276px;
    height: 114px;
    border:none;
    overflow: auto;
    background: url(../img/tarea.gif) no-repeat;
    resize: none;
    padding: 10px;
    margin: 0px;
}
.contact .btn{
    width: 163px;
    height: 32px;
    margin: 11px 0px 23px;
    border: none;
    background: url(../img/btn.jpg) no-repeat;
    color:#ffffff;
    font: 13px/32px Georgia;
    text-align: left;
    text-indent: 1em;
    cursor: pointer;
}
.contact h2{
    columns: #444444;
    font:18px/1 Georgia;
    border-bottom: 1px dashed #d3d3d3;
    padding: 43px 0px 10px;
    margin-bottom: 16px;
}
.sc .p1{
    color: #444444;
    font: 13px Helvetica;
}
.sc .icon{
    font-size: 0px;
    margin: 1px 0px;
}
.icon a{
    margin-right: 2px;
}
.sc .p2{
    margin-bottom: 10px;
    padding: 30px 0px 7px;
    font:bold 18px/1 "gill sans mt";
}
.sc .btn{
     margin: 0px;
}
.sc .text{
    margin: 8px 0px 12px;
}
.ns img{
    float: left;
    margin-right: 8px;
}
.ns p{
    height: 58px;
    color: #444444;
    font: 12px/1  Helvetica;
    border-bottom: 1px dashed #d3d3d3;
    margin-bottom:14px;
    padding-bottom: 9px;
}
.ns .btn{
    margin-top: 0px;
}
.footer{
    height: 173px;
    background-color:#333333;
    border-top: 10px solid #4c4c4c;
}
.footer a, .footer p{
    color: #999999;
    font: 11px Helvetica;
    text-decoration: none; 
}
.footer .right{
    float: right;
}
.footer .w{
    margin-top: 18px;
}
.footer p{
    margin:0px 23px 6px 8px;
}
.footer a:hover{
    text-decoration: underline;
    color: #016999;
} 


有什么可以改进的,欢迎大家多给意见。

猜你喜欢

转载自blog.csdn.net/weixin_43571052/article/details/84196745