中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

bootstrap中怎么實現五列布局

發布時間:2021-07-26 11:38:05 來源:億速云 閱讀:158 作者:Leah 欄目:開發技術

bootstrap中怎么實現五列布局,很多新手對此不是很清楚,為了幫助大家解決這個難題,下面小編將為大家詳細講解,有這方面需求的人可以來學習下,希望你能有所收獲。

我們知道,在使用Bootstrap柵格的時候,我們可以對網頁方便的進行模塊分割。Bootstrap 包含了一個響應式的、移動設備優先的、不固定的網格系統,可以隨著設備或視口大小的增加而適當地擴展到12列。

它包含了用于簡單的布局選項的預定義類,也包含了用于生成更多語義布局的功能強大的混合類。如果要2等分,使用col-md-6即可;要3等分,使用col-md-4即可;但如果我們要5等分或者8等分怎么辦呢?下面的示例是bootstrap五等分布局:

<!DOCTYPE html><html>     <head>        <meta charset="UTF-8">        <!--視口的設置,讓網頁能等比例的縮放到對應設備中-->        <meta name="viewport" content="width=device-width, initial-scale=1.0" />        <!--告訴ie瀏覽器用最新內核去渲染網頁-->        <meta http-equiv="X-UA-Compatible" content="ie=edge" />        <title>Document</title>        <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">         <style type="text/css">            .col-xs-1-5,            .col-sm-1-5,            .col-md-1-5,            .col-lg-1-5 {                position: relative;                min-height: 1px;                padding-right: 10px;                padding-left: 10px;            }                        .col-xs-1-5 {                width: 20%;                float: left;            }                        @media (min-width: 768px) {                .col-sm-1-5 {                    width: 20%;                    float: left;                }            }                        @media (min-width: 992px) {                .col-md-1-5 {                    width: 20%;                    float: left;                }            }                        @media (min-width: 1200px) {                .col-lg-1-5 {                    width: 20%;                    float: left;                }            }        </style>         <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>        <script src="https://cache.yisu.com/upload/information/20201210/269/44422.jpg" />                             <div>                                <div id="">姓名:<span>王婷</span></div>                            </div>                             <div>                                <div id="">性別:<span>女</span></div>                            </div>                             <div>                                <div id="">部門:<span>宣傳部</span></div>                            </div>                        </div>                    </div>                    <div>                        <div class="items text-center">                            <img src="../img/my.jpg" />                             <div>                                <div id="">姓名:<span>王婷</span></div>                            </div>                             <div>                                <div id="">性別:<span>女</span></div>                            </div>                             <div>                                <div id="">部門:<span>宣傳部</span></div>                            </div>                        </div>                    </div>                    <div>                        <div class="items text-center">                            <img src="../img/my.jpg" />                             <div>                                <div id="">姓名:<span>王婷</span></div>                            </div>                             <div>                                <div id="">性別:<span>女</span></div>                            </div>                             <div>                                <div id="">部門:<span>宣傳部</span></div>                            </div>                        </div>                    </div>                    <div>                        <div class="items text-center">                            <img src="../img/my.jpg" />                             <div>                                <div id="">姓名:<span>王婷</span></div>                            </div>                             <div>                                <div id="">性別:<span>女</span></div>                            </div>                             <div>                                <div id="">部門:<span>宣傳部</span></div>                            </div>                        </div>                    </div>                     <div>                        <div class="items text-center">                            <img src="../img/my.jpg" />                             <div>                                <div id="">姓名:<span>王婷</span></div>                            </div>                             <div>                                <div id="">性別:<span>女</span></div>                            </div>                             <div>                                <div id="">部門:<span>宣傳部</span></div>                            </div>                        </div>                    </div>                </div>            </div>        </body> </html>

看完上述內容是否對您有幫助呢?如果還想對相關知識有進一步的了解或閱讀更多相關文章,請關注億速云行業資訊頻道,感謝您對億速云的支持。

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

武平县| 保定市| 宜良县| 两当县| 财经| 申扎县| 泽普县| 遂宁市| 修水县| 于都县| 广西| 五指山市| 莎车县| 长春市| 仁寿县| 稷山县| 新营市| 和林格尔县| 镇平县| 威信县| 元朗区| 右玉县| 顺平县| 金坛市| 凤城市| 克东县| 吴桥县| 罗城| 仁化县| 昭通市| 武汉市| 连城县| 海安县| 思南县| 连云港市| 澄城县| 马鞍山市| 临城县| 苍梧县| 高唐县| 临漳县|