css布局实现问答排行用户排行专家求助效果代码
代码语言:html
所属分类:布局界面
代码描述:css布局实现问答排行用户排行专家求助效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
/* 公共样式表css */html,body {
color: #333;
margin: 0;
height: 100%;
font-family: "Myriad Set Pro","Helvetica Neue",Helvetica,Arial,Verdana,sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-weight: normal;
}
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
a {
text-decoration: none;
color: #000;
}
img {
border: 0;
}
body {
background: #f8f8f8;
color: #666;
}
html, body, div, dl, dt, dd, ol, ul, li, h1, h2, h3, h4, h5, h6, p, blockquote, pre, button, fieldset, form, input, legend, textarea, th, td {
margin: 0;
padding: 0;
}
a {
text-decoration: none;
color: #08acee;
}
button {
outline: 0;
}
img {
border: 0;
}
button,input,optgroup,select,textarea {
margin: 0;
font: inherit;
color: inherit;
outline: none;
}
li {
list-style: none;
}
a {
color: #666;
}
a:hover {
color: #eee;
}
.clearfix::after {
clear: both;
content: ".";
display: block;
height: 0;
visibility: hidden;
}
.clearfix {}/* 必要布局样式css */.ques-section {
width: 960px;
margin: 0 auto 10px;
padding: 20px;
border-radius: 2px;
background-color: #fff;
}
.ques-section-item {
width: 293px;
position: relative;
float: left;
}
.ques-item-title {
font-size: 18px;
line-height: 24px;
margin-bottom: 15px;
font-weight: normal;
color: #333;
}
.ques-section-card {
position: relative;
height: 424px;
text-align: center;
border: 1px solid #f2f2f2;
border-radius: 2px;
background-color: #fafafa;
}
.ques-card-head {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 30px;
padding-top: 48px;
border-radius: 2px 2px 0 0;
}
.ques-card-gul {
background-color: #f55727;
background-image: -webkit-radial-gradient(50% 3%,circle,#f07a56,#f55727);
background-image: radial-gradient(circle at 50% 3%,#f07a56,#f55727);
height: 78px;
}
.ques-card-org {
background-color: #f59b00;
background-image: -webkit-radial-gradient(50% -6%,circle,#ffb83d 2%,#f59b00);
background-image: radial-gradient(circle at 50% -6%,#ffb83d 2%,#f59b00);
height: 78px;
}
.ques-card-bul {
background-color: #397bee;
background-image: -webkit-radial-gradient(50% -45%,circle,#53a7f5,#397bee);
background-image: radial-gradient(circle at 50% -45%,#53a7f5,#397bee);
height: 78px;
}
.ques-card-title {
font-size: 18px;
font-weight: 500;
line-height: 24px;
position: relative;
padding-top: 15px;
color: #fff;
}
.ques-card-text {
line-height: 18px;
position: relative;
margin-top: 6px;
opacity: .7;
color: #fff;
font-weight: normal;
}
.ques-card-num {
overflow: hidden;
margin: 40px auto 0;
border-radius: 50%;
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0