Day23学成在线网页制作

准备工作:
image

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>学成在线</title>
    <!-- 设置:先清除再设置 -->
    <link rel="stylesheet" href="../CSS/base.CSS">
    <link rel="stylesheet" href="../CSS/index.CSS">

</head>
<body>
    <!-- 头部区域 -->
     <div class="header">
        <div class="wrapper">
            <!-- logo区域 -->
            <div class="logo">
                <h1><a href="#">学成在线</a></h1>
            </div>
            <!-- 导航区域 -->
            <div class="nav">
                <ul>
                <li><a href="#" class="active">首页</a></li>
                <li><a href="#">课程</a></li> 
                <li><a href="#">职业规划</a></li>
                </ul>
            </div>
            <!-- 搜索 -->
             <div class="search">
                <input type="text" placeholder="请输入文本">
                <a href="#"></a>
             </div>
             <!-- 用户 -->
            <div class="user">
                <a href="#"><img src="../uploads/user.png"></a>
                <span>威风的龙</span>
            </div>
        </div>
     </div>
     <!-- banner区域 -->
      <div class="banner">
        <div class="wrapper">
            <div class="left">
                <ul>
                    <li><a href="">前端开发</a></li>
                    <li><a href="">前端开发</a></li>
                    <li><a href="">前端开发</a></li>
                    <li><a href="">前端开发</a></li>
                    <li><a href="">前端开发</a></li>
                    <li><a href="">前端开发</a></li>
                    <li><a href="">前端开发</a></li>
                    <li><a href="">前端开发</a></li>
                    <li><a href="">前端开发</a></li>
                </ul>
            </div>
            <div class="right">
                <h3>我的课程表</h3>
                <div class="content">
                    <dl>
                        <dt>数据可视化课程</dt>
                        <dd><span>正在学习</span>-<strong>echarts使用步骤</strong></dd>
                    </dl>
                    <dl>
                        <dt>Vue3医疗项目课程</dt>
                        <dd><span>正在学习</span>-<strong>认识组合式API</strong></dd>
                    </dl>
                    <dl>
                        <dt>React核心技术课程</dt>
                        <dd><span>正在学习</span>-<strong>rudex配合TS使用</strong></dd>
                    </dl>
                    <a href="#">全部课程</a>
                </div>
            </div>
        </div>
      </div>
      <!-- 精品推荐区域 -->
       <div class="recommend">
        <h3>精品推荐</h3>
        <ul>
            <li><a href="#">HTML</a></li>
            <li><a href="#">CSS</a></li>
            <li><a href="#">JvacScript</a></li>
            <li><a href="#">Node.js</a></li>
            <li><a href="#">Ajax</a></li>
            <li><a href="#">Vue2.0</a></li>
            <li><a href="#">Vue3.0</a></li>
            <li><a href="#">TypeScript</a></li>
            <li><a href="#">React</a></li>
        </ul>
        <a href="#" class="modify">修改兴趣</a>
       </div>
       <!-- 精品课程区域 -->
        <div class="course wrapper">
            <!-- 标题 作为一个公共类,与其他区域公用,可作为模版直接套用-->
        <div class="hd">
            <h3>精品推荐</h3>
            <a href="#" class="more">查看全部</a>
        </div>
            <!-- 内容 -->
        <div class="bd">
            <ul>
                <li>
                <a href="#">
                    <div class="pic"><img src="../uploads/course01.png"></div>
                    <div class="text">
                        <h4>JavaScript数据看板项目实战</h4>
                        <p><span>高级</span> · <i>1125人在学习</i></p>
                    </div>
                </a>
                </li>
                <li>
                <a href="#">
                    <div class="pic"><img src="../uploads/course02.png"></div>
                    <div class="text">
                        <h4>Vue.js实战——面经全端项目</h4>
                        <p><span>高级</span> · <i>5472人在学习</i></p>
                    </div>
                </a>
                </li>
                <li>
                <a href="#">
                    <div class="pic"><img src="../uploads/course03.png"></div>
                    <div class="text">
                        <h4>玩转Vue全家桶,iHRM人力资源项目</h4>
                        <p><span>高级</span> · <i>1354人在学习</i></p>
                    </div>
                </a>
                </li>
                <li>
                <a href="#">
                    <div class="pic"><img src="../uploads/course04.png"></div>
                    <div class="text">
                        <h4>Vue.js实战医疗项目——优医问诊</h4>
                        <p><span>高级</span> · <i>4574人在学习</i></p>
                    </div>
                </a>
                </li>
                <li>
                <a href="#">
                    <div class="pic"><img src="../uploads/course05.png"></div>
                    <div class="text">
                        <h4>小程序实战:小兔鲜电商小程序项目</h4>
                        <p><span>高级</span> · <i>5467人在学习</i></p>
                    </div>
                </a>
                </li>
                <li>
                <a href="#">
                    <div class="pic"><img src="../uploads/course06.png"></div>
                    <div class="text">
                        <h4>前端框架Flutter开发实战</h4>
                        <p><span>高级</span> · <i>1564人在学习</i></p>
                    </div>
                </a>
                </li>
                <li>
                <a href="#">
                    <div class="pic"><img src="../uploads/course07.png"></div>
                    <div class="text">
                        <h4>熟练使用React.js——极客园H5项目</h4>
                        <p><span>高级</span> · <i>6524人在学习</i></p>
                    </div>
                </a>
                </li>
                <li> 
                <a href="#">
                    <div class="pic"><img src="../uploads/course08.png"></div>
                    <div class="text">
                        <h4>熟练使用React.js——极客园PC端项目 </h4>
                        <p><span>高级</span> · <i>2574人在学习</i></p>
                    </div>
                </a>
                </li>
                <li>
                <a href="#">
                    <div class="pic"><img src="../uploads/course09.png"></div>
                    <div class="text">
                        <h4>前端实用技术,Fetch API 实战</h4>
                        <p><span>高级</span> · <i>3541人在学习</i></p>
                    </div>
                </a>
                </li>
                <li>
                <a href="#">
                    <div class="pic"><img src="../uploads/course10.png"></div>
                    <div class="text">
                        <h4>前端高级Node.js零基础入门教程</h4>
                        <p><span>高级</span> · <i>2103人在学习</i></p>
                    </div>
                </a>
                </li>
            
            </ul>
        </div>
        </div>
        <!-- 前端介绍 -->
         <div class="wrapper">
            <!-- 标题 作为一个公共类,与其他区域公用,可作为模版直接套用-->
        <div class="hd">
            <h3>前端开发工程师</h3>
            <ul>
                <li><a href="#" class="active">热门</a></li>
                <li><a href="#">初级</a></li>
                <li><a href="#">中级</a></li>
                <li><a href="#">高级</a></li>
            </ul>
            <a href="#" class="more">查看全部</a>
        </div>
        </div>
        <!-- 内容 -->
         <div class="bd wrapper">
            <div class="left">
                <img src="../uploads/web_left.png">
            </div>
            <div class="right">
                <div class="Top">
                    <img src="../uploads/web_top.png">
                </div>
                <div class="bottom">
                    <ul>
                        <li>
                        <a href="#">
                    <div class="pic"><img src="../uploads/web01.png"></div>
                    <div class="text">
                        <h4>JS高级javaScript进阶面向对象ES6</h4>
                        <p><span>高级</span> · <i>3564人在学习</i></p>
                    </div>
                    </a>
                        </li>
                        <li><a href="#">
                    <div class="pic"><img src="../uploads/web02.png"></div>
                    <div class="text">
                        <h4>零基础玩转微信小程序</h4>
                        <p><span>高级</span> · <i>1664人在学习</i></p>
                    </div>
                    </a>
                        </li>
                        <li><a href="#">
                    <div class="pic"><img src="../uploads/web03.png"></div>
                    <div class="text">
                        <h4>JavaScript基础——语法解析+项目实战</h4>
                        <p><span>高级</span> · <i>12642人在学习</i></p>
                    </div>
                    </a>
                        </li>
                        <li><a href="#">
                    <div class="pic"><img src="../uploads/web04.png"></div>
                    <div class="text">
                        <h4>前端框架Vue2+Vue3全套视频</h4>
                        <p><span>高级</span> · <i>15642人在学习</i></p>
                    </div>
                    </a>
                        </li>
                    </ul>
                </div>
            </div>
         </div>
         <!-- Python介绍 -->
          <div class="hd wrapper">
            <!-- 标题 -->
            <h3>Python+大数据开发</h3>
            <ul>
                <li><a href="#" class="active">热门</a></li>
                <li><a href="#">初级</a></li>
                <li><a href="#">中级</a></li>
                <li><a href="#">高级</a></li>
            </ul>
            <a href="#" class="more">查看全部</a>
        </div>
        <!-- 内容 -->
         <div class="bd wrapper">
            <div class="left">
                <img src="../uploads/web_left.png">
            </div>
            <div class="right">
                <div class="Top">
                    <img src="../uploads/web_top.png">
                </div>
                <div class="bottom">
                    <ul>
                        <li>
                        <a href="#">
                    <div class="pic"><img src="../uploads/python01.png"></div>
                    <div class="text">
                        <h4>Django视频教程_Django入门视频教程</h4>
                        <p><span>高级</span> · <i>23641人在学习</i></p>
                    </div>
                    </a>
                        </li>
                        <li><a href="#">
                    <div class="pic"><img src="../uploads/python02.png"></div>
                    <div class="text">
                        <h4>python实战项目从0开发一个Django博客系统</h4>
                        <p><span>高级</span> · <i>14256人在学习</i></p>
                    </div>
                    </a>
                        </li>
                        <li><a href="#">
                    <div class="pic"><img src="../uploads/python03.png"></div>
                    <div class="text">
                        <h4>Python+大数据进阶教程6天掌握NoSQL实时计算基础</h4>
                        <p><span>高级</span> · <i>15192人在学习</i></p>
                    </div>
                    </a>
                        </li>
                        <li><a href="#">
                    <div class="pic"><img src="../uploads/python04.png"></div>
                    <div class="text">
                        <h4>数据分析入门教程|300分钟用Matplotlib打造疫情展示地图</h4>
                        <p><span>高级</span> · <i>52142人在学习</i></p>
                    </div>
                    </a>
                        </li>
                    </ul>
                </div>
            </div>
         </div>
         <!-- 人工智能开发 -->
          <!-- 标题 -->
          <div class="hd wrapper">
            <h3>人工智能开发</h3>
            <ul>
                <li><a href="#" class="active">热门</a></li>
                <li><a href="#">初级</a></li>
                <li><a href="#">中级</a></li>
                <li><a href="#">高级</a></li>
            </ul>
            <a href="#" class="more">查看全部</a>
        </div>
        <!-- 内容 -->
        <div class="bd wrapper">
            <div class="bottom">
                    <ul>
                        <li>
                        <a href="#">
                    <div class="pic"><img src="../uploads/ai01.png"></div>
                    <div class="text">
                        <h4>4天快速入门Python数据挖掘</h4>
                        <p><span>高级</span> · <i>423241人在学习</i></p>
                    </div>
                    </a>
                        </li>
                        <li><a href="#">
                    <div class="pic"><img src="../uploads/ai02.png"></div>
                    <div class="text">
                        <h4>计算机视觉入门及案例实战</h4>
                        <p><span>高级</span> · <i>56651人在学习</i></p>
                    </div>
                    </a>
                        </li>
                        <li><a href="#">
                    <div class="pic"><img src="../uploads/ai03.png"></div>
                    <div class="text">
                        <h4>AI深度学习自然语言处理NLP零基础入门</h4>
                        <p><span>高级</span> · <i>855413人在学习</i></p>
                    </div>
                    </a>
                        </li>
                        <li><a href="#">
                    <div class="pic"><img src="../uploads/ai05.png"></div>
                    <div class="text">
                        <h4>Python进阶课程-Web基础开发</h4>
                        <p><span>高级</span> · <i>54641人在学习</i></p>
                    </div>
                    </a>
                        </li>
                        <li>
                        <a href="#">
                    <div class="pic"><img src="../uploads/ai06.png"></div>
                    <div class="text">
                        <h4>AI-OpenCV图像处理10小时零基础入门</h4>
                        <p><span>高级</span> · <i>234568人在学习</i></p>
                    </div>
                    </a>
                        </li>
                    </ul>
                </div>
        </div>
        <!-- JavaEE -->
         <div class="hd wrapper">
            <h3>JavaEE</h3>
            <ul>
                <li><a href="#" class="active">热门</a></li>
                <li><a href="#">初级</a></li>
                <li><a href="#">中级</a></li>
                <li><a href="#">高级</a></li>
            </ul>
            <a href="#" class="more">查看全部</a>
        </div>
        <!-- 内容 -->
         <div class="bd wrapper">
            <div class="bottom">
                    <ul>
                        <li>
                        <a href="#">
                    <div class="pic"><img src="../uploads/JAVA01.png"></div>
                    <div class="text">
                        <h4>Mybatis注解开发及</h4>
                        <p><span>高级</span> · <i>34662人在学习</i></p>
                    </div>
                    </a>
                        </li>
                        <li><a href="#">
                    <div class="pic"><img src="../uploads/java02.png"></div>
                    <div class="text">
                        <h4>详细分析LinkedList数据链表的实现原理</h4>
                        <p><span>高级</span> · <i>66225人在学习</i></p>
                    </div>
                    </a>
                        </li>
                        <li><a href="#">
                    <div class="pic"><img src="../uploads/java03.png"></div>
                    <div class="text">
                        <h4>全面深入Mysql数据库优化_java进阶教程</h4>
                        <p><span>高级</span> · <i>46563人在学习</i></p>
                    </div>
                    </a>
                        </li>
                        <li><a href="#">
                    <div class="pic"><img src="../uploads/java04.png"></div>
                    <div class="text">
                        <h4>全面解剖RocketMQ和项目实战_Java进阶教程</h4>
                        <p><span>高级</span> · <i>254613人在学习</i></p>
                    </div>
                    </a>
                        </li>
                        <li>
                        <a href="#">
                    <div class="pic"><img src="../uploads/java05.png"></div>
                    <div class="text">
                        <h4>三天系统学习ZooKeeper</h4>
                        <p><span>高级</span> · <i>546231人在学习</i></p>
                    </div>
                    </a>
                        </li>
                    </ul>
                </div>
        </div>
         <!-- 版权 -->
         <div class="footer">
            <div class="wrapper">
                <div class="left">
                    <a href="#"><img src="../images/logo.png"></a>
                    <p>学成在线致力于普及中国最好的教育它与中国一流大学和机构合作提供在线课程。
