学成在线案例

对前面所学知识的巩固。

<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="css/index.css">
</head>

<body>
<!-- 头部 start -->
<div class="header w">
<!-- logo 部分 -->
<div class="logo">
<img src="img/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>
<!-- user -->
<div class="user">
<img src="img/user.png" alt=""> qq-lilei
</div>

</div>
<!-- 头部 end -->
<!-- banner 部分 start -->
<div class="banner">

<!-- 版心 -->
<div class="w">
<!-- 左侧导航栏 -->
<div class="subnav">
<ul>
<li>
<a href="">前端开发 <span> &gt; </span></a>
</li>
<li>
<a href="">前端开发 <span> &gt; </span></a>
</li>
<li>
<a href="">前端开发 <span> &gt; </span></a>
</li>
<li>
<a href="">前端开发 <span> &gt; </span></a>
</li>
<li>
<a href="">前端开发 <span> &gt; </span></a>
</li>
<li>
<a href="">前端开发 <span> &gt; </span></a>
</li>
<li>
<a href="">前端开发 <span> &gt; </span></a>
</li>
<li>
<a href="">前端开发 <span> &gt; </span></a>
</li>
<li>
<a href="">前端开发 <span> &gt; </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>
<!-- banner 部分 end -->
<!-- 精品推荐 start -->
<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>
</ul>

<a href="" class="mod">修改兴趣</a>

</div>
<!-- 精品推荐 end -->
<!-- 精品推荐大模块 start -->
<div class="box w">
<div class="box-hd">
<h3>精品推荐</h3>
<a href="">查看全部</a>
</div>
<div class="box-bd">
<ul class="clearfix">
<li>
<img src="img/pic.png" alt="">
<h4>
Think PHP 5.0 博客系统实战项目演练
</h4>
<div class="info">
<span>高级</span> • 1125人在学习
</div>
</li>
<li>
<img src="img/pic.png" alt="">
<h4>
Think PHP 5.0 博客系统实战项目演练
</h4>
<div class="info">
<span>高级</span> • 1125人在学习
</div>
</li>
<li>
<img src="img/pic.png" alt="">
<h4>
Think PHP 5.0 博客系统实战项目演练
</h4>
<div class="info">
<span>高级</span> • 1125人在学习
</div>
</li>
<li>
<img src="img/pic.png" alt="">
<h4>
Think PHP 5.0 博客系统实战项目演练
</h4>
<div class="info">
<span>高级</span> • 1125人在学习
</div>
</li>
<li>
<img src="img/pic.png" alt="">
<h4>
Think PHP 5.0 博客系统实战项目演练
</h4>
<div class="info">
<span>高级</span> • 1125人在学习
</div>
</li>
<li>
<img src="img/pic.png" alt="">
<h4>
Think PHP 5.0 博客系统实战项目演练
</h4>
<div class="info">
<span>高级</span> • 1125人在学习
</div>
</li>
<li>
<img src="img/pic.png" alt="">
<h4>
Think PHP 5.0 博客系统实战项目演练
</h4>
<div class="info">
<span>高级</span> • 1125人在学习
</div>
</li>
<li>
<img src="img/pic.png" alt="">
<h4>
Think PHP 5.0 博客系统实战项目演练
</h4>
<div class="info">
<span>高级</span> • 1125人在学习
</div>
</li>
<li>
<img src="img/pic.png" alt="">
<h4>
Think PHP 5.0 博客系统实战项目演练
</h4>
<div class="info">
<span>高级</span> • 1125人在学习
</div>
</li>
<li>
<img src="img/pic.png" alt="">
<h4>
Think PHP 5.0 博客系统实战项目演练
</h4>
<div class="info">
<span>高级</span> • 1125人在学习
</div>
</li>
</ul>
</div>
</div>

</body>

</html>
* {
margin: 0;
padding: 0;
}

body {
background-color: #f3f5f7;
}

li {
list-style: none;
}

a {
text-decoration: none;
}

