盒子模型示例

代码如下:

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <title>开班信息</title>
    <style type="text/css">

*{
    margin:0;
    padding:0;
  }

 body{
    font:12px/1 宋体;
 }
 .outer{
    width: 300px;
    height: 471px;
/*      background-color: #bfa; */
    /*居中*/
    margin:80px auto;
 }
 .title{
    border-top: 2px #019e8b solid;
    height:36px;
    background-color: #f5f5f5; 
    line-height: 36px;
    padding: 0px 22px 0px 16px;
 }
 .title a{
    float: right;
    color: red;
    font-size: 12px;
 }
 .title h3{
    font: 16px/36px "微软雅黑"; 
 }
 .content{
    border: 1px solid #deddd9;
    padding: 0px 28px 0px 21px;
 }
 .content a:hover{
    color: red;
    text-decoration: underline;
 }
 .content a{
    color: black;
    text-decoration: none;
 }
 .content ul{
    list-style: none;
    border-bottom: 1px dashed #deddd9;

 }
 .content .red-font{
        color: red;
        font-weight: bold;
 }
 .content .right{
    float: right;

    font-weight: bold;
 }
 .content h3{
    margin-top: 15px;
    margin-bottom: 15px;
 }
 .content li{
    margin-bottom: 15px;
 }
 .content .no-border{
    border: none;
 }
    </style>
    </head>
    <body>
    <div class='outer'>

<div class="title">
    <a href="#">18年面授开班计划</a>
    <h3>近期开班</h3>
    
</div>
<div class="content">
    <h3><a href="#">人工智能+Python-高薪就业班</a></h3>
    <ul>
        <li>
            <a class='right' href="#"><span class="red-font">预约报名</span></a>
            <a href="#">开班时间:<span class="red-font"> 2018-04-26 </span></a>
        </li>
        <li>
            <a class='right' href="#"><span class="red-font">无座,名额爆满</span></a>
            <a href="#">开班时间:<span class="red-font"> 2018-03-23 </span></a>
        </li>
        <li>
            <a class='right' href="#">开班盛况</a>
            <a href="#">开班时间:<span> 2018-04-26 </span></a>
        </li>
        <li>
            <a class='right' href="#">开班盛况</a>
            <a href="#">开班时间:<span> 2018-04-26 </span></a>
        </li>
        <li>
            <a class='right' href="#">开班盛况</a>
            <a href="#">开班时间:<span> 2017-11-18 </span></a>
        </li>
    </ul>
    <h3><a href="#">安卓开发加测试</a></h3>
    <ul>
        <li>
            <a class='right' href="#"><span class="red-font">预约报名</span></a>
            <a href="#">开班时间:<span class="red-font"> 2018-04-26 </span></a>
        </li>
        <li>
            <a class='right' href="#">开班盛况</a>
            <a href="#">开班时间:<span> 2018-03-23 </span></a>
        </li>
        <li>
            <a class='right' href="#">开班盛况</a>
            <a href="#">开班时间:<span> 2018-01-23 </span></a>
        </li>
        <li>
            <a class='right' href="#">开班盛况</a>
            <a href="#">开班时间:<span> 2017-12-20 </span></a>
        </li>   
    </ul>
    <h3><a href="#">大数据软件开发-青芒工作室</a></h3>
    <ul class="no-border">
        <li>
            <a class='right' href="#"><span class="red-font">预约报名</span></a>
            <a href="#">开班时间:<span class="red-font"> 2018-04-26 </span></a>
        </li>
        <li>
            <a class='right' href="#">开班盛况</a>
            <a href="#">开班时间:<span> 2018-01-23 </span></a>
        </li>   
    </ul>
   </div>
</body>

</html>

效果图:


12990848-9be14382336f083b.png
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Android 自定义View的各种姿势1 Activity的显示之ViewRootImpl详解 Activity...
    passiontim阅读 174,817评论 25 709
  • 用两张图告诉你,为什么你的 App 会卡顿? - Android - 掘金 Cover 有什么料? 从这篇文章中你...
    hw1212阅读 13,143评论 2 59
  • 或许再见,即是一捧黄沙遮掩,你为我抹去尘埃,依稀记得我的容颜,而我,亦记得你的双眼。 30岁,曾经我以为距离它太遥...
    乐用卡阅读 393评论 0 0
  • 集合类型 Swift提供了三种主要的集合类型,称为数组,集合和字典,用于存储值的集合。数组是有序的值集合。集合是唯...
    Fuuqiu阅读 820评论 0 0
  • 柯林斯先生准时来了,全家都非常客气地接待他。他是个二十五岁的青年, 高高的个儿,望上去很肥胖。他的气派端庄而堂皇,...
    初澜阅读 287评论 0 0