前端练手项目 学成在线

项目打包链接: https://pan.baidu.com/s/1QvAB4wPHAi-BdCaJDwGJkA
提取码: p36r

网站预览图:
前端练手项目 学成在线_第1张图片

前端练手项目 学成在线_第2张图片
前端练手项目 学成在线_第3张图片

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">
        
        <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;"> Bottondiv>
    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="">Jquerya>li>
            <span>|span>
            <li><a href="">Sparka>li>
            <span>|span>
            <li><a href="">MySQLa>li>
            <span>|span>
            <li><a href="">JavaWeba>li>
            <span>|span>
            <li><a href="">MySQLa>li>
            <span>|span>
            <li><a href="">JavaWeba>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>
    
    
    <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">下载APPa>
            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>
    
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;
}

你可能感兴趣的:(前端笔记,动态规划,c语言,算法)