本文介绍: html5网页设计 大国工匠css代码 浮动清除

css代码                                                                        

body,ul,li,form,input,h1,h2,h3,h4,h5,nav,a,div,p{
    margin:0;
    padding:0;
}
a{
    textdecoration:none;
}
ul,li,ol{
    liststyle:none;
}
#top{
    width:1000px;
    height:40px;
    lineheight:40px;
    margin:0 auto;    
}
#top_left{
    float:left;
}
#top_right{
    float:right
}
.clearfix{
    clear:both;
}
#top ul li{
    float:left;
    margin-right:20px;
}
#top ul li a{
    color:#666666;
    font-size:14px;
}
#banner{
    width:100%;
    height:295px;
    backgroundimage: url(../img/banner.jpg);
    backgroundposition: center top;
    backgroundsize:100% 295px;
}
#nav_bg{
    width:100%;
    height:44px;
    line-height:44px;
    background:url(../img/bg_nav.jpg) repeat-x left center;
}
nav{
    width:1000px;
    margin:0 auto;
    font-size:0px;
}
nav li{
    display:inline-block;
    width:100px;
    textalign:center;
}
nav li:nthchild(4){
    width:140px;
}
nav a{
    font-weight:bold;
    font-size:18px;
    color: #FFf8d6;
}
nav a:hover{
    color: #7d2a00;
}
#main{
    width:1000px;
    margin:0 auto;
    margintop:30px;
    overflow: hidden;
}
#news{
    width:650px;
    float:left;
}
#video{
    width:320px;
    float:right;
}
.img_bar{
    width: 100%;
    height: 36px;
    line-height: 36px;
    color: #FFFFFF;
    background: #ec8c25 url(../img/h2_bg.jpg) norepeat left center;
    font-size: 16px;
    text-indent: 10px;
}
#main h2{
    width:100%;
    font-size:20px;
    margin-top:15px;
    margin-bottom:10px;
    font-weight:normal;
    margin-left:10px;
}
#main h2 a{
    color:#000;    
}
#main h2 a:hover {
    color:#ff0000;
}
.news_list {
    border-bottom: 1px dashed #ccc;
    padding-bottom: 20px;
}

.news_list li {
    height: 25px;
    line-height: 25px;
    background: url(../img/arrow.jpg)norepeat left center;
    text-indent: 10px;
}

.news_list li a {
    color: #333333;
    font-size: 14px;
}

.new_list li a:hover {
    color: #ec8c25;
}

.news_list2 {
    margin-top: 15px;
}

.news_list2 li {
    background: url(../img/vidicon.gif) no-repeat left center;
    height: 26px;
    line-height: 26px;
    text-indent: 20px;
}

.news_list2 li a {
    font-size: 14px;
    color: #333333;
}

.news_list2 li a:hover {
    color: #005fe9;
}

 #origin{
     width:1000px;
     margin:30px auto;
     overflow: hidden;
 }
 #origin ul{
     margin-top:20px;
 }
 #origin li{
     float:left;
     width:160px;
     margin-right:50px;
     text-align:center;
 }
 #origin li:nthchild(5){
     margin-right:0;
 }
 #origin li a{
     color:#333333;
     font=weight:bold;
 }
 #origin li a:hover{
     color:#EC8C25;
 }
 footer{
     width:1000px;
     margin:40px auto;
     border-top:2px solid #666;
     padding-top:30px
 }
 footer p{
     text-align:center;
     line-height:30px;
     font-size:14px;
     color:#666666;
 }

原文地址:https://blog.csdn.net/niu_zhou/article/details/128142378

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。

如若转载,请注明出处:http://www.7code.cn/show_6165.html

如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱:suwngjj01@126.com进行投诉反馈,一经查实,立即删除

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注