91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

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

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

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

三穗县| 刚察县| 永修县| 德清县| 阿鲁科尔沁旗| 荃湾区| 平安县| 保德县| 静安区| 建德市| 嫩江县| 梨树县| 交口县| 梧州市| 乐安县| 伊通| 华蓥市| 宁晋县| 乌审旗| 分宜县| 天台县| 深州市| 尼玛县| 梅河口市| 伊宁市| 凤山市| 永登县| 黔西县| 内江市| 惠水县| 平乡县| 南充市| 历史| 开原市| 始兴县| 南漳县| 灌南县| 彰化市| 嘉荫县| 灵川县| 晋宁县|