© 2017年XTCG Inc.保留所有权利。-沪ICP备15025210号</p>
                    <a href="#" class="download">下载APP</a>
                </div>
                <div class="right">
                    <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>
</body>
</html>
/* 首页CSS样式 */
/* 版心 */
.wrapper{
    margin: 0 auto;
    width: 1200px;
}
/* 头部样式 */
.header{
	height: 100px;
	background-color: #fff;
}

body{
    background-color: #f3f3f3
}
.header .wrapper{
    padding-top: 29px;
    display: flex;

}

.logo a{
    display: block;
    height: 41px;
    width: 195px;
    background-image: url(../images/logo.png);
    font-size: 0;
}
/* 导航 */
.nav{
    margin-left: 102px;
}
.nav ul{
    display: flex;
}
.nav ul li{
    margin-right: 24px;
}
.nav ul a{
    display: block;
    padding: 6px 8px;
    font-size: 19px;
    line-height: 27px;
    color: #333;
}
/* active就是一个类选择器,表示默认选中的a标签是首页 */
.nav li .active,
.nav li a:hover{
    border-bottom: 2px solid #00a4f0;
}
/* 搜索区域 */
.search{
    display: flex;
    margin-left: 64px;
    padding-left: 19px;
    padding-right: 12px;
    height: 40px;
    width: 412px;
    background-color: #f3f5f7;
    border-radius: 20px;
}
.search input{
    flex: 1;
    /* 去除变边框线 */
    border: 0;
    /* 去除光标点击在搜索区域时产生的外边框 */
     outline: none; 
     background-color: transparent;
}
.search input::placeholder{
    font-size: 14px;
    color: #999;
}
.search a{
    align-self: center;
    height: 16px;
    width: 16px;
    background-image: url(../images/search.png);

}
.user {
    margin-left: 30px;
    margin-top: 4px;
}
.user img{
    margin-left: 7px;
    /* 与设置侧轴居中来实现不同是无需再flex的框架下 */
    /* 并且vertical的特性可以使得处在一个行内的元素全部居中 */
    vertical-align: middle;
}
.user span{
    font-size: 16px;
    color: #666;
}

