CSS经典三行布局

CSS经典三行布局

{
padding: 0;
margin: 0;
}
/头部
/
header{
height: 60px;
padding: 5px;
background: #fff;
}
header.container{
width: 100%;
height: 60px;
overflow: hidden;
}
header .container .logo{
float: left;
}
header .container .logo img{
height: 60px;
margin-left: 100px;
}
header .container ul{
float: right;
margin-right: 80px;
}
header .container ul li{
font-size: 16px;
float: left;
margin-left: 60px;
line-height: 60px;
list-style: none;
color: #000;
}
header .container ul li:hover{
color: #E85631;
}
/主体区*/
section{
position: relative;
}
section .banner{
width: 100%;
height: 600px;
background: url(’…/images/1.jpeg’);
background-size: 100% 100%;
}
/遮罩层*/
section .mask{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 600px;
background: #000;
opacity: 0.5;
}
/主题和按钮*/
section .btn{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 600px;
}
section .btn h1{
width: 800px;
text-align: center;
font-size: 40px;
position: absolute;
top: 220px;
left: 50%;
margin-left: -400px;
color: #fff;
}
section .btn button{
width: 200px;
height: 60px;
font-size: 20px;
font-weight: bold;
color: #fff;
background: #FA8A5A;
border: none;
border-radius: 2px;
cursor: pointer;
position: absolute;
top: 320px;
left: 50%;
margin-left: -100px;
}
section .btn button:hover{
background: #F16528;
}
/微博微信QQ区*/
section .contact{
height: 170px;
position: relative;
}
section .contact ul{
text-align: center;
position: absolute;
left: 50%;
margin-left: -489px;
}
section .contact ul li{
float: left;
list-style: none;
text-align: center;
margin: 30px 120px;
}
section .contact ul li img{
width: 80px;
}
section .contact ul li p{
margin-top: 10px;
}

/内容区1*/
section .content-top{
width: 100%;
background: #fff;
position: relative;
}
section .content-top .recept{
width: 500px;
height: 130px;
text-align: center;
position: relative;
top: 20px;
left: 50%;
margin-left: -250px;
}
section .content-top .recept p{
font-size: 24px;
color: #F99C51;
text-align: center;
}
section .content-top .picAndDes{
text-align: center;
width: 960px;
margin: 0 auto;
}
section .content-top .picAndDes .icon{
float: left;
margin: 0 10px;
}
section .content-top .picAndDes .icon img{
width: 300px;
}
section .content-top .picAndDes .icon .des1{
line-height: 30px;
font-size: 18px;
}
section .content-top .picAndDes .icon .des2{
line-height: 30px;
color: #9F9C9C;
font-size: 18px;
margin-bottom: 20px;
}
/内容区2*/
section .content-bottom{
background-color: #F4F4F4;
text-align: center;
position: relative;
}
section .content-bottom .title{
line-height: 100px;
font-size: 25px;
}
section .content-bottom .picContent{
width: 840px;
height: 580px;
margin: 0 auto;
}
section .content-bottom .picContent dl{
width: 400px;
float: left;
margin: 0 10px;
}
section .content-bottom dl dt img{
width: 400px;
}
section .content-bottom dl dd{
text-align: left;
font-size: 18px;
}
/底部*/
footer{
padding: 5px;
background-color: #848484;
}
footer .container{
width: 100%;
height: 50px;
text-align: center;
}
footer .container p{
line-height: 50px;
color: #fff;
}

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值