学成在线源码与素材链接:https://pan.baidu.com/s/1qd7YK7ekD3HshTmBodOOSQ
提取码:1111
全程手打
html代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" href="../css/index.css">
</head>
<body>
<!-- 头部开始 -->
<div class="header w">
<!-- logo -->
<div class="logo leftfix">
</div>
<!-- nav导航 -->
<div class="nav leftfix">
<ul>
<li><a href="#">首页</a></li>
<li><a href="#">课程</a></li>
<li><a href="#">职业规划</a></li>
</ul>
</div>
<!-- 搜索 -->
<div class="search leftfix">
<input type="text" placeholder="请输入关键词">
<button></button>
</div>
<!-- 用户 -->
<div class="user rightfix">
<img src="../image/user.png" alt="">
<span>qq-leishui</span>
</div>
</div>
<!-- 头部结束 -->
<!-- banner部分 -->
<div class="banner">
<!-- 版心 -->
<div class="w">
<!-- 左nav -->
<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 class="more" href="#">全部课程</a>
</div>
</div>
</div>
</div>
<!-- banner结束 -->
<!-- 购物精选开始 -->
<div class="goods w">
<h3>精品推荐</h3>
<ul>
<li><a href="#">jQuery</a></li>
<li><a href="#">jQuery</a></li>
<li><a href="#">jQuery</a></li>
<li><a href="#">jQuery</a></li>
<li><a href="#">jQuery</a></li>
<li><a href="#">jQuery</a></li>
</ul>
<a class="mod" href="#">修改兴趣</a>
</div>
<!-- 购物精选结束 -->
<!-- 精品推荐开始 -->
<div class="box w">
<div class="box-hd">
<h4>精品推荐</h4>
<a href="#">查看全部</a>
</div>
<!-- 产品 -->
<div class="box-bd clearfix">
<div>
<img src="../image/pic.png" alt="">
<h4>Think PHP 5.0 博客系统实战项目演练</h4>
<div class="info">
<span>高级</span>
? 1125人在学习
</div>
</div>
<div>
<img src="../image/pic.png" alt="">
<h4>Think PHP 5.0 博客系统实战项目演练</h4>
<div class="info">
<span>高级</span>
? 1125人在学习
</div>
</div>
<div>
<img src="../image/pic.png" alt="">
<h4>Think PHP 5.0 博客系统实战项目演练</h4>
<div class="info">
<span>高级</span>
? 1125人在学习
</div>
</div>
<div>
<img src="../image/pic.png" alt="">
<h4>Think PHP 5.0 博客系统实战项目演练</h4>
<div class="info">
<span>高级</span>
? 1125人在学习
</div>
</div>
<div>
<img src="../image/pic.png" alt="">
<h4>Think PHP 5.0 博客系统实战项目演练</h4>
<div class="info">
<span>高级</span>
? 1125人在学习
</div>
</div>
<div>
<img src="../image/pic.png" alt="">
<h4>Think PHP 5.0 博客系统实战项目演练</h4>
<div class="info">
<span>高级</span>
? 1125人在学习
</div>
</div>
<div>
<img src="../image/pic.png" alt="">
<h4>Think PHP 5.0 博客系统实战项目演练</h4>
<div class="info">
<span>高级</span>
? 1125人在学习
</div>
</div>
<div>
<img src="../image/pic.png" alt="">
<h4>Think PHP 5.0 博客系统实战项目演练</h4>
<div class="info">
<span>高级</span>
? 1125人在学习
</div>
</div>
<div>
<img src="../image/pic.png" alt="">
<h4>Think PHP 5.0 博客系统实战项目演练</h4>
<div class="info">
<span>高级</span>
? 1125人在学习
</div>
</div>
<div>
<img src="../image/pic.png" alt="">
<h4>Think PHP 5.0 博客系统实战项目演练</h4>
<div class="info">
<span>高级</span>
? 1125人在学习
</div>
</div>
</div>
</div>
<!-- 精品推荐结束 -->
<!-- footer开始 -->
<div class="footer">
<div class="w">
<!-- 左边 -->
<div class="left">
<img src="../image/logo.png" alt="">
<p>学成在线致力于普及中国最好的教育,它与中国一流大学和机构合作提供在线课程。
<br>
@ 2017年XTCG Inc.保留所有权利。-沪ICP备15025210号
</p>
<a href="#">下载APP</a>
</div>
<!-- 右边 -->
<div class="right">
<dl>
<dt>合作伙伴</dt>
<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>
<dd><a href="#">工作机会</a></dd>
<dd><a href="#">客户服务</a></dd>
<dd><a href="#">帮助</a></dd>
</dl>
</div>
</div>
</div>
<!-- footer结束 -->
</body>
<script src="../js/index.js"></script>
</html>
css代码:
* {
margin: 0;
padding: 0;
}
li {
list-style: none;
}
a {
text-decoration: none;
}
.leftfix {
float: left;
}
.rightfix {
float: right;
}
.clearfix::after {
display: block;
content: "";
height: 0;
overflow: hidden;
clear: both;
}
.clearfix {
zoom: 1;
}
/* 版心 */
.w {
width: 1200px;
margin: auto;
}
body {
background-color: #f3f5f7;
/* height: 3000px; */
}
.header {
height: 42px;
margin: 30px auto;
/* background-color: pink; */
}
.logo {
height: 42px;
width: 198px;
background-image: url(../image/logo.png);
}
.nav {
margin-left: 60px;
}
.nav ul li {
float: left;
}
.nav ul li a {
color: black;
display: block;
height: 42px;
line-height: 42px;
padding: 0 10px;
font-size: 18px;
}
.nav ul li a:hover {
border-bottom: 2px solid #00a4ff;
}
.search {
width: 412px;
height: 42px;
margin-left: 70px;
/* background-color: red; */
}
.search input {
float: left;
width: 345px;
height: 40px;
font-size: 14px;
border: 1px solid #00a4ff;
border-right: 0;
padding-left: 15px;
}
.search button {
float: left;
background: url(../image/btn.png);
width: 50px;
height: 42px;
}
.user {
line-height: 42px;
margin-right: 30px;
font-size: 14px;
color: #666;
}
.user img {
vertical-align: middle;
}
.banner {
height: 421px;
background-color: #1c036c;
}
.banner .w {
height: 421px;
background: url(../image/banner.png) no-repeat top center;
}
.subnav {
float: left;
width: 185px;
height: 421px;
background-color: rgba(0, 0, 0, 0.3);
}
.subnav ul li {
height: 46px;
line-height: 46px;
padding: 0 20px;
}
.subnav ul li a {
color: #fff;
font-size: 14px;
}
.subnav ul li a span {
float: right;
}
.subnav ul li a:hover {
color: #00a4ff;
}
.course {
float: right;
width: 230px;
height: 300px;
margin-top: 50px;
background-color: #fff;
}
.course h2 {
height: 48px;
font-size: 18px;
line-height: 48px;
text-align: center;
background-color: #9bceea;
color: #fff;
}
.course .bd {
padding: 0 20px;
}
.course .bd ul li {
padding: 14px 0;
border-bottom: 1px solid #eaeaea;
}
.course .bd ul li h4 {
font-size: 16px;
color: #4e4e4e;
}
.course .bd ul li p {
font-size: 12px;
color: #a5a5a5;
}
.more {
display: block;
width: 198px;
height: 38px;
margin-top: 5px;
line-height: 38px;
text-align: center;
border: 1px solid #22b0ff;
color: #00a4ff;
font-size: 16px;
font-weight: 700;
}
.goods {
height: 60px;
line-height: 60px;
margin-top: 10px;
box-shadow: 0px 2px 4px 4px rgba(0, 0, 0, 0.1);
}
.goods h3 {
float: left;
font-size: 16px;
color: #22b0ff;
margin: 0 30px;
}
.goods ul {
float: left;
}
.goods ul li {
float: left;
height: 30px;
line-height: 30px;
padding: 0 30px;
margin-top: 15px;
border-left: 1px solid black;
}
.goods ul li a {
color: #000;
}
.goods .mod {
float: right;
margin-right: 30px;
font-size: 14px;
color: #00a4ff
}
.box {
margin-top: 30px;
}
.box-hd {
height: 40px;
}
.box .box-hd h4 {
float: left;
font-size: 20px;
}
.box-hd a {
float: right;
margin-right: 30px;
margin-top: 10px;
font-size: 12px;
color: #a5a5a5;
}
.box-bd {
width: 1225px;
}
.box-bd>div {
float: left;
width: 228px;
height: 270px;
margin: 0 15px 15px 0;
background-color: #fff;
}
.box-bd>div img {
width: 100%;
}
.box-bd>div h4 {
font-size: 14px;
padding: 20px 20px 20px 25px;
color: #050505;
font-weight: 400;
}
.box-bd .info {
margin: 0 20px 0 25px;
font-size: 12px;
color: #999;
}
.box-bd .info span {
color: #ff7c2d;
}
.footer {
height: 417px;
background-color: #fff;
margin-top: 40px;
}
.footer .w .left {
margin-top: 30px;
float: left;
}
.footer .w .left p {
margin: 20px 0px 10px;
font-size: 12px;
color: #666;
}
.footer .w .right {
margin-top: 30px;
float: right;
}
.footer .w .left a {
display: block;
width: 120px;
height: 36px;
border: 1px solid #00a4ff;
color: #00a4ff;
line-height: 36px;
text-align: center;
}
.footer .right dt {
height: 24px;
font-size: 16px;
line-height: 24px;
color: #6e6e6e;
margin-bottom: 7px;
}
.footer .right a {
font-size: 12px;
color: #333;
}
.footer .right dl {
float: right;
margin-left: 120px;
}
感谢大家的阅读,如有不对的地方,可以向我提出,感谢大家!