美文网首页
网页制作

网页制作

作者: 星星yx | 来源:发表于2017-02-22 13:13 被阅读0次
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" href="css/index.css"/>
    <title>记录</title>
    </head>
    
    <body>
    <div id="top">
        <ul class="top_menu">
            <li><a href="#">小学</a></li>
            <li><a href="#">初中</a></li>
            <li><a href="#">高中</a></li>
            <li><a href="#">大学</a></li>
            <li><a href="#">毕业后</a></li>
        </ul>
        <ul class="top_bar">
            <li class="personal"><a href="cb">个人简介</a></li>
            <li class="phone"><a href="#">15566388347</a></li>
            <li class="help"><a href="#">帮助</a></li>
        </ul>
    </div>
    
    <div id="header">
        <a href="#">
        <div id="first"></div>
        <div id="second"></div>
        <div id="thrid"></div>
        </a>
    </div>
    
    <ul id="nav">
        <li><a href="#"><strong><span>童年趣事</span></strong></a></li>
        <li><a href="#"><strong><span>学校记忆</span></strong></a></li>
        <li><a href="#"><strong><span>成长经历</span></strong></a></li>
        <li><a href="#"><strong><span>人生转折点</span></strong></a></li>
        <li><a href="#"><strong><span>人生感悟</span></strong></a></li>
        <li><a href="#"><strong><span>未来计划</span></strong></a></li>
    </ul>
    <div id="content">
    <div id="content1">
        <div id="jj"></div>
        <ul class="cb">
            <li>姓名:张永鑫</li>
            <li>性别:男</li>
            <li>身高:***cm</li>
            <li>体重:**kg</li>
            <li>学校:辽宁科技大学</li>
            <li>专业:测控技术与仪器</li>
            <li>学历:本科</li>
            <li>座右铭:不做第二个谁,<br />只做第一个我</li>
            
        </ul>
        <div id="c1">
            <div class="c01"><a href="#"><span class="c04">为点滴而奋斗</span></a></div>
            <div class="c02"><a href="#"><span class="c04">为生命而拼搏</span></a></div> 
            <div class="c03"><a href="#"><span class="c04">为美丽而存在</span></a></div>    
        </div>
        <div id="kb"></div>
        <div id="qc"></div>
        <div class="cb">
            <span>曲水流觞,沧海踏歌,唱一段一羽清尘,直到曲终人散。站在街头迎风的位置,我感到怅然若失,希望离别后的我们一切安好!</span>
        </div>
        <div id="c2">
            <div class="c07"><a href="#"><span class="c08">高考前最后一次郊游</span></a></div>
            <div class="c06"><a href="#"><span class="c08">孔子前最后一次祈祷</span></a></div> 
            <div class="c05"><a href="#"><span class="c08">如今天南海北的我们</span></a></div>  
        </div>
    </div>
        
        
        
    <div id="content2">
        <a href="#"><div class="lb1">
                <span class="xbt1">1</span><span class="nr2"></span><span class="nr3">未成年的我</span>
            </div></a>
            <a href="#"><div class="lb2">
                <span class="xbt2">2</span><span class="nr2"></span><span class="nr3">高中的我</span>
            </div></a>
            <a href="#"><div class="lb3">
                <span class="xbt3">3</span><span class="nr2"></span><span class="nr3">大学的我</span>
            </div></a>
            <a href="#">
            <div class="lb4">
                <span class="xbt4">4</span><span class="nr2"></span><span class="nr3">工作的我</span>
            </div></a>
    </div>
    </div>
    <div id="foot">
        <div id="db"></div>
        <div id="er"><h2>喜欢我就加我吧</h2></div>
    </div>
    
    </body>
    </html>
    

    index.css

    @charset "utf-8";
    /* CSS Document */
    
    /*  公共部分  */
    body,ul,ol,h1,h2,h3,h4,dl,dd,form,input,textarea,select,li{ margin:0px; padding:0px; font-family:arial;}
    li{list-style:none;}
    img{border:none;}
    a{text-decoration:none;}
    a:hover{text-decoration:underline;}
    
    body{
        background:#f1f4f5 url(../images/bengjing.gif) repeat-x;
        width:1000px;
        margin:0 auto;
    }
    /*  顶部   */
    #top{ 
        height:50px;
    }
    .top_menu{
        float:left;
        }
    .top_menu li{
        float:left;
        background:url(../images/home.gif) no-repeat left 0px;
        padding-left:20px;
        padding-right:4px;
    }
    .top_menu a { color:#FFF;}
    .top_menu a:hover { color:#F3F;}
    
    
    .top_bar{float:right;}
    .top_bar li {
        float:left;
        color:#FFF;
        }
    .top_bar .personal{
        background:url(../images/personal.gif) no-repeat left 0px;
        padding-left:20px;
        padding-right:4px;
        }
    .top_bar .phone{
        background:url(../images/ipone.gif) no-repeat left 0px;
        padding-left:20px;
        padding-right:4px;
        }
    .top_bar .help{
        background:url(../images/help.gif) no-repeat left 0px;
        padding-left:20px;
        padding-right:4px;
        }
    .top_bar a{color:#FFF;}
    
    /*  头部  */
    #header{
        width:1000px;
        height:100px;
        float:left;
    }
    #header a { display:block;}
    #first{
        width:302px;
        height:100px;
        background:url(../images/font1.gif) no-repeat left center;
        float:left;
        }
    #second{
        width:396px;
        height:100px;
        background: url(../images/font2.gif) no-repeat center center;
        float:left;
        }
    #thrid{
        width:302px;
        height:100px;
        background: url(../images/font3.gif) no-repeat right center;
        float:right;
        }
    
    /*   导航   */
    #nav{
        width:1000px;
        height:30px;
        border-top:3px solid #4DE;
        background: #3CF;
        margin-top:120px;
        }
    #nav li{
        float:left;
        font-size:18px;
        line-height:30px;
        border-left:2px solid #00F;
        padding:0 20px 0px 63px;
        background: url(../images/nav.gif) no-repeat 2px 4px;
        }
    #nav a{ color: #000;}
        
    /*  主体  */
    #content1{
        margin-top:20px;
        border:2px dashed #09F;
        border-bottom:none;
        float:left;
    }
    #jj{
        width:1000px;
        height:21px;
        background:url(../images/by/jianjie.gif) center center no-repeat;
    }
        
    .cb{
        width:100px;
        height:300px;
        background:#66F;
        font-size:12px;
        line-height:24px;
        color:#F90;
        font-weight:bold;
        float:left;
    }
    #c1{
        width:800px;
        height:300px;
        margin-left:95px;
        float:right;
    }
    #c1 .c01{
        width:230px;
        height:300px;
        background:url(../images/P61213-073435_mh1481599628989.jpg) no-repeat;
        margin-right:55px;
        float:left;
        }
    #c1 .c02{
        width:230px;
        height:300px;
        margin-right:55px;
        background: url(../images/P61031-080947_mh1477923292912.jpg) no-repeat;
        float:left;
    
        }
    #c1 .c03{
        width:230px;
        height:300px;
        background: url(../images/P61031-082321_mh1479020093139.jpg) no-repeat;
        float:right;
        
        }
    #c1 .c04{
        width:230px;
        height:30px;
        display:inline-block;
        font-size:30px;
        line-height:normal;
        color:#69F;
        font-family:'微软雅黑';
        padding:260px 10px 0px 40px;
        background:url(../images/by/shouji.gif) 15px 275px no-repeat;
    }
    #c1 a:hover:{color:#F6C; text-decoration:underline;}
    #kb{
        height:20px;
        width:1000px;
        overflow:hidden;
    }
    #qc{
        width:1000px;
        height:21px;
        background:url(../images/by/qingchun.gif) center center no-repeat;  
    }
    #c2{
        width:800px;
        height:300px;
        margin-left:95px;
        float:right;
    }
    #c2 .c05{
        width:230px;
        height:300px;
        background:url(../images/by/2.jpg) no-repeat;
        margin-right:55px;
        float:left;
        }
    #c2 .c07{
        width:230px;
        height:300px;
        margin-right:55px;
        background:url(../images/by/1.jpg) no-repeat;
        float:left;
    
        }
    #c2 .c06{
        width:230px;
        height:300px;
        background:url(../images/by/3.jpg) no-repeat;
        float:right;
        
        }
    #c2 .c08{
        width:230px;
        height:30px;
        display:inline-block;
        font-size:20px;
        line-height:normal;
        color:#66F;
        font-family:'微软雅黑';
        padding:260px 10px 0px 40px;
        background:url(../images/by/shouji.gif) 15px 266px no-repeat;
        overflow:hidden;
    }
    #content2{
        margin-top:20px;
        border:2px dashed #09F;
        border-top:none;
        float:left;
    }
    
    .lb1{
        height:300px;
        width:230px;    
        background:url(../images/P61031-084220_mh1477881593320.jpg) no-repeat;
        margin-right:25px;
        float:left;
    }
    .lb2{
        height:300px;
        width:230px;
        background:url(../images/P61209-133829_mh1481292011543.jpg) no-repeat;
        margin-right:25px;
        float:left;
    }
    .lb3{
        height:300px;
        width:230px;
        background:url(../images/P61031-084220_mh1477881593320.jpg) no-repeat;
        margin-right:25px;
        float:left;    
    }
    .lb4{
        height:300px;
        width:230px;
        background:url(../images/P61209-135319_mh1481291651950.jpg) no-repeat;
        float:right;
    }
    .xbt1{
        width:8px;
        height:26px;
        font:bold 9px/24px '微软雅黑';
        color:#FFF;
        padding:0px 6px;
        background:#e2291c;
        display:inline-block;
        position:relative;
        top:265px;  
    }
    .xbt2{
        width:8px;
        height:26px;
        font:bold 9px/24px '微软雅黑';
        color:#FFF;
        padding:0px 6px;
        background:#ec5a2e;
        display:inline-block;
        position:relative;
        top:265px;  
    }
    .xbt3{
        width:8px;
        height:26px;
        font:bold 9px/24px '微软雅黑';
        color:#FFF;
        padding:0px 6px;
        background:#f6a544;
        display:inline-block;
        position:relative;
        top:265px;
    }
    .xbt4{
        width:8px;
        height:26px;
        font:bold 9px/24px '微软雅黑';
        color:#FFF;
        padding:0px 6px;
        background:#ec5a2e;
        display:inline-block;
        position:relative;
        top:265px;
    }
    .nr2{
        width:196px;
        height:26px;
        padding-left:10px;
        background:#0b1213;
        display:inline-block;
        position:relative;
        top:275px;
        opacity:0.5;    
    }     
    .nr3{
        width:196px;
        height:26px;
        font:bold 12px/26px '微软雅黑';
        color:#FFF;
        display:inline-block;
        position:relative;
        left:30px;
        top:240px;  /*字体的设置,为了防止字体也有透明度,所以在此处加上这个*/
    }
    #footer{
        height:50px;
        width:1000px;
        background:#CCC;
    
    }
    #db{
        width:50px;
        height:50px;
        background:url(../images/by/ermwima.gif) no-repeat;
        float:left;
        margin-top:30px;
    }http://pan.baidu.com/s/1qXSU7xy
    #er{
        width:900px;
        height:50px;
        padding-top:25px;
        margin-top:30px;
        float:right;
    }
    

    百度链接:http://pan.baidu.com/s/1qXSU7xy 密码:ukoa

    相关文章

      网友评论

          本文标题:网页制作

          本文链接:https://www.haomeiwen.com/subject/duxmwttx.html