盒子模型示例

代碼如下:

    <!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閱讀 173,113評論 25 708
  • 用兩張圖告訴你,為什么你的 App 會卡頓? - Android - 掘金 Cover 有什么料? 從這篇文章中你...
    hw1212閱讀 12,869評論 2 59
  • 或許再見,即是一捧黃沙遮掩,你為我抹去塵埃,依稀記得我的容顏,而我,亦記得你的雙眼。 30歲,曾經我以為距離它太遙...
    樂用卡閱讀 385評論 0 0
  • 集合類型 Swift提供了三種主要的集合類型,稱為數組,集合和字典,用于存儲值的集合。數組是有序的值集合。集合是唯...
    Fuuqiu閱讀 800評論 0 0
  • 柯林斯先生準時來了,全家都非??蜌獾亟哟K莻€二十五歲的青年, 高高的個兒,望上去很肥胖。他的氣派端莊而堂皇,...
    初瀾閱讀 268評論 0 0