4.8 Polo360首頁

HTML

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Polo360首頁</title>
    <link rel="stylesheet" href="ie6_png/DD_belatedPNG_0.0.8a-min.js">
    <link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
    <!-- header的開始 -->
    <div class="header w">
        <ul class="nva">
            <li>
                <a href="#">HOME</a>
                <p>Back to home</p>
            </li>
            <li>
                <a href="#">PRODUCTS</a>
                <p>What we have for you</p>
            <li>
                <a href="#">SERVICES</a>
                <p>Things we do</p>
            <li>
                <a href="#">BLOG</a>
                <p>Follow our updates</p>
            <li>
                <a href="#">CONTACT</a>
                <p>Ways to reach us</p>
        </ul>
        <a href="#"><img src="img/logo.png" alt="lalala"></a>

    </div>
    <!-- header的結束 -->

    <!-- bannar的開始 -->
    <div class="bannar w">
        <a href="#"><img src="img/bannar/bannar1.png"></a>

        <div class="pointerDiv">
            <a href="#"></a>
            <a href="#" class="an2"></a>
            <a href="#"></a>
            <a href="#"></a>
            <a href="#"></a>
        </div>
    </div>
    <!-- banner的結束 -->
    <div class="contact w">
        <h2 class="h1">Lorem ipsum dolor sit amet, consectetur adipisicing elit</h2>
        <div class="pl">
            <h2 class="h2">Perfect Logic</h2>
            <p class="p1">All you want your website to do.</p>
            <div class="bg1">
                <img class="tp" src="img/小男孩.png" alt="小男孩">
            </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 href="#" class="a1">Learn More</a>
        </div>
        <div class="cs">
            <h2 class="h2">Complete Solution</h2>
            <p class="p1">A tool anything and everything you can think</p>
            <div class="bg1">
                <img class="tp" src="img/小女孩.png" alt="小女孩">
            </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 href="#" class="a1">Learn More</a>
            
        </div>
        <div class="uc">
            <h2 class="h2">Uber Culture</h2>
            <p class="p1">Fresh. Modern and ready for future</p>
            <div class="bg1">
                <img class="tp" src="img/字母老殼.png" alt="字母老殼">
            </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 href="#" class="a1">Learn More</a>
        </div>
    </div>
</body>
</html>

CSS

*{
    margin: 0;
    padding: 0;
}
body{
    height: 3000px;
    background-image: url(../img/bg.png);
    background-repeat: repeat-x;
}
.w{
    width: 940px;
    margin: 20px auto;
}
.header{
    height: 137px;
    /*background-color: red;*/
}
.header a img{
    float: left;
    padding-left: 15px;
    padding-top: 12px;
}
.nva{
    float: right;
}
.nva li{
    list-style: none;
    float: left;
    margin: 30px 8px 10px 12px;
    padding-bottom: 15px;
    padding-left: 10px;
    border-left: 1px #d6d6d6 dotted;
}
.nva li a{
    text-decoration: none;
    font-family: Georgia;
    font-size: 14px;
    color: #666;
}
.nva li a:hover{
    color: #b7b7b7;
}
.nva li p{
    font-family: Tahoma;
    font-size: 11px;
    color: #b7b7b7;
}

.bannar{
    height: 356px;
    background: url(../img/bannar/yinyin.png) no-repeat bottom center;
    position: relative;
}
.pointerDiv{
    position: absolute;
    top: 314px;
    left: 17px;
}
.pointerDiv a{
    float: left;
    height: 17px;
    width: 17px;
    background: url(../img/bannar/baiseanniu.png) no-repeat;
    margin: 4px;
}
.pointerDiv .an2{
    background: url(../img/bannar/landeanniu.png) no-repeat;
}
.pointerDiv a:hover{
    background: url(../img/bannar/landeanniu.png) no-repeat;
}
.contact .h1{
    color: #000;
    font: 24px Georgia;
    text-align: center;
    display: block;
    background: url(../img/長陰影.png) no-repeat bottom center;
    padding-bottom: 30px;
}
.contact .pl , .contact .cs , .contact .uc{
    width: 300px;
    height: 435px;
    float: left;
    margin: 2px 20px 2px 0px;
    /*background-color: red;*/
}
.contact .uc{
    margin-right: 0px;
}
.contact .h2{
    color: #11719e;
    font: 21px Georgia;
    padding-bottom: 12px;
    text-indent: 0.5em;
}
.contact .p1{
    color: #8c8c8c;
    font: 12px Helvetica;
    text-indent: 1em;
    margin: 2px 0px 8px 0px;
}
.contact .bg1{
    width: 299px;
    height: 202px;
    /*padding-top:0px;*/
    background: url(../img/陰影背景.png) no-repeat center;
    text-align: center;
    margin-right: 20px;
}
.contact .tp{
    margin-top: 12px;
}
.contact .p2{
    padding-top: 8px;
    color: #3e3e3e;
    font: 13px Helvetica;
    word-spacing: 1px;
}
.contact .a1{
    text-decoration: none;
    color: #016999;
    font: 12px Helvetica;
    line-height: 32px;
    text-indent: 1em;
    display: block;
    width: 163px;
    height: 32px;
    background: url(../img/按鈕.png) no-repeat center;
    margin-top: 20px;
}
.contact .a1:hover{
    text-indent: 1.2em;
}

效果圖


image.png
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容

  • 譯者:旭日云中竹鏈接:http://www.zcfy.cc/article/1057原文:https://medi...
    IT程序獅閱讀 6,038評論 8 200
  • 譯者:旭日云中竹鏈接:http://www.zcfy.cc/article/1057原文:https://medi...
    51CTO學院閱讀 5,262評論 2 179
  • HTML 5 HTML5概述 因特網上的信息是以網頁的形式展示給用戶的,因此網頁是網絡信息傳遞的載體。網頁文件是用...
    阿啊阿吖丁閱讀 4,033評論 0 0
  • 爸爸去了城上之后,二子本來是快活了一陣的。 本來,家里有兩個大人管著他。犯了事,不是爸爸罵,就是媽媽罵。在莊上瘋的...
    郭綠獅閱讀 487評論 0 1
  • 在家看電視,看了《軍營大拜年》這個欄目。當然沒有專注的看,只是無聊的打發時間。看的是崗巴營那一集,朋友們可以在網上...
    局外人在局中閱讀 189評論 0 0