盒子模型示例

代碼如下:

    <!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年面授開班計(jì)劃</a>
    <h3>近期開班</h3>
    
</div>
<div class="content">
    <h3><a href="#">人工智能+Python-高薪就業(yè)班</a></h3>
    <ul>
        <li>
            <a class='right' href="#"><span class="red-font">預(yù)約報(bào)名</span></a>
            <a href="#">開班時(shí)間:<span class="red-font"> 2018-04-26 </span></a>
        </li>
        <li>
            <a class='right' href="#"><span class="red-font">無座,名額爆滿</span></a>
            <a href="#">開班時(shí)間:<span class="red-font"> 2018-03-23 </span></a>
        </li>
        <li>
            <a class='right' href="#">開班盛況</a>
            <a href="#">開班時(shí)間:<span> 2018-04-26 </span></a>
        </li>
        <li>
            <a class='right' href="#">開班盛況</a>
            <a href="#">開班時(shí)間:<span> 2018-04-26 </span></a>
        </li>
        <li>
            <a class='right' href="#">開班盛況</a>
            <a href="#">開班時(shí)間:<span> 2017-11-18 </span></a>
        </li>
    </ul>
    <h3><a href="#">安卓開發(fā)加測(cè)試</a></h3>
    <ul>
        <li>
            <a class='right' href="#"><span class="red-font">預(yù)約報(bào)名</span></a>
            <a href="#">開班時(shí)間:<span class="red-font"> 2018-04-26 </span></a>
        </li>
        <li>
            <a class='right' href="#">開班盛況</a>
            <a href="#">開班時(shí)間:<span> 2018-03-23 </span></a>
        </li>
        <li>
            <a class='right' href="#">開班盛況</a>
            <a href="#">開班時(shí)間:<span> 2018-01-23 </span></a>
        </li>
        <li>
            <a class='right' href="#">開班盛況</a>
            <a href="#">開班時(shí)間:<span> 2017-12-20 </span></a>
        </li>   
    </ul>
    <h3><a href="#">大數(shù)據(jù)軟件開發(fā)-青芒工作室</a></h3>
    <ul class="no-border">
        <li>
            <a class='right' href="#"><span class="red-font">預(yù)約報(bào)名</span></a>
            <a href="#">開班時(shí)間:<span class="red-font"> 2018-04-26 </span></a>
        </li>
        <li>
            <a class='right' href="#">開班盛況</a>
            <a href="#">開班時(shí)間:<span> 2018-01-23 </span></a>
        </li>   
    </ul>
   </div>
</body>

</html>

效果圖:


12990848-9be14382336f083b.png
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • Android 自定義View的各種姿勢(shì)1 Activity的顯示之ViewRootImpl詳解 Activity...
    passiontim閱讀 179,119評(píng)論 25 708
  • 用兩張圖告訴你,為什么你的 App 會(huì)卡頓? - Android - 掘金 Cover 有什么料? 從這篇文章中你...
    hw1212閱讀 14,030評(píng)論 2 59
  • 或許再見,即是一捧黃沙遮掩,你為我抹去塵埃,依稀記得我的容顏,而我,亦記得你的雙眼。 30歲,曾經(jīng)我以為距離它太遙...
    樂用卡閱讀 409評(píng)論 0 0
  • 集合類型 Swift提供了三種主要的集合類型,稱為數(shù)組,集合和字典,用于存儲(chǔ)值的集合。數(shù)組是有序的值集合。集合是唯...
    Fuuqiu閱讀 868評(píng)論 0 0
  • 柯林斯先生準(zhǔn)時(shí)來了,全家都非??蜌獾亟哟?。他是個(gè)二十五歲的青年, 高高的個(gè)兒,望上去很肥胖。他的氣派端莊而堂皇,...
    初瀾閱讀 317評(píng)論 0 0

友情鏈接更多精彩內(nèi)容