美文网首页
2018-10-31day3-作业(静态网页)

2018-10-31day3-作业(静态网页)

作者: MW演员 | 来源:发表于2018-11-01 09:03 被阅读0次

    一、主页

    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="utf-8" />
            <meta name="viewport" content="width=device-width, initial-scale=1">
            <title>卧龙控股</title>
            
            <link rel="stylesheet" type="text/css" href="css/style.css"/>
        </head>
        <body>
            <div id="box">
                
                <!-- head -->
                <div id="head">
                    <img src="img/head.jpg">
                </div>
                
                <!-- 导航栏 -->
                <div id="nav">
                    <div>
                        <ul>
                            <li>集团介绍</li>
                            <li>产品中心</li>
                            <li>卧龙市场</li>
                            <li>技术研发</li>
                            <li>国际合作</li>
                            <li>投资者关系</li>
                            <li>新闻资讯</li>
                            <li>人力资源</li>
                        </ul>
                    </div>
                </div>
                
                <!-- 轮播图片 -->
                <div id="loop">
                    <div id="loopphotos">
                        <img src="img/2.jpg" >
                    </div>
                </div>
                
                <!-- content -->
                <div id="content">
                    <div id="contenttop">
                        <div id="topleft">
                            <div id="title">新闻资讯</div>
                            <div id="news">
                                <ul>
                                    <li>卧龙控股集团有限公司创建于</li>
                                    <li>卧龙控股集团有限公司创建</li>
                                    <li>卧龙控股集团有限公司创建于</li>
                                    <li>卧龙控股集团有限公司创建于</li>
                                    <li>卧龙控股集团有限</li>
                                    <li>卧龙控股集团有限公司创浮动建于</li>
                                </ul>
                            </div>
                            <div id="time">
                                <ul>
                                    <li>2018-10-31</li>
                                    <li>2018-10-31</li>
                                    <li>2018-10-31</li>
                                    <li>2018-10-31</li>
                                    <li>2018-10-31</li>
                                    <li>2018-10-31</li>
                                </ul>
                            </div>
                        </div>
                        <div id="topcenter">
                            <div id="title">卧龙介绍</div>
                            <div id="intr">
                                <p>滴滴出行今天表示,为进一步满足公众安全出行的需求</p>
                                <p>滴滴出行今天表示,为进一步满足公众安全出行的需求</p>
                            </div>
                        </div>
                        <div id="topright">
                            <div id="title">人才招聘</div>
                            <div id="intr">
                                <p>滴滴出行今天表示滴滴出行今天表示,为进一步满足公众安全出行的需求</p>
                                
                            </div>
                        </div>
                    </div>
                    
                    <div id="contentfoot">
                        <div id="foottitle">
                            卧龙市场
                        </div>
                        <div id="footleft">
                            <img src="img/c1.jpg" id="img">
                        </div>
                        <div id="footcenter">
                            <img src="img/c2.jpg" id="img">
                        </div>
                        <div id="footcenter1">
                            <img src="img/3.jpg" id="img">
                        </div>
                        <div id="footright">
                            <img src="img/2.jpg" id="img">
                        </div>  
                    </div>
                </div>
                
                <!-- 详细介绍 -->
                <div id="introduction"></div>
                
                <!-- 页脚 -->
                <div id="bottom">
                    <div id="bottomleft">
                        <ul>
                            <li>网站地图 |&nbsp;</li>
                            <li>法律申明 |&nbsp;</li>
                            <li>版权中心 |&nbsp;</li>
                            <li>联系我们 |&nbsp;</li>
                            <li>卧龙家园</li>
                        </ul>
                        <span>© 2014 卧龙控股集团 浙ICP备06005901号</span>
                    </div>  
                </div>
                
            </div>
            
        </body>
    </html>
    

    二、css样式

    body{
        margin: 0;
        padding: 0;
    }
    #box{
        width: 900px;
        margin: 0 auto;
    }
    
    #head{
        height: 80px;
        background-color: blue;
    }
    
    #head img{
        width: 100%;
        height: 80px;
    }
    
    #nav{
        height: 50px;
        background-color: black;
    }
    
    #loop{
        height: 280px;
        background-color: #DDDDDD;
    }
    
    #loopphotos img{
        width: 100%;
        height: 280px;
    }
    
    #content{
        height: 400px;
        background-color: #ffffff;
        
    }
    #contenttop{
        height: 220px;
        width: 100%;
    }
    #contentfoot{
        height: 180px;
        width: 100%;
        position: relative;
    }
    
    #topleft{
        width: 450px;
        height: 100%;
        background-color: #ffffff;
        float: left;
        position: relative;
    }
    
    #topcenter{
        width: 225px;
        height: 100%;
        background-color: ghostwhite;
        float: left;
        position: relative;
    }
    
    #topright{
        width: 225px;
        height: 100%;
        background-color: whitesmoke;
        float: right;
        position: relative;
    }
    
    #foottitle{
        margin-left: 15px;
        margin-top: 10px;
        font-size: 18px;
    }
    
    #footleft{
        width: 180px;
        height: 100px;
        background-color: red;
        float: left;
        margin: 10px 30px 40px 15px;
    }
    #img{
        width: 180px;
        height: 100px;
    }
    #footcenter{
        width: 180px;
        height: 100px;
        background-color: hotpink;
        float: left;
        margin: 10px 30px 40px 15px;
        
    }
    
    #footcenter1{
        width: 180px;
        height: 100px;
        background-color: darkgreen;
        float: left;
        margin: 10px 30px 40px 15px;
    }
    
    #footright{
        width: 180px;
        height: 100px;
        background-color: yellowgreen;
        float: right;
        margin: 10px 30px 40px 15px;
    }
    
    
    #introduction{
        height: 150px;
        background-color: whitesmoke;
    }
    
    #bottom{
        height: 60px;
        background-color: white;
    }
    #bottomleft{
        float: left;
        width: 100%;
        
    }
    
    #bottomleft li{
        float: left;
        list-style: none;
        color: black;
    }
    
    #bottom span{
        margin-left: 8%;
    }
    
    #nav div li{
        float: left;
        margin-left: 15px;
        margin-right: 23px;
        list-style: none;
        color: white;
    }
    
    #nav div{
        float: left;
        color: white;
    }
    
    #title{
        position: absolute;
        left: 20px;
        top: 18px;
        font-size: 18px;
    }
    #news ul{
        margin-top: 50px;
        float: left;
    }
    
    #news ul li{
        margin-bottom: 5px;
    }
    
    #time ul{
        margin-top: 50px;
        float: left;
        list-style: none;
        color: black;
        position: absolute;
        right: 5%;
    }
    #time ul li{
        margin-bottom: 5px;
    }
    #intr{
        margin:50px 20px 20px 20px
    }
    

    相关文章

      网友评论

          本文标题:2018-10-31day3-作业(静态网页)

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