.w {
width: 1200px;
height: auto;
margin: auto;
}

.header {
height: 42px;
margin: 30px auto;
/* background-color: pink; */
}

.logo {
width: 198px;
height: 42px;
float: left;
}

.nav {
float: left;
margin-left: 60px;
}

.nav ul li {
float: left;
margin: 0 15px;
}

.nav ul li a {
display: inline-block;
height: 42px;
padding: 0 10px;
line-height: 42px;
font-size: 18px;
color: #050505;
}

.nav ul li a:hover {
border-bottom: solid;
border-bottom-width: 2px;
border-bottom-color: #00a4ff;
color: #00a4ff;
}

.search {
float: left;
width: 411px;
height: 42px;
/* background-color: skyblue; */
margin-left: 70px;
}

.search input {
float: left;
width: 345px;
height: 40px;
border: 1px solid #00a4ff;
border-right: none;
color: #bfbfbf;
font-size: 14px;
padding-left: 15px;
}

.search button {
float: left;
width: 50px;
height: 42px;
background-color: blue;
border: none;
background: url(../img/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(../img/banner2_20190819_210028.png) no-repeat top center;
}

.subnav {
float: left;
width: 190px;
height: 421px;
background-color: rgba(0, 0, 0, .2);
}

.subnav ul li {
/* width: 190px; */
height: 45px;
line-height: 45px;
padding: 0 20px;
}

.subnav ul li a {
font-size: 14px;
color: #fff;
}

.subnav ul li a:hover {
color: #00A4FF;
}

.subnav ul li a span {
float: right;
}

.course {
float: right;
width: 230px;
height: 300px;
margin-top: 50px;
background-color: #fff;
}

.course h2 {
height: 48px;
background-color: #9bceea;
text-align: center;
font-size: 18px;
line-height: 48px;
color: #fff;
}

.course .bd ul li {
padding: 14px 0;
border-bottom: 1px solid #ccc;
}

.course .bd {
padding: 0 20px;
}

.course .bd ul li h4 {
font-size: 14px;
color: #4e4e4e;
}

.course .bd ul li p {
font-size: 12px;
color: #a5a5a5;
}

.course .bd .more {
display: block;
height: 38px;
margin-top: 5px;
border: 1px solid #00a4ff;
text-align: center;
line-height: 38px;
color: #00a4ff;
font-weight: 900;
}

.goods {
height: 60px;
margin-top: 10px;
background-color: #fff;
box-shadow: 0 2px 3px 3px rgba(0, 0, 0, .1);
line-height: 60px;
}

.goods h3 {
float: left;
margin-left: 30px;
color: #00A4FF;
line-height: 60px;
}

.goods ul {
float: left;
margin-left: 30px;
}

.goods ul li {
float: left;
}

.goods ul li a {
line-height: 60px;
padding: 0 30px;
font-size: 16px;
color: black;
border-left: 1px solid #ccc;
}

.goods .mod {
float: right;
color: #00A4FF;
font-size: 14px;
margin-right: 30px;
}

.box {
height: 615px;
margin-top: 30px;
}

.box-hd {
height: 45px;
}

.box-hd h3 {
float: left;
font-size: 20px;
color: #494949;
}

.box-hd a {
float: right;
font-size: 12px;
color: #a5a5a5;
margin-top: 10px;
margin-right: 30px;
}

.box-bd {
height: 570px;
}

.box-bd ul li {
float: left;
width: 227px;
height: 270px;
margin-right: 15px;
margin-bottom: 15px;
}

.box-bd ul li h4 {
margin: 20px 20px 20px 25px;
font-size: 14px;
font-weight: 400;
}

.box-bd ul li .info {
margin: 0 20px 0 25px;
font-size: 12px;
font-weight: 400;
color: #999999;
}

.box-bd ul li .info span {
color: #ff7c2d;
}

.clearfix:after,
.clearfix:before {
content: "";
display: table;
}

.clearfix:after {
clear: both;
}

.clearfix {
*zoom: 1;
width: 1225px;
}