2019-05-31

2019-05-31  本文已影响0人  CC__XX

开班信息
<!DOCTYPE html>
<html lang="en">
<head>
<title>开班信息</title>
<meta charset="utf-8">
<style type="text/css">
*{
margin: 0;
padding: 0;
list-style: none;
}
.box1{
height: 479px;
width: 310px;
border: 1px solid #ddd;
margin: 0 auto;
margin-top: 20px
}
h2{
height: 37px;
width: 310px;
padding-right: 15px;
padding-left: 15px;
background-color: #f5f5f5
border-top:3px solid green;
font-size: 14px;
line-height: 40px;
}

    h2 a{
        color: red;
        display: block;
        float: right;
        font-size: 10px;
    }
    .top2{
        width: 278px;
        height: 180px;
        padding-left: 16px;
        padding-right: 16px;
        font-size: 12px;
        border-bottom: 1px dashed #ddd;
        margin: 0 auto;
    
    }
    .top2 h3{
        font-size: 14px;
        /*padding-left: px;*/
        padding-right: 16px;
        line-height: 50px;

    }
    .top2 a{
        color: black;
        text-decoration: none;
    }
    .top a:hover{
        text-decoration: underline;
        color: red;
    }
    span{
        color: red;
        font-weight: bold;
    }
    .top3{
        font-size: 12px;
        border-bottom: 1px dashed #ddd;
        margin: 0 auto;
    }
    .top3 h3{
        font-size: 14px;
        /*padding-left: px;*/
        padding-right: 16px;
        line-height: 50px;
    }
    .top3 a{
        color: black;
        text-decoration: none;
    }
    li{
        line-height: 25px;
    }
    .abc{
        display: block;
        float: right;
        color: black;
    }
    .bcd{
        display: block;
        float: right;
        color: red;
    }
</style>

</head>
<body>
<div class="box1">
<h2>近期开班
<a href="#">18年面授开发计划</a>
</h2>
<div class="top2">
<h3>
<a href="#">人工智能+python-高薪就业班</a>
</h3>
<ul>
<li><a href="#">开班时间:<span>2018-04-26</span><span class="bcd">预约报名</span></a></li>
<li><a href="#">开班时间:<span>2018-03-23</span><span class="bcd">无座,名额爆满</span></a></li>
<li><a href="#">开班时间:2018-01-23<span class="abc">开班盛况</span></a></li>
<li><a href="#">开班时间:2017-12-20<span class="abc">开班盛况</span></a></li>
<li><a href="#">开班时间:2017-11-18<span class="abc">开班盛况</span></a></li>
</ul>
<div class="top3">
<h3>
<a href="#">Android开发+测试-高薪就业吧</a>
</h3>
<ul>
<li><a href="#">开班时间:<span>2018-04-26</span><span class="bcd">预约报名</span></a></li>
<li><a href="#">开班时间:2018-03-23<span class="abc">开班盛况</span></a></li>
<li><a href="#">开班时间:2018-01-23<span class="abc">开班盛况</span></a></li>
<li><a href="#">开班时间:2017-12-20<span class="abc">开班盛况</span></a></li>
</ul>
</div>
<div class="top4">
<h3>
<a href="#">大数据软件开发-青芒工作室</a>
</h3>
<ul>
<li><a href="#">开班时间:<span>2018-04-26</span><span class="bcd">预约报名</span></a></li>
<li><a href="#">开班时间:2018-03-23<span class="abc">开班盛况</span></a></li>
</ul>
</div>
</div>

</body>
</html>
实现效果


360截图20190531113554938.jpg
上一篇下一篇

猜你喜欢

热点阅读