项目打包链接: https://pan.baidu.com/s/1QvAB4wPHAi-BdCaJDwGJkA
提取码: p36r
网站预览图:
index.html代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>学成在线首页</title>
<link rel="stylesheet" href="../学成在线/css/style.css">
</head>
<body>
<!-- 头部区开始 -->
<div class="header w">
<!-- logo部分 -->
<div class="logo"><img src="images/logo.png" alt=""></div>
<!-- 导航栏部分 -->
<div class="nav">
<ul>
<li><a href="">首页</a></li>
<li><a href="">课程</a></li>
<li><a href="">职业规划</a></li>
</ul>
</div>
<!-- 搜索模块 -->
<div class="search">
<input type="text" value="请输入关键词">
<button></button>
</div>
<!-- 用户模块 -->
<div class="user"><img src="images/user.png" alt="" style="vertical-align: middle;"> Botton</div>
</div>
<!-- 头部区结束 -->
<!-- 版心 -->
<div class="banner">
<div class="w">
<div class="subnav">
<ul>
<li><a href="">前端开发 <span>></span></a></li>
<li><a href="">前端开发 <span>></span></a></li>
<li><a href="">前端开发 <span>></span></a></li>
<li><a href="">前端开发 <span>></span></a></li>
<li><a href="">前端开发 <span>></span></a></li>
<li><a href="">前端开发 <span>></span></a></li>
<li><a href="">前端开发 <span>></span></a></li>
<li><a href="">前端开发 <span>></span></a></li>
<li><a href="">前端开发 <span>></span></a></li>
</ul>
</div>
<div class="course">
<h2>我的课程表</h2>
<div class="bd">
<ul>
<li>
<h4>继续学习 程序语言设计</h4>
<p>正在学习-使用对象</p>
</li>
<li>
<h4>继续学习 程序语言设计</h4>
<p>正在学习-使用对象</p>
</li>
<li>
<h4>继续学习 程序语言设计</h4>
<p>正在学习-使用对象</p>
</li>
</ul>
<a href="#" class="more">全部课程</a>
</div>
</div>
</div>
</div>
<!-- 精品推荐模块开始 -->
<div class="recommend">
<ul>
<li><a href="">精品推荐</a></li>
<span>|</span>
<li><a href="">Jquery</a></li>
<span>|</span>
<li><a href="">Spark</a></li>
<span>|</span>
<li><a href="">MySQL</a></li>
<span>|</span>
<li><a href="">JavaWeb</a></li>
<span>|</span>
<li><a href="">MySQL</a></li>
<span>|</span>
<li><a href="">JavaWeb</a></li>
<div><a href="">修改兴趣</a></div>
</ul>
</div>
<!-- 精品推荐模块结束 -->
<!-- 精品推荐盒子开始 -->
<div class="recommend_box">
<div class="box_hd">
<h2>精品推荐</h2>
<a href="">查看全部</a>
</div>
<div class="box_fd">
<ul>
<li>
<em class="hot"><img src="images/hot.png" alt=""></em>
<img src="images/box_1.png" alt="">
<div><a href="">Think PHP 5.0 博客系统实战项目演练 </a></div>
<h4><span>高级</span> • 1125人在学习</h4>
</li>
<li>
<em class="new"><img src="images/new.png" alt=""></em>
<img src="images/box_2.png" alt="">
<div><a href="">Android 网络图片加载框架详解 </a></div>
<h4><span>高级</span> • 1125人在学习</h4>
</li>
<li>
<img src="images/box_3.png" alt="">
<div><a href="">Angular 2 最新框架+主流技术+项目实战 </a></div>
<h4><span>高级</span> • 1125人在学习</h4>
</li>
<li>
<img src="images/box_4.png" alt="">
<div><a href="">Android Hybrid APP开发实战 H5+原生!</a></div>
<h4><span>高级</span> • 1125人在学习</h4>
</li>
<li>
<img src="images/box_4.png" alt="">
<div><a href="">Android Hybrid APP开发实战 H5+原生!</a></div>
<h4><span>高级</span> • 1125人在学习</h4>
</li>
<li>
<em class="hot"><img src="images/hot.png" alt=""></em>
<img src="images/box_1.png" alt="">
<div><a href="">Think PHP 5.0 博客系统实战项目演练 </a></div>
<h4><span>高级</span> • 1125人在学习</h4>
</li>
<li>
<em class="new"><img src="images/new.png" alt=""></em>
<img src="images/box_2.png" alt="">
<div><a href="">Android 网络图片加载框架详解 </a></div>
<h4><span>高级</span> • 1125人在学习</h4>
</li>
<li>
<img src="images/box_3.png" alt="">
<div><a href="">Angular 2 最新框架+主流技术+项目实战 </a></div>
<h4><span>高级</span> • 1125人在学习</h4>
</li>
<li>
<img src="images/box_4.png" alt="">
<div><a href="">Android Hybrid APP开发实战 H5+原生!</a></div>
<h4><span>高级</span> • 1125人在学习</h4>
</li>
<li>
<img src="images/box_4.png" alt="">
<div><a href="">Android Hybrid APP开发实战 H5+原生!</a></div>
<h4><span>高级</span> • 1125人在学习</h4>
</li>
</ul>
</div>
</div>
<!-- 精品推荐盒子结束 -->
<!-- 编程入门盒子开始 -->
<div class="programming w">
<div class="box_hd">
<h2>编程入门</h2>
<ul>
<li>
<a href="">热门</a>
</li>
<li>
<a href="">初级</a>
</li>
<li>
<a href="">中级</a>
</li>
<li>
<a href="">高级</a>
</li>
</ul>
<a href="">查看全部</a>
</div>
<div class="box_left">
<img src="images/box_5.png" alt="">
</div>
<div class="right_1">
<img src="images/box_6.png" alt="">
</div>
<div class="right_2">
<ul>
<li>
<img src="images/box_7.png" alt="">
<div><a href="">Android Hybrid APP开发实战 H5+原生!</a></div>
<h4><span>高级</span> • 1125人在学习</h4>
</li>
<li>
<img src="images/box_8.png" alt="">
<div><a href="">Kami2首页界面切换效果</a></div>
<h4><span>高级</span> • 1125人在学习</h4>
</li>
<li>
<img src="images/box_9.png" alt="">
<div><a href="">Unity Profiler入门 </a></div>
<h4><span>高级</span> • 1125人在学习</h4>
</li>
<li>
<img src="images/box_10.png" alt="">
<div><a href="">Cocos2d-x 引擎源码中的纹理优化 </a></div>
<h4><span>高级</span> • 1125人在学习</h4>
</li>
</ul>
</div>
</div>
<!-- 编程入门盒子结束 -->
<!-- 数据分析师盒子开始 -->
<div class="data_analyst w">
<div class="box_hd">
<h2>数据分析师</h2>
<ul>
<li>
<a href="">热门</a>
</li>
<li>
<a href="">初级</a>
</li>
<li>
<a href="">中级</a>
</li>
<li>
<a href="">高级</a>
</li>
</ul>
<a href="">查看全部</a>
</div>
<div class="box_left">
<img src="images/box_11.png" alt="">
</div>
<div class="right_1">
<img src="images/box_12.png" alt="">
</div>
<div class="right_2">
<ul>
<li>
<img src="images/box_8.png" alt="">
<div><a href="">Kami2首页界面切换效果</a></div>
<h4><span>高级</span> • 1125人在学习</h4>
</li>
<li>
<img src="images/box_7.png" alt="">
<div><a href="">Android Hybrid APP开发实战 H5+原生!</a></div>
<h4><span>高级</span> • 1125人在学习</h4>
</li>
<li>
<img src="images/box_10.png" alt="">
<div><a href="">Cocos2d-x 引擎源码中的纹理优化 </a></div>
<h4><span>高级</span> • 1125人在学习</h4>
</li>
<li>
<img src="images/box_9.png" alt="">
<div><a href="">Unity Profiler入门 </a></div>
<h4><span>高级</span> • 1125人在学习</h4>
</li>
</ul>
</div>
</div>
<!-- 数据分析师盒子结束 -->
<!-- 机器学习工程师盒子开始 -->
<div class="machine_engineer w">
<div class="box_hd">
<h2>数据分析师</h2>
<ul>
<li>
<a href="">热门</a>
</li>
<li>
<a href="">初级</a>
</li>
<li>
<a href="">中级</a>
</li>
<li>
<a href="">高级</a>
</li>
</ul>
<a href="">查看全部</a>
</div>
<div class="box_content">
<ul>
<li>
<img src="images/box_8.png" alt="">
<div><a href="">Kami2首页界面切换效果</a></div>
<h4><span>初级</span> • 125人在学习</h4>
</li>
<li>
<img src="images/box_7.png" alt="">
<div><a href="">Android Hybrid APP开发实战 H5+原生!</a></div>
<h4><span>高级</span> • 11250人在学习</h4>
</li>
<li>
<img src="images/box_10.png" alt="">
<div><a href="">Cocos2d-x 引擎源码中的纹理优化 </a></div>
<h4><span>中级</span> • 178人在学习</h4>
</li>
<li>
<img src="images/box_13.png" alt="">
<div><a href="">微软人工智能-数据分析平台 </a></div>
<h4><span>高级</span> • 5639人在学习</h4>
</li>
<li>
<img src="images/box_9.png" alt="">
<div><a href="">Unity Profiler入门 </a></div>
<h4><span>高级</span> • 1125人在学习</h4>
</li>
</ul>
</div>
</div>
<!-- 机器学习工程师盒子结束 -->
<!-- 前端开发工程师盒子开始 -->
<div class="front_engineer w">
<div class="box_hd">
<h2>前端开发工程师</h2>
<ul>
<li>
<a href="">热门</a>
</li>
<li>
<a href="">初级</a>
</li>
<li>
<a href="">中级</a>
</li>
<li>
<a href="">高级</a>
</li>
</ul>
<a href="">查看全部</a>
</div>
<div class="box_content">
<ul>
<li>
<img src="images/box_13.png" alt="">
<div><a href="">微软人工智能-数据分析平台 </a></div>
<h4><span>高级</span> • 1125人在学习</h4>
</li>
<li>
<img src="images/box_9.png" alt="">
<div><a href="">Unity Profiler入门 </a></div>
<h4><span>高级</span> • 1125人在学习</h4>
</li>
<li>
<img src="images/box_10.png" alt="">
<div><a href="">Cocos2d-x 引擎源码中的纹理优化 </a></div>
<h4><span>高级</span> • 1125人在学习</h4>
</li>
<li>
<img src="images/box_8.png" alt="">
<div><a href="">Kami2首页界面切换效果</a></div>
<h4><span>高级</span> • 1125人在学习</h4>
</li>
<li>
<img src="images/box_7.png" alt="">
<div><a href="">Android Hybrid APP开发实战 H5+原生!</a></div>
<h4><span>高级</span> • 1125人在学习</h4>
</li>
</ul>
</div>
</div>
<!-- 前端开发工程师盒子结束 -->
<!-- footer开始 -->
<div class="footer">
<div class="w">
<div class="copyright">
<img src="images/logo.png" alt="">
<p>学成在线致力于普及中国最好的教育它与中国一流大学和机构合作提供在线课程。<br>
© 2017年XTCG Inc.保留所有权利。-沪ICP备15025210号</p>
<a href="#" class="app">下载APP</a>
</div>
<div class="links">
<dl>
<dt>关于学成网</dt>
<dd><a href="">关于</a></dd>
<dd><a href="">管理团队</a></dd>
<dd><a href="">工作机会</a></dd>
<dd><a href="">客户服务</a></dd>
<dd><a href="">帮助</a></dd>
</dl>
<dl>
<dt>新手指南</dt>
<dd><a href="">如何注册</a></dd>
<dd><a href="">如何选课</a></dd>
<dd><a href="">如何拿到毕业证</a></dd>
<dd><a href="">学分是什么</a></dd>
<dd><a href="">考试未通过怎么办</a></dd>
</dl>
<dl>
<dt>合作伙伴</dt>
<dd><a href="">合作机构</a></dd>
<dd><a href="">合作导师</a></dd>
</dl>
</div>
</div>
</div>
<!-- footer结束 -->
</body>
</html>
css代码:
* {
padding: 0;
margin: 0;
}
body{
background-color: #f3f5f7;
}
.w{
width: 1200px;
margin: auto;
}
.header {
height: 42px;
margin: 30px auto;
}
a{
text-decoration: none;
}
li{
list-style: none;
}
.logo{
float: left;
width: 198px;
height: 42px;
}
.nav{
float: left;
margin-left: 60px;
}
.nav ul li{
float: left;
margin: 0 15px;
}
.nav ul li a{
display: block;
height: 42px;
padding: 0 10px;
line-height: 42px;
font-size: 18px;
color: #050505;
}
.nav ul li a:hover{
border-bottom: 2px solid #00a4ff;
}
.search{
float: left;
margin-left: 60px;
}
.search input{
float: left;
width: 345px;
height: 40px;
border: 1px solid #00a4ff;
color: #bfbfbf;
font-size: 14px;
padding-left: 15px;
}
.search button{
float: left;
width: 50px;
height: 42px;
border: 0;
background: url(../images/btn.png);
}
.user{
float: right;
line-height: 42px;
margin-right: 30px;
font-size: 14px;
color: #666;
}
.banner{
height: 421px;
background-color:#1c036c;
}
.banner .w{
height: 421px;
background: url(../images/banner.png);
}
.subnav{
float: left;
height: 421px;
width: 190px;
background-color: rgb(0,0,0,0.3);
}
.course{
float: right;
width: 230px;
height: 300px;
background-color: #fff;
margin-top: 50px;
}
.course h2{
height: 48px;
background-color: #9bceea;
text-align: center;
line-height: 48px;
font-size: 18px;
color: #fff;
}
.bd{
padding: 0 20px;
}
.bd ul li{
padding: 14px 0;
border-bottom: 1px solid #ccc;
}
.bd ul li h4{
font-size: 16px;
color: #4e4e4e;
}
.bd ul li p{
font-size: 12px;
color: #a5a5a5;
}
.bd .more{
display: block;
height: 38px;
border: 1px solid #00a4ff;
margin-top: 5px;
text-align: center;
line-height: 38px;
color: #00a4ff;
font-weight: 700;
}
.subnav ul li{
height: 45px;
line-height: 45px;
padding: 0 20px;
}
.subnav ul li a{
font-size: 14px;
color: #fff;
}
.subnav ul li a span{
float: right;
}
.subnav ul li a:hover{
color: #00a4ff;
}
.recommend{
height: 60px;
width: 1200px;
margin: auto;
margin-top: 10px;
background: #fff;
box-shadow: 5px 5px 10px -4px rgb(0,0,0,0.3);
}
.recommend ul li {
display: inline-block;
margin-top: 20px;
font-size: 16px;
margin-left: 35px;
}
.recommend ul span{
margin-top: 20px;
margin-left: 35px;
}
.recommend ul li a{
color: black;
}
.recommend ul li a:hover
{
color: #00A4FF;
}
.recommend ul div{
float: right;
margin-right: 25px;
margin-top: 20px;
}
.recommend ul div a{
color: #00A4FF;
}
.recommend_box{
height: 600px;
width: 1200px;
margin: auto;
margin-top: 35px;
}
.box_hd{
height: 21px;
margin-bottom: 20px;
}
.box_hd h2{
float: left;
font-size: 20px;
font-weight: 400;
color: #494949;
}
.box_hd a{
float: right;
font-size: 12px;
font-weight: 400;
margin-right: 32px;
color: #a5a5a5;
line-height: 21px;
}
.recommend_box .box_fd ul{
width: 1215px;
}
.recommend_box .box_fd ul li{
float: left;
position: relative;
height: 271px;
width: 228px;
background-color: #fff;
margin-right: 15px;
margin-bottom: 15px;
}
.recommend_box .box_fd ul li > img{
width: 100%;
}
.hot{
position: absolute;
top: 4px;
right: -4px;
}
.new{
position: absolute;
top: 4px;
right: -4px;
}
.recommend_box .box_fd ul li div{
width: 188px;
height: 40px;
margin-left: 25px;
margin-top: 23px;
}
.recommend_box .box_fd ul li a{
color: #050505;
font-size: 14px;
}
.recommend_box .box_fd ul li h4 span{
color: #ff7c2d;
font-size: 12px;
}
.recommend_box .box_fd ul li h4{
color: #999999;
margin-left: 25px;
margin-top: 20px;
font-size: 12px;
font-weight: 400;
}
.programming{
width: 1200px;
height: 436px;
margin-top: 40px;
}
.box_hd ul{
margin-left: 290px;
}
.box_hd ul li{
float: left;
margin-left: 70px;
}
.box_hd ul li a{
font-size: 16px;
}
.box_hd ul li a:hover{
color: #00a4ff;
}
.box_hd a{
float: right;
line-height: 21px;
}
.box_left{
float: left;
height: 392px;
width: 228px;
}
.right_1{
float: right;
height: 100px;
width: 957px;
margin-left: 15px;
}
.right_2{
float: right;
}
.right_2 ul li{
float: left;
height: 271px;
width: 228px;
background-color: #fff;
margin-top: 23px;
margin-left: 15px;
margin-bottom: 15px;
}
.right_2 ul li img{
width: 100%;
}
.right_2 ul li a{
color: #050505;
font-size: 14px;
}
.right_2 ul li h4 span{
color: #ff7c2d;
font-size: 12px;
}
.right_2 ul li h4{
color: #999999;
margin-left: 25px;
margin-top: 20px;
font-size: 12px;
font-weight: 400;
}
.right_2 ul li div{
width: 188px;
height: 40px;
margin-left: 25px;
margin-top: 23px;
}
.data_analyst{
width: 1200px;
height: 436px;
margin-top: 40px;
}
.machine_engineer{
width: 1215px;
height: 314px;
margin-top: 40px;
}
.box_content ul li{
float: left;
height: 271px;
width: 228px;
background-color: #fff;
margin-right: 15px;
margin-bottom: 15px;
}
.box_content ul li img{
width: 100%;
}
.box_content ul li a{
color: #050505;
font-size: 14px;
}
.box_content ul li h4 span{
color: #ff7c2d;
font-size: 12px;
}
.box_content ul li h4{
color: #999999;
margin-left: 25px;
margin-top: 20px;
font-size: 12px;
font-weight: 400;
}
.box_content ul li div{
width: 188px;
height: 40px;
margin-left: 25px;
margin-top: 23px;
}
.front_engineer{
width: 1215px;
height: 314px;
margin-top: 40px;
}
.footer{
height: 416px;
background-color: #fff;
margin-top: 40px;
}
.footer .copyright{
float: left;
}
.footer .w{
padding-top: 35px;
}
.footer p{
color: #666;
font-size: 12px;
margin: 20px 0 15px 0;
}
.footer .copyright .app{
display: block;
width: 118px;
height: 33px;
text-align: center;
line-height: 33px;
color: #00a4ff;
font-size: 16px;
border: 1px solid #00a4ff;
}
.footer .links{
float: right;
}
.links dl{
float: left;
margin-left: 100px;
}
.links dt{
color: #333;
font-size: 16px;
margin-bottom: 5px;
}
.links dd a{
color: #333;
font-size: 12px;
}