CSS代码
@charset "utf8";
*{margin:0;padding:0;}
body
{
text-align:center;
font: 14px/1.5 "微软雅黑",Verdana,Tahoma,Arial,sans-serif,"宋体";
line-height:30px;
}
ul,li
{
list-style:none;
}
/*弹出层遮罩*/
.layer-mask{
display: none;
position: fixed;
top:0px;
left:0px;
width: 100%;
height: 100%;
z-index: 9999;
background-color: #000;
opacity: 0.5;
}
/*弹出层窗体*/
.layer-pop{
display: none;
position: fixed;
top:0px;
left:0px;
bottom: 0px;
right: 0px;
background-color:#fff;
margin: auto;
z-index: 10000;
width:400px;
height: 300px;
}
/*弹出层关闭按钮*/
.layer-colse{
float: right;
width: 24px;
height: 24px;
border:1px solid #fff;
border-radius: 50%;
background-color: #eee;
line-height: 24px;
margin-right: -12px;
margin-top: -12px;
}
.layer-colse:hover{
background-color: #ccc;
color:#fff;
cursor: pointer;
}
/*登录表单样式*/
.layer-content{
}
.login h3{
font-size: 20px;
font-weight: bold;
margin-top:25px;
margin-bottom: 20px;
}
.login .item1 input{
width:200px;
height:30px;
border-radius: 3px;
margin-bottom: 20px;
border:1px solid #ccc;
}
.login .item2 input{
width:200px;
height:30px;
border-radius: 4px;
margin-bottom: 20px;
border:1px solid #ccc;
}
.submit{
background: #e40;
border:1px solid #e40;
border-radius:5px;
padding:10px 5px;
width:200px;
color:#fff;
margin-left: 45px;
}
/*慕课网效果*/
/*顶部*/
.header
{
height:80px;
line-height:80px;
text-align : right;
margin: 0 20px;
overflow:hidden;
}
.header .banner
{
float:left;
}
.header .banner span
{
font-size:18px;
margin:0 15px;
line-height:80px;
}
.header .banner img
{
width:150px;
vertical-align: middle;
margin-right:40px;
}
.header a
{
color:#666;
text-decoration:none;
margin-left:20px;
}
/*轮播*/
.swipe
{
width: 1200px;
height: 450px;
margin : 0 auto;
overflow:hidden;
}
.swipe .ppt
{
width:100%;
height:100%;
}
.swipe .ppt.first
{
background:url(../images/001.jpg);
background-size: cover;
}
.swipe .ppt.second
{
background:url(../images/002.jpg);
background-size: cover;
}
/*导航*/
.nav
{
position:absolute;
width : 280px;
height:450px;
background: #000;
color:#fff;
filter:alpha(opacity=50); /*支持 IE 浏览器*/
-moz-opacity:0.50; /*支持 FireFox 浏览器*/
opacity:0.50; /*支持 Chrome, Opera, Safari 等浏览器*/
}
.nav .item
{
margin: 5px 20px;
padding: 10px;
text-align:left;
border-bottom:1px solid #aaa;
}
.nav .item:hover
{
background:#666;
cursor: pointer;
}
.nav .item .title
{
font-size:16px;
margin-bottom:10px;
}
.nav .item span
{
margin-right : 9px;
}
/*课程排列*/
.lessions
{
width : 1200px;
margin : 0 auto;
}
.lessions .title
{
text-align:left;
line-height : 45px;
color:#666;
font-size:16px;
margin-top:30px;
}
.lessions ul
{
overflow:hidden;
}
.lessions li
{
float : left;
width : 23%;
margin-right: 32px;
margin-top: 32px;
}
.lessions li img
{
max-width:100%;
}
/*页脚*/
.footer
{
margin-top:50px;
padding:50px 0;
background: #eee;
border-top : 1px solid #ddd;
}
.footer .site
{
line-height:100px;
}
.footer .site span
{
margin:0 20px;
color :#888;
}
正在回答 回答被采纳积分+1
- 参与学习 人
- 提交作业 11218 份
- 解答问题 36713 个
从一个不会编程的小白到一个老司机是需要过程的,首先得入门,学习基础知识,然后才能进阶,最后再到精通,本专题是你走进前端世界的不二选择!
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星