新手-建站之星

在这里插入图片描述

css文件

/* 定义全局变量,为了避免不同的浏览器的默认值导致的页面不美观 */
*{
    
    
    font-size: 12px;
    font-family: 'Times New Roman';
}
#container{
    
    
    margin: 0 auto;
    /* 外边距为上下为0,左右为自适应 */
    border: solid 1px black;
    /* 为了让盒子显示的更加直观 */

}
#header{
    
    
    width: 990px;
    height: 65px;
    margin: 0 auto;
    /* 这样一来就会控制位置 */
    /* border: solid 1px red; */
}
#logo{
    
    
    width: 263px;
    height: 65px;
    float: left;
    /* 以下就是定位背景图片在盒子中的位置 */
    background-image: url(images/logo.png);
    background-repeat: no-repeat;
    background-position: left bottom;
    /* border: solid 1px blue; */
}
#select{
    
    
    width: 720px;
    height: 65px;
    float: left;
    text-align: right;
    /* background:green; */
    /* border: solid 1px green; */
}
#select #sel{
    
    
    margin-top: 15px;
}
#picture{
    
    
    width: 990px;
    height: 345px;
    clear: both;
    /* 解决盒子不居中为问题 */
    margin: 0 auto;
    /* border: solid 1px green; */
}
#nav{
    
    
    width: 990px;
    height: 40px;
    background-color: #0099cc;
    /* border:0px; */
    margin: 0 auto;
    /* border: solid 1px green; */
    text-align: center;
}
/* 对td标签操作更加精细! */
td{
    
    
    line-height: 40px;
    font-size: 18px;
    text-align: center;
    vertical-align: middle;
}
#nav a{
    
    
    text-decoration: none;
}
#nav a:hover{
    
    
    color: #333;
    background: #FFF;
}
#main{
    
    
    width: 990px;
    height: 250px;
    margin: 0 auto;
    /* border: solid 1px black; */

}
#left{
    
    
    width: 660px;
    height: 250px;
    float: left;
    line-height: 1.5em;
    /* border: solid 1px black; */
}
h1{
    
    
    color: #0099ff;
    font-size: 18px;
    height: 36px;
    border-bottom: 2px solid #0099ff;
}
#left img{
    
    
    float: left;
    width: 220px;
    height: 144px;

}
#left-down{
    
    
    margin: 0px auto;
    padding: 0px;
    clear: both;
    width: 100%;
    height: 70px;
}
#left-down img{
    
    
    vertical-align: text-bottom;
    width: 60px;
    height: 50px;
    vertical-align:bottom;
} 
#p1{
    
    
    padding-top: 20px;
    height: 30px;
}
#right{
    
    
    width: 290px;
    height: 250px;
    float: right;
    border: 1px solid #00ff00;
}
ul{
    
    
    width: 200px;
    height: 100%;
    padding: 0px;
    margin: 0 auto;
}
li{
    
    
    padding: 0px;
    margin: 0px;
    line-height: 2em;
    list-style-type: none;
    text-align: left;
}
#footer{
    
    
    clear: both;
    width: 990px;
    height: 30px;
    background: #f7f7f7;
    border-top: 2px solid #0099ff;
    margin: 0 auto;
}
#footer p{
    
    
    padding: 10px auto;
    text-align: center;
    color: #333333;

}

html文件

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Corporex</title>
    <link type="text/css" rel="stylesheet" href="10-建站之星.css">
</head>

<body>
    <div id="container">
        <div id="header">
            <div id=logo>
                <!-- <img src="images/logo.png" alt="" border="0"> -->
            </div>
            <div id="select">
                <!-- 我这里要进行选择 -->
                <select name="" id="sel">
                    <option value="" selected>简体中文</option>
                    <option value="">繁体中文</option>
                    <option value="">English</option>
                </select>
            </div>
        </div>
        <div id="picture">
            <img src="images/huanyu.jpg" alt="" width="990" height="345" border="0">
        </div>
        <div id="nav">
            <table width="100%" height="40px">
                <tr>
                    <td><a href="">首页</a></td>
                    <td><a href="">关于我们</a></td>
                    <td><a href="">合作关系</a></td>
                    <td><a href="">服务项目</a></td>
                    <td><a href="">联系我们</a></td>
                </tr>
            </table>
        </div>
        <div id="main">
            <div id="left">
                <div id="left-up">
                    <h1>关于我们</h1>
                    <img src="images/xwjj.jpg" alt="" border="0">
                    <p>
                        中国环宇科技集团是目前国内主要的高、低压电器元器件、成套电气设备以及电力自动化设备制造商之一。企业始建于1989年,现拥有八大电气专业公司,三大多元产业公司,在全球有600多个销售网点。除主导产业外,环宇集团还涉及房地产开发、粮食加工等行业,业务范围遍及国内各省、市、自治区及欧、美、中东、东南亚等30多个国家和地区,是一个集制造、研发和信息服务于一体的,跨地区、跨行业的集团型企业。
                    </p>
                </div>
                <div id="left-down">
                    <img src="images/ico1.gif" alt="" border="0">
                    <p id="p1">
                        中国环宇科技集团“崇尚科学,笃守诚信,求真务实,和谐发展”的企业精神,致力于“科技型企业”的建设。
                    </p>
                </div>
            </div>
            <div id="right">
                <h1>合作伙伴</h1>
                <ul>
                    <li>111</li>
                    <li>222</li>
                    <li>333</li>
                    <li>444</li>
                    <li>555</li>
                    <li>666</li>
                </ul>
            </div>
        </div>
        <div id="footer">
            <p>
                COPY RIGHT &copy;&nbsp; &nbsp; &nbsp;&nbsp;环宇成为具有强大的文化凝聚力和品牌影响力的,管理科学、技术、规模宏大、效益一流的现代化企业集团。
            </p>
        </div>
    </div>
</body>

</html>

猜你喜欢

转载自blog.csdn.net/m0_46672781/article/details/120706694