茄子在线看片免费人成视频,午夜福利精品a在线观看,国产高清自产拍在线观看,久久综合久久狠狠综合

    <s id="ddbnn"></s>
  • <sub id="ddbnn"><ol id="ddbnn"></ol></sub>

  • <legend id="ddbnn"></legend><s id="ddbnn"></s>

    css多列布局實現(xiàn)方法大全
    來源:易賢網(wǎng) 閱讀:910 次 日期:2015-01-29 15:17:08
    溫馨提示:易賢網(wǎng)小編為您整理了“css多列布局實現(xiàn)方法大全”,方便廣大網(wǎng)友查閱!

    多列布局在網(wǎng)站應(yīng)用中也是經(jīng)常見到的,今天就分享4中多列布局。

    display:table

    代碼如下:

    <style>

    .table {

    width: auto;

    min-width: 1000px;

    margin: 0 auto;

    padding: 0;

    display:table;

    }

    .tablerow {

    display: table-row;

    }

    .tablecell {

    border: 1px solid red;

    display: table-cell;

    width: 33%;

    }

    </style>

    <div class=table >

    <div class=tablerow >

    <div class=tablecell >

    one

    </div>

    <div class=tablecell >

    two

    </div>

    <div class=tablecell >

    three

    </div>

    </div>

    </div>

    float

    代碼如下:

    <style>

    .row {

    float: left;

    width: 33%;

    border: 1px solid red;

    }

    </style>

    <div class=row >

    one

    </div>

    <div class=row >

    two

    </div>

    <div class=row >

    three

    </div>

    display: inline-block

    代碼如下:

    <style>

    .row {

    display: inline-block;

    width: 32%;

    border: 1px solid red;

    }

    </style>

    <div class=row >

    one

    </div>

    <div class=row >

    two

    </div>

    <div class=row >

    three

    </div>

    column-count

    代碼如下:

    <style>

    .column {

    /* 設(shè)置列數(shù) */

    -moz-column-count:3; /* firefox */

    -webkit-column-count:3; /* safari and chrome */

    column-count:3;

    /* 設(shè)置列之間的間距 */

    -moz-column-gap:40px; /* firefox */

    -webkit-column-gap:40px; /* safari and chrome */

    column-gap:40px;

    /* 設(shè)置列之間的規(guī)則 */

    -moz-column-rule:4px outset #ff0000; /* firefox */

    -webkit-column-rule:4px outset #ff0000; /* safari and chrome */

    column-rule:4px outset #ff0000;

    }

    </style>

    <div class=column></div>

    小結(jié):

    以上代碼都是在chrome上測試,如果使用請注意兼容性,有任何問題都可以提問

    更多信息請查看IT技術(shù)專欄

    更多信息請查看網(wǎng)頁制作
    易賢網(wǎng)手機網(wǎng)站地址:css多列布局實現(xiàn)方法大全
    由于各方面情況的不斷調(diào)整與變化,易賢網(wǎng)提供的所有考試信息和咨詢回復僅供參考,敬請考生以權(quán)威部門公布的正式信息和咨詢?yōu)闇剩?/div>

    2026上岸·考公考編培訓報班

    • 報班類型
    • 姓名
    • 手機號
    • 驗證碼
    關(guān)于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點 | 投訴建議
    工業(yè)和信息化部備案號:滇ICP備2023014141號-1 云南省教育廳備案號:云教ICP備0901021 滇公網(wǎng)安備53010202001879號 人力資源服務(wù)許可證:(云)人服證字(2023)第0102001523號
    聯(lián)系電話:0871-65099533/13759567129 獲取招聘考試信息及咨詢關(guān)注公眾號:hfpxwx
    咨詢QQ:1093837350(9:00—18:00)版權(quán)所有:易賢網(wǎng)