334 lines
5.0 KiB
CSS
334 lines
5.0 KiB
CSS
/* 首页样式表 */
|
|
|
|
/* 版心居中 */
|
|
.wrapper {
|
|
margin: 0px auto;
|
|
width: 1200px;
|
|
}
|
|
|
|
body {
|
|
background-color: #f3f5f7;
|
|
}
|
|
|
|
/* 导航 */
|
|
.header {
|
|
height: 100px;
|
|
background-color: #fff;
|
|
}
|
|
|
|
/* 导航版心居中 */
|
|
.header .wrapper {
|
|
padding-top: 29px;
|
|
display: flex;
|
|
}
|
|
|
|
/* logo区域 */
|
|
.logo > h1 > a {
|
|
display: block;
|
|
width: 195px;
|
|
height: 41px;
|
|
font-size: 0px;
|
|
background-image: url(../images/logo.png);
|
|
}
|
|
|
|
.nav {
|
|
margin-left: 102px;
|
|
}
|
|
|
|
.nav ul {
|
|
display: flex;
|
|
}
|
|
|
|
.nav li {
|
|
margin-right: 24px ;
|
|
}
|
|
|
|
.nav a {
|
|
display: block;
|
|
padding: 6px 8px;
|
|
font-size: 19px;
|
|
line-height: 27px;
|
|
}
|
|
|
|
.nav li .active,
|
|
.nav li a:hover {
|
|
border-bottom: 2px solid #00a4ff;
|
|
}
|
|
|
|
.search {
|
|
display: flex;
|
|
width: 412px;
|
|
height: 40px;
|
|
background-color: #f3f5f7;
|
|
border-radius: 20px;
|
|
margin-left: 64px;
|
|
padding-left: 19px;
|
|
padding-right: 12px;
|
|
}
|
|
|
|
.search input {
|
|
flex: 1;
|
|
border: none;
|
|
background-color: transparent;
|
|
outline: none;
|
|
|
|
}
|
|
|
|
.search input::placeholder {
|
|
font-size: 14px;
|
|
color: #999;
|
|
}
|
|
|
|
.search a {
|
|
width: 16px;
|
|
height: 16px;
|
|
background-image: url(../images/search.png);
|
|
align-self: center;
|
|
}
|
|
|
|
.user img {
|
|
width: 30px;
|
|
height: 30px;
|
|
border-radius: 15px;
|
|
vertical-align: middle;
|
|
margin-right: 7px;
|
|
}
|
|
|
|
.user {
|
|
margin-left: 32px;
|
|
margin-top: 4px;
|
|
margin-bottom: 7px;
|
|
}
|
|
|
|
.user span {
|
|
font-size: 16px;
|
|
color: #666;
|
|
}
|
|
|
|
.banner {
|
|
height: 420px;
|
|
background-color: #0092cb;
|
|
}
|
|
|
|
.banner .wrapper {
|
|
display: flex;
|
|
height: 420px;
|
|
background-image: url(../uploads/banner.png);
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.banner .left {
|
|
width: 191px;
|
|
height: 420px;
|
|
background-color: rgba(0, 0, 0, 0.42);
|
|
padding-left: 20px;
|
|
padding-right: 20px;
|
|
padding-top: 3px;
|
|
padding-bottom: 3px;
|
|
}
|
|
|
|
.banner .left li a {
|
|
display: block;
|
|
color: white;
|
|
height: 46px;
|
|
line-height: 46px;
|
|
font-size: 16px;
|
|
background-image: url(../images/right.png);
|
|
background-repeat: no-repeat;
|
|
background-position: right center;
|
|
}
|
|
|
|
.banner .left li a:hover {
|
|
color: #00a4ff;
|
|
background-image: url(../images/right-hover.png);
|
|
background-repeat: no-repeat;
|
|
background-position: right center;
|
|
}
|
|
|
|
|
|
.banner .right {
|
|
margin-top: 60px;
|
|
border-radius: 10px;
|
|
width: 218px;
|
|
height: 305px;
|
|
background-color: #209dd5;
|
|
}
|
|
|
|
.banner .right h3 {
|
|
margin-left: 14px;
|
|
height: 48px;
|
|
line-height: 48px;
|
|
color: white;
|
|
font-weight: 400;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.banner .right .content {
|
|
height: 257px;
|
|
background-color: #fff;
|
|
border-radius: 10px;
|
|
padding: 14px;
|
|
}
|
|
|
|
.banner .right dl {
|
|
margin-bottom: 12px;
|
|
border-bottom: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.banner .right dt {
|
|
margin-bottom: 8px;
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.banner .right dd {
|
|
margin-bottom: 8px;
|
|
font-size: 12px;
|
|
line-height: 16px;
|
|
}
|
|
|
|
|
|
.banner .right dd span {
|
|
color: #00a4ff;
|
|
}
|
|
|
|
.banner .right dd strong {
|
|
color: #7d7d7d;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.banner .right a {
|
|
display: block;
|
|
height: 32px;
|
|
background-color: #00a4ff;
|
|
line-height: 32px;
|
|
border-radius: 15px;
|
|
text-align: center;
|
|
color: white;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.recommend {
|
|
display: flex;
|
|
height: 60px;
|
|
padding: 0 20px;
|
|
background-color: #fff;
|
|
margin-top: 11px;
|
|
box-shadow: 0px 1px 2px 0px rgba(211,211,211,0.5);
|
|
line-height: 60px;
|
|
}
|
|
|
|
.recommend ul {
|
|
flex: 1;
|
|
display: flex;
|
|
justify-content: space-evenly;
|
|
}
|
|
|
|
.recommend ul li a {
|
|
border-right: 1px solid #e0e0e0;
|
|
padding-left: 24px;
|
|
padding-right: 24px;
|
|
font-size: 18px;
|
|
|
|
}
|
|
|
|
.recommend ul li:last-child a {
|
|
border: none;
|
|
}
|
|
|
|
.recommend h3 {
|
|
font-weight: 400;
|
|
color: #00a4ff;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.recommend .modify {
|
|
font-size: 16px;
|
|
color: #00a4ff;
|
|
}
|
|
|
|
.course {
|
|
margin-top: 15px;
|
|
|
|
}
|
|
|
|
.hd {
|
|
height: 60px;
|
|
line-height: 60px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.hd h3 {
|
|
font-weight: 400;
|
|
font-size: 21px;
|
|
}
|
|
|
|
.hd .more {
|
|
font-size: 14px;
|
|
color: #999;
|
|
background-image: url(../images/more.png);
|
|
background-repeat: no-repeat;
|
|
background-position: right center;
|
|
padding-right: 20px;
|
|
}
|
|
|
|
.bd ul {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.bd li {
|
|
width: 228px;
|
|
height: 271px;
|
|
background-color: #0092cb;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.bd li .pic {
|
|
height: 156px;
|
|
background-image: url(../uploads/course01.png);
|
|
}
|
|
|
|
.bd li .text {
|
|
padding: 20px;
|
|
height: 115px;
|
|
background-color: #fff;
|
|
}
|
|
|
|
.bd li .text h4 {
|
|
line-height: 20px;
|
|
height: 40px;
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
margin-bottom: 13px;
|
|
}
|
|
|
|
.bd li .text p {
|
|
line-height: 20px;
|
|
color: #999;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.bd li .text p span {
|
|
color: #fa6400;
|
|
}
|
|
|
|
.bd li .text p i {
|
|
font-style: normal;
|
|
}
|
|
|
|
.hd ul {
|
|
display: flex;
|
|
}
|
|
|
|
.hd li {
|
|
margin-right: 60px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.hd li .active {
|
|
color: #00a4ff;
|
|
} |