用HTML+CSS编写一个计科院网站首页的静态网页

 




    
    计算机科学学院
    


    
    

 

body{
    margin: 0;
}
.top{
    width: 100%;
    height:112px;
    background:  no-repeat url("../img/top-bg.jpg") center;
}
.serach{
    width: 287px;
    height: 38px;
    background: url("../img/top_hunt_bg.png") no-repeat;
    margin-top: 32px;
    margin-right: 320px;
    float: right;
}
.serach_text{
    float: left;
    width: 195px;
    margin-top: 2px;
    margin-left: 15px;
    height: 30px;
    line-height: 30px;
    color: rgb(200,200,200);
    outline: none;
    border: medium none;
}
.serach_pic{
    height: 18px;
    float: right;
    margin-top: 6px;
}
.btnSubmit{
    width: 22px;
    height: 22px;
    margin-right: 10px;
    margin-top: 2px;
    outline:none;
    cursor: pointer;
    background: url("../img/top_hunt.png") no-repeat;
    border: medium none;
}
.navagator{
    background: #0b6cb8;
    height: 50px;
    line-height: 50px;
    margin: 0 auto;
    width: 974px;
}
ul{
   margin: 0;
}
.top_li{
    list-style: none;
    color: #fff;
    font-size: 15px;
    float: left;
    padding: 0 15px;
}
div{
    display: block;
}
.picNews{
    width: 974px;
    height: 195px;
    margin: 20px auto;
    background: url("../img/welcome.jpg") no-repeat center;
}
.contentOne{
    height: 268px;
    width: 974px;
    margin: 0 auto;
}
.news{
    height: 100%;
    width: 644px;
    float: left;
    padding: 0 10px 0 0;
}
.newsTitle{
    width: 100%;
    height: 34px;
    line-height: 34px;
    background: #ddd;
}
h2{
    width: 74px;
    background: #0b6cb8;
    color: #fff;
    font-size: 16px;
    padding: 0 5px;
    float: left;
    margin-top: 0;
    margin-bottom: 0;
    font-weight: normal;
}
.picSpan{
    float: right;
    display: block;
    padding: 0 5px;
}
table{
    width: 100%;
    height: 200px;
}
.news_pictuure{
    width: 310px;
    height: 174px;
    overflow: hidden;
}
.pic_text{
    line-height: 220%;
    color: #222222;
    font-size: 9pt;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
}
.news_list{
    width: 334px;
    height: 180px;
    margin-top: 12px;
    float: right;
}
.item{
    overflow: hidden;
    font-size: 14px;
    line-height: 30px;
    height: 30px;
    width: 100%;
    background: url(../img/xdd.png) no-repeat 0px 14px;
    text-indent: 12px;
}
.item a{
    width: 314px;
    height: 30px;
    text-decoration: none;
    display: block;
}
.item em{
    overflow: hidden;
    color: #5c5c5c;
    width: 250px;
    float: left;
    height: 30px;
    font-style: normal;
    text-overflow:ellipsis
}
.item span{
    width: 60px;
    height: 30px;
    color: #5c5c5c;
}
.communicate{
    width: 320px;
    height: 226px;
    float: right;
}
.contentTwo{
    width: 996px;
    height: 324px;
    margin: 0 auto;
}
.newsPass{
    width: 644px;
    height: 304px;
    padding: 0 10px;
    float: left;
}
.news_list_2{
    width: 644px;
    height: 258px;
    margin-top: 12px;
    float: right;
}
.news_list_2 h3{
    margin: 0;
    padding: 0;
    text-indent: 12px;
}
.news_list_2 h3 a{
    width: 422px;
    height: 25px;
    color: #0b6cb8;
    font-size: 18px;
    cursor: pointer;

}
.news_list_2 p{
    margin-top: 4px;
    font-size: 12px;
    color: #999999;
    /*首行缩进两个字符*/
    text-indent: 2em;
    line-height: 22px;
    padding-bottom: 4px;
    /*下划线*/
    border-bottom: 1px dashed #eeeeee;
}
.item_2{
    overflow: hidden;
    font-size: 14px;
    line-height: 30px;
    height: 30px;
    width: 644px;
    background: url(../img/xdd.png) no-repeat 0px 14px;
    text-indent: 12px;
}
li.item_2 a{
    width: 644px;
    height: 30px;
    text-decoration: none;
    display: block;
}
.item_2 a em{
    color: #5c5c5c;
    width: 570px;
    float: left;
    height: 30px;
    font-style: normal;
    text-overflow:ellipsis
}
.item_2 a span{
    width: 66px;
    height: 30px;
    color: #c3c3c3;
    float: right;
}
.party{
    width: 332px;
    height: 286px;
    float: right;
}
.contentThree{
    width: 996px;
    height: 296px;
    margin: 0 auto;
}
.inform{
    width: 644px;
    height: 304px;
    padding: 0 10px;
    float: left;
}
.subject{
    width: 332px;
    height: 126px;
    float: right;
}
.footer{
    width: 100%;
    height: 60px;
    background: blue;
    color:black;
    font-size: 13px;
    line-height: 60px;
}
.footer p{
    text-align: center;
}

 

 

效果截图:

用HTML+CSS编写一个计科院网站首页的静态网页_第1张图片

 

你可能感兴趣的:(用HTML+CSS编写一个计科院网站首页的静态网页)