博客网站对应的css代码
*{ margin: 0; padding: 0 } em,i{ font-style: normal; } li{ list-style: none; } img{ border: 0; vertical-align: middle; } button{ cursor: pointer; padding: 10px; } a{ color: #666; text-decoration: none } /*a:hover{ color:#c81623; }*/ #wrap{ background:#444 url(../img/banner.jpg); background-attachment: fixed; background-repeat: no-repeat; background-position: center center; background-size: cover; font-family:Tahoma,Arial,Roboto,”Droid Sans”,”Helvetica Neue”,”Droid Sans Fallback”,”Heiti SC”,sans-self; overflow: hidden; } .header{ height: 50px; background: #ccc; line-height: 50px } nav ul li{ float: right; margin-right: 30px; } nav ul li a{ color: #fff; padding-bottom: 13px; } /* nav ul li a:hover{ color: #c81623; border-bottom-style:solid; } */ .logo{ float: left; margin-left: 40px; } .logo a{ font-size: 20px; color: #fff; font-weight: 700; letter-spacing: 2px } /*.logo a:hover{ color: #c81623; border-bottom-style:solid; }*/ .active{ position: relative; } .active span{ position: absolute; bottom: 5px; left: 0; height: 4px; width: 100%; background: #fff; /*outline: 1px solid #000;*/ } .banner .inner{ background: rgba(50,60,70,0.7); margin:0 auto; max-width: 400px; position: relative; margin-top: 160px; color: #fff; /*overflow:hidden;*/ /*display:table-cell;*/ text-align:center; /*vertical-align:middle;*/ } .line{ width:65%; height:2px; background: #fff; margin:0 auto; margin-top: 15px; margin-bottom: 15px } .banner .inner p{ width:100%; line-height: 30px; font-size: 18px; letter-spacing: 1px; /*margin:0 auto;*/ /*border:1px solid #333;*/ /*font-family: "微软雅黑","华文细黑",Arial, Helvetica, sans-serif;*/ } .banner .inner button{ margin-top: 50px; padding: 10px 20px; border-radius: 5px; background: #e85e17; border: none; color:#fff; outline:none; /*cursor: pointer;*/ } .banner .inner button:hover{ transform:rotate(360deg) scale(2); transition: 2s; } .banner .inner{ padding: 15px 0; /*margin-bottom:15px;*/ } .banner .inner .more{ margin-top: 140px; } .part1{ text-align: center; color:fff; background: rgba(67,178,165,.7); /*opacity:0.95;*/ } .wraper{ margin:0 auto; max-width: 1080px; /*background: grey;*/ } .wraper h1{ padding: 15px 0; color:#fff; letter-spacing: 1px; /*font-family: "微软雅黑","华文细黑",Arial, Helvetica, sans-serif;*/ } .wraper .line{ margin:15px auto; background: darkgrey; } .wraper p{ font-size: 18px; padding:15px 0; color: #fff; /*background: #666;*/ font-family: "微软雅黑","华文细黑",Arial, Helvetica, sans-serif; /*font-family:"宋体", "Times New Roman", Times, serif;*/ } .icon{ margin: 0 auto; padding: 20px 0; /*background: #777;*/ } .icon .item{ border: 2px solid green; /*background: green; 左转45度显示图标*/ display: inline-block; height: 80px; width: 80px; margin: 0 30px; transform: rotate(45deg); } .icon .item img{ height: 100%; width: 100%; transform: rotate(-45deg); } .part2{ background:rgb(33,41,50); color: #fff; opacity: 0.95; } .first:nth-child(odd){ background:rgba(255,255,255,.1); } .first_left{ width: 45%; } .first_left img{ width: 100%; /*height:100%;*/ } .first>div{ float: left; } .clear_fix:after{ content:''; display: block; clear:both; } .first_right{ width: 55%; height: 429px; color: #fff; /*background: #444;*/ } .first_text{ margin-top: 88px; margin-left: 50px; } .first_text h2{ font-size: 24px; margin-bottom: 10px } .first_text .first_title{ font-size: 20px; margin-bottom: 20px } .part-three{ background: #3f3965; opacity: 0.9; color: #fff; } .part-three .part-three_wrap{ margin: 0 auto; max-width: 60%; padding-top:65px; } .three_wrap{ margin-bottom: 35px; } .three_wrap h2{ text-align: center; margin-bottom: 25px; } .three_wrap .line{ background: #1a0973; width: 55%; margin-bottom: 20px; } /*.card_grop{*/ /*}*/ .card{ min-height: 300px; float: left; width: 50%; padding: 50px; max-width:272px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; } .card h3{ text-align: center; } .card p { margin-top: 20px; font-size: 18px; } .card:nth-child(1){ background: rgba(0,0,0,0.05); } .card:nth-child(2){ background: rgba(0,0,0,0.1); } .card:nth-child(3){ background: rgba(0,0,0,0.15); } .card:nth-child(4){ background: rgba(0,0,0,0.2); } .card:nth-child(5){ background: rgba(0,0,0,0.25); } .card:nth-child(6){ background: rgba(0,0,0,0.3); } .footer{ background:#333; color: #fff; min-height: 200px; text-align: center; /*opacity: 0.95;*/ } ul.share_group{ display: block; margin: 0 auto; width: 1080px; padding: 45px; } .share_group li{ display: inline-block; padding: 10px; } /*silder的样式*/ .mask{ display: none; position: fixed; top: 0; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.3); } #silder { /*display: none;*/ position: fixed; right: -300px; top:0; bottom: 0; width: 300px; background: #333; padding: 20px 0; transition:.4s; } #silder ul a { padding: 20px; color: #fff; width: 100%; display: inline-block; } #silder ul a:hover{ background: #666; } .top{ display: none; position: fixed; right: 50px; bottom: 80px; width: 50px; height: 30px; /*background: dodgerblue;*/ } .top p,img{ text-align: center; width: 100%; }
*{
margin: 0;
padding: 0
}
em,i{
font-style: normal;
}
li{
list-style: none;
}
img{
border: 0;
vertical-align: middle;
}
button{
cursor: pointer;
padding: 10px;
}
a{
color: #666;
text-decoration: none
}
/*a:hover{
color:#c81623;
}*/
#wrap{
background:#444 url(../img/banner.jpg);
background-attachment: fixed;
background-repeat: no-repeat;
background-position: center center;
background-size: cover;
font-family:Tahoma,Arial,Roboto,”Droid Sans”,”Helvetica Neue”,”Droid Sans Fallback”,”Heiti SC”,sans-self;
overflow: hidden;
}
.header{
height: 50px;
background: #ccc;
line-height: 50px
}
nav ul li{
float: right;
margin-right: 30px;
}
nav ul li a{
color: #fff;
padding-bottom: 13px;
}
/* nav ul li a:hover{
color: #c81623;
border-bottom-style:solid;
} */
.logo{
float: left;
margin-left: 40px;
}
.logo a{
font-size: 20px;
color: #fff;
font-weight: 700;
letter-spacing: 2px
}
/*.logo a:hover{
color: #c81623;
border-bottom-style:solid;
}*/
.active{
position: relative;
}
.active span{
position: absolute;
bottom: 5px;
left: 0;
height: 4px;
width: 100%;
background: #fff;
/*outline: 1px solid #000;*/
}
.banner .inner{
background: rgba(50,60,70,0.7);
margin:0 auto;
max-width: 400px;
position: relative;
margin-top: 160px;
color: #fff;
/*overflow:hidden;*/
/*display:table-cell;*/
text-align:center;
/*vertical-align:middle;*/
}
.line{
width:65%;
height:2px;
background: #fff;
margin:0 auto;
margin-top: 15px;
margin-bottom: 15px
}
.banner .inner p{
width:100%;
line-height: 30px;
font-size: 18px;
letter-spacing: 1px;
/*margin:0 auto;*/
/*border:1px solid #333;*/
/*font-family: "微软雅黑","华文细黑",Arial, Helvetica, sans-serif;*/
}
.banner .inner button{
margin-top: 50px;
padding: 10px 20px;
border-radius: 5px;
background: #e85e17;
border: none;
color:#fff;
outline:none;
/*cursor: pointer;*/
}
.banner .inner button:hover{
transform:rotate(360deg) scale(2);
transition: 2s;
}
.banner .inner{
padding: 15px 0;
/*margin-bottom:15px;*/
}
.banner .inner .more{
margin-top: 140px;
}
.part1{
text-align: center;
color:fff;
background: rgba(67,178,165,.7);
/*opacity:0.95;*/
}
.wraper{
margin:0 auto;
max-width: 1080px;
/*background: grey;*/
}
.wraper h1{
padding: 15px 0;
color:#fff;
letter-spacing: 1px;
/*font-family: "微软雅黑","华文细黑",Arial, Helvetica, sans-serif;*/
}
.wraper .line{
margin:15px auto;
background: darkgrey;
}
.wraper p{
font-size: 18px;
padding:15px 0;
color: #fff;
/*background: #666;*/
font-family: "微软雅黑","华文细黑",Arial, Helvetica, sans-serif;
/*font-family:"宋体", "Times New Roman", Times, serif;*/
}
.icon{
margin: 0 auto;
padding: 20px 0;
/*background: #777;*/
}
.icon .item{
border: 2px solid green;
/*background: green; 左转45度显示图标*/
display: inline-block;
height: 80px;
width: 80px;
margin: 0 30px;
transform: rotate(45deg);
}
.icon .item img{
height: 100%;
width: 100%;
transform: rotate(-45deg);
}
.part2{
background:rgb(33,41,50);
color: #fff;
opacity: 0.95;
}
.first:nth-child(odd){
background:rgba(255,255,255,.1);
}
.first_left{
width: 45%;
}
.first_left img{
width: 100%;
/*height:100%;*/
}
.first>div{
float: left;
}
.clear_fix:after{
content:'';
display: block;
clear:both;
}
.first_right{
width: 55%;
height: 429px;
color: #fff;
/*background: #444;*/
}
.first_text{
margin-top: 88px;
margin-left: 50px;
}
.first_text h2{
font-size: 24px;
margin-bottom: 10px
}
.first_text .first_title{
font-size: 20px;
margin-bottom: 20px
}
.part-three{
background: #3f3965;
opacity: 0.9;
color: #fff;
}
.part-three .part-three_wrap{
margin: 0 auto;
max-width: 60%;
padding-top:65px;
}
.three_wrap{
margin-bottom: 35px;
}
.three_wrap h2{
text-align: center;
margin-bottom: 25px;
}
.three_wrap .line{
background: #1a0973;
width: 55%;
margin-bottom: 20px;
}
/*.card_grop{*/
/*}*/
.card{
min-height: 300px;
float: left;
width: 50%;
padding: 50px;
max-width:272px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
}
.card h3{
text-align: center;
}
.card p {
margin-top: 20px;
font-size: 18px;
}
.card:nth-child(1){
background: rgba(0,0,0,0.05);
}
.card:nth-child(2){
background: rgba(0,0,0,0.1);
}
.card:nth-child(3){
background: rgba(0,0,0,0.15);
}
.card:nth-child(4){
background: rgba(0,0,0,0.2);
}
.card:nth-child(5){
background: rgba(0,0,0,0.25);
}
.card:nth-child(6){
background: rgba(0,0,0,0.3);
}
.footer{
background:#333;
color: #fff;
min-height: 200px;
text-align: center;
/*opacity: 0.95;*/
}
ul.share_group{
display: block;
margin: 0 auto;
width: 1080px;
padding: 45px;
}
.share_group li{
display: inline-block;
padding: 10px;
}
/*silder的样式*/
.mask{
display: none;
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: rgba(0,0,0,0.3);
}
#silder {
/*display: none;*/
position: fixed;
right: -300px;
top:0;
bottom: 0;
width: 300px;
background: #333;
padding: 20px 0;
transition:.4s;
}
#silder ul a {
padding: 20px;
color: #fff;
width: 100%;
display: inline-block;
}
#silder ul a:hover{
background: #666;
}
.top{
display: none;
position: fixed;
right: 50px;
bottom: 80px;
width: 50px;
height: 30px;
/*background: dodgerblue;*/
}
.top p,img{
text-align: center;
width: 100%;
}

浙公网安备 33010602011771号