/*css 初始化代码 css reset*/
/*清除元素默认的内外边距*/
* {
margin: 0;
padding: 0;
}
/*清除列表样式*/
li {
list-style: none;
}
/*去掉button 默认自带的边框*/
button {
border: none;
}
body {
background-color: #f3f5f7;
/*方便写代码 一会别忘了删除*/
/*height: 3000px;*/
}
a {
text-decoration: none;
}
/*清除浮动的*/
.clearfix:before,
.clearfix:after {
content: "";
display: table;
}
.clearfix:after {
clear: both;
}
.clearfix {
*zoom: 1;
}
/*版心 1200 水平居中*/
.w {
width: 1200px;
margin: auto;
}
/*header start*/
.header {
height: 42px;
/*background-color: pink;*/
margin: 30px auto;
}
.logo {
float: left;
margin-right: 60px;
}
.nav {
float: left;
}
.nav ul li {
float: left;
}
.nav ul li a {
display: block;
height: 40px;
padding: 0 10px;
margin-right: 20px;
line-height: 40px;
font-size: 18px;
color: #050505;
text-decoration: none;
}
/*鼠标经过链接 才有底边框*/
.nav ul li a:hover {
border-bottom: 2px solid #00a4ff;
}
.search {
float: left;
margin-left: 70px;
}
.search input {
float: left;
width: 340px;
height: 40px;
border: 1px solid #00a4ff;
border-right: 0;
padding-left: 20px;
color: #ccc;
}
.search button {
float: left;
width: 50px;
height: 42px;
background: url(images/btn.png);
}
.user {
float: left;
height: 42px;
line-height: 42px;
margin-left: 30px;
font-size: 14px;
color: #666;
}
/*banner start*/
.banner {
height: 420px;
background: #1c036c url(images/banner2.jpg) no-repeat top center;
}
.subnav {
float: left;
width: 150px;
height: 420px;
padding: 0 20px;
/*背景半透明*/
background: rgba(0, 0, 0, .3);
}
.subnav li {
height: 45px;
line-height: 45px;
}
.subnav li a {
color: #fff;
font-size: 14px;
text-decoration: none;
}
.subnav li a:hover {
color: #00b4ff;
}
.subnav span {
float: right;
}
.course{
float: right;
margin-top: 50px;
width: 230px;
height: 300px;
background-color: #fff;
}
.course-hd{
height: 48px;
line-height: 48px;
text-align: center;
background-color: #9bceea;
font-size: 18px;
color: #ffffff;
font-weight: 700;
}
.course-bd{
padding: 0 15px;
}
.course-
学成网首页
最新推荐文章于 2023-09-10 22:13:16 发布