/* banner区域 */
.banner {
    height: 420px;
    background-color: #0092cb;
}
.banner .wrapper{
    display: flex;
    height: 420px;
    justify-content: space-between;
    background-image: url(../uploads/banner.png);
}
/* 侧导航 */
.banner .left{
    padding: 3px 20px;
    height: 420px;
    width: 191px;
    background-color: #005576;
}
.banner .left a{
    /* 块级:宽度是父级的100% */
    display: block;
    height: 46px;
    background: url(../images/right.png) no-repeat right center;
    line-height: 46px;
    font-size: 16px;
    color: #fff;
}
.banner .left a:hover{
    background-image: url(../images/right-hover.png);
    color: #00a4ff;
}

/* 课程表 */
.banner .right{
    margin-top: 60px;
    width: 218px;
    height: 305px;
    background-color: #209dd5;
    border-radius: 10px;
}
.banner .right h3{
    margin-left: 14px;
    margin-top: 21px;
    height: 48px;
    line-height: 48px;
    font-size: 15px;
    color: #ffffff;
    font-weight: 400;
}
.banner .right .content{
    padding: 14px;
    height: 257px;
    width: 218px;
    border-radius: 10px;
    background-color: #fff;
}
.banner .right dl{
    margin-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.banner .right dt{
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;

}
.banner .right dd{
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 16px;
}
.banner .right dd span{
    color: #00a4ff;
}
.banner .right dd strong{
    color: #7d7d7d;
    font-weight: 400;
}
.banner .right a{
    display: block;
    height: 32px;
    background-color: #00a4ff;
    text-align: center;
    line-height: 32px;
    font-size: 14px;
    color: #fff;
    border-radius: 15px;
}
/* 精品推荐区域 */
.recommend{
    display: flex;
	width: 1200px;
	height: 60px;
	background-color: #ffffff;
	box-shadow: 0px 1px 2px 0px rgba(211, 211, 211, 0.5);
    margin: 11px auto;
    padding: 0 20px;
    line-height: 60px;
}
.recommend h3{
    font-size: 18px;
    color: #00a4ff;
    font-weight: 400;
}
.recommend ul{
    /* 出去“精品推荐”和“修改兴趣”的尺寸,父级剩余的尺寸去全部都给ul,实现把修改兴趣挤到最左边 */
    flex: 1;
    display: flex;
}

.recommend ul li a{
    padding: 0 24px;
    border-right: 1px solid #e0e0e0;
    font-size: 18px;
}

.recommend ul li:last-child a{
    border-right: none;
}

.recommend .modify{
    font-size: 16px;
    color: #00a4ff;
}

/* 精品课程区域 */
.course{
    margin-top: 15px;
}

.hd{
    display: flex;
    height: 60px;
    line-height: 60px;
    justify-content: space-between;
}
.hd h3{
    font-size: 21px;
    font-weight: 400;
}
.hd .more{
    padding-right: 20px;
    font-size: 14px;
    color: #999;
    background-image: url(../images/more.png);
    background-repeat: no-repeat;
    background-position: center right;
}


.bd ul{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.bd li{
    margin-bottom: 14px;
    width: 228px;
	height: 271px;
    /* background-color: pink; */
}

.bd li .pic{
    height: 156px;
}

.bd li .text{
    padding: 20px;
    height: 115px;
    background-color: #fff;
}
.bd li .text h4{
    margin-bottom: 13px;
    height: 40px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
}
.bd li .text p{
    font-size: 14px;
    line-height: 20px;
    color: #999;
}
.bd li .text p span{
    color: #fa6400;
}
.bd li .text p i{
    font-style: normal;
}
/* 前端 */
.hd ul{
    display: flex;
}
.hd li{
    margin-right: 60px;
    font-size: 16px;
}
.hd ul li .active{
    color: #00a4f0;
}

.bd{
    display: flex;
}
.bd ul{
    display: flex;
    gap: 15px;
}
.bd .left{
    width: 228px;
    /* background-color: pink; */
}
.bd .right{
    margin-left: 15px;
    width: 957px;
    /* background-color: pink; */
}
.bd .right .Top{
    margin-bottom: 15px;
    height: 100px;
}
.bd  ul{
    display: flex;
}

/* 版权 */
.footer{
    margin-top: 60px;
    padding-top: 60px;
    height: 273px;
    background-color: #fff;
}


.footer .wrapper{
    display: flex;
    justify-content: space-between;
}
.footer .left{
    width: 440px;
}
.footer .left p{
    margin-top: 24px;
    margin-bottom: 14px;
    font-size: 12px;
    line-height: 17px;
    color: #666;
}
.footer .left .download{
    display: block;
    width: 120px;
    height: 36px;
    border: 1px solid #00a4ff;
    text-align: center;
    line-height: 34px;
    font-size: 16px;
    color: #00a4ff;
}
.footer .right{
    display: flex;
} 
.footer .right dl{
    margin-left: 120px;
}
.footer .right dt{
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 23px;
}
.footer .right a{
    font-size: 14px;
    line-height: 24px;
    color: #666666;
}

image
image
image
image

posted @ 2025-11-23 13:43  冰涿  阅读(1)  评论(0)    收藏  举报