找到 628 篇文章 關於 CSS 框架

在 Bootstrap 中為元素新增紅色邊框以指示危險

Alex Onsman
更新於 2020年6月18日 12:20:02

1K+ 次瀏覽

要為元素新增紅色邊框,您需要實現 border-danger 類。紅色邊框表示危險,您可以在其中設定危險訊息。實現 border-danger 非常簡單 - 紅色邊框 讓我們看一個使用 border-danger Bootstrap 4 類的示例 -示例線上演示 Bootstrap 示例 .new { width: 120px; height: 120px; margin: 20px; } 矩形帶紅色邊框: 紅色邊框

在 Bootstrap 4 中為元素新增頂部圓角

Amit Diwan
更新於 2020年6月18日 12:21:30

422 次瀏覽

要為元素新增頂部圓角,請在 Bootstrap 4 中使用 rounded-top 類。我以 div 作為元素 -讓我們學習如何為元素新增頂部圓角 -示例線上演示 Bootstrap 示例 .new { width: 80px; height: 80px; background-color: #EE6D1E; margin: 20px; } 圓角 我們有一個帶頂部圓角的矩形:

在 Bootstrap 中在不同螢幕尺寸上將彈性專案對齊到起始位置

Amit Diwan
更新於 2020年6月18日 12:23:08

86 次瀏覽

要將彈性專案在小、中、大、超大螢幕尺寸上對齊,請使用 justify-content-*-start 類。讓我們先看看小螢幕尺寸 - 介面 包 多執行緒 同樣,像以下這樣為中、大、超大螢幕尺寸實現它 -justify-content-md-start:中等螢幕尺寸 justify-content-lg-start:大螢幕尺寸 justify-content-xl-start:超大螢幕尺寸您可以嘗試執行以下程式碼,以在不同螢幕尺寸上將彈性專案對齊到起始位置 -示例線上評分 Bootstrap 示例 Java 主題 介面 包 多執行緒 介面 包 多執行緒 介面 包 多執行緒

Bootstrap 4 .justify-content-*-start 類

Alex Onsman
更新於 2020年6月18日 12:24:56

195 次瀏覽

在 Bootstrap 中使用 justify-content-start 類將內容對齊到開頭。justify-content-*-start 類用於在 Bootstrap 中在不同螢幕尺寸上將內容對齊到開頭,例如在小、中、大螢幕尺寸上 -您可以嘗試執行以下程式碼來實現 justify-content-*-start 類 -示例線上演示 Bootstrap 示例 娛樂 寶萊塢 孟加拉語電影 好萊塢 寶萊塢 孟加拉語電影 好萊塢 寶萊塢 孟加拉語電影 好萊塢

Bootstrap 4 .card-header-tabs 類

Alex Onsman
更新於 2020年6月18日 11:03:31

446 次瀏覽

在 Bootstrap 中使用 card-header-tabs 來設定卡片標題中的導航連結樣式 - Drupal Commerce WooCommerce 標題選項卡如上所示,在無序列表上使用 nav-tabs 和 card-header-tabs 類設定 -讓我們看一個示例來學習如何建立 Bootstrap 4 卡片標題 -示例線上演示 Bootstrap 示例 電子商務技術 Drupal Commerce WooCommerce Prestashop Shopify 在此處新增標題 在此處新增內容

Bootstrap 4 .rounded-top 類

Alex Onsman
更新於 2020年6月18日 11:18:08

283 次瀏覽

在 Bootstarp 4 中使用 rounded-top 類為元素設定頂部圓角。使用此類,我使用相同的類設定了兩個矩形 -還為 div 設定了一個新類來對其進行樣式設定,.new { width: 60px; height: 60px; background-color: #26CF12; margin: 20px; } 您可以嘗試執行以下程式碼來實現 rounded-top 類 -示例線上演示 Bootstrap 示例 .new { width: 60px; height: 60px; background-color: #26CF12; margin: 20px; } 圓角 我們有兩個帶頂部圓角的矩形:

在 Bootstrap 4 中在特定螢幕尺寸上建立內聯彈性容器

Alex Onsman
更新於 2020年6月18日 11:21:00

101 次瀏覽

要建立內聯彈性容器,請在 Bootstrap 中使用 d-inline-flex 類。在 Bootstrap 中使用 d-*-inline-flex 類在特定螢幕尺寸上設定相同的內聯彈性容器 -小螢幕尺寸 小 中等螢幕尺寸 中 大螢幕尺寸 大 讓我們看一個示例來學習如何在特定螢幕尺寸上建立內聯彈性容器 -示例線上演示 Bootstrap 示例 使用內聯彈性 調整瀏覽器視窗大小以檢查效果 d-flex d-sm-flex d-md-flex d-lg-flex d-xl-flex

在 Bootstrap 中為元素新增左側圓角

Alex Onsman
更新於 2020年6月18日 11:23:44

99 次瀏覽

要為元素(如)新增左側圓角,請在 Bootstarp 4 中使用 rounded-left 類。要設定圓角左側 -您可以嘗試執行以下程式碼來實現 rounded-left 類 -示例線上演示 Bootstrap 示例 .one { width: 200px; height: 100px; background-color: #FFFF00; margin: 8px; } 圓角 我們有三個帶左側圓角的矩形:

在 Bootstrap 中在不同螢幕尺寸上將彈性專案對齊到末尾

Alex Onsman
更新於 2020年6月18日 11:27:41

875 次瀏覽

使用 .justify-content-*-end 類在不同螢幕尺寸上將彈性專案對齊到末尾,如下所示 -對於小螢幕尺寸,使用 -justify-content-sm-end對於中等螢幕尺寸,使用 -justify-content-md-end對於大螢幕尺寸,使用 -justify-content-lg-end讓我們看看如何在小、中、大螢幕尺寸上水平對齊彈性專案 -示例線上演示 Bootstrap 示例 茶的種類 紅茶 綠茶 印度茶 紅茶 綠茶 印度茶 紅茶 綠茶 印度茶

Bootstrap 4 .justify-content-*-center 類

Alex Onsman
更新於 2020年6月18日 11:46:54

1K+ 次瀏覽

在 Bootstrap 4 中,使用 justify-content-*-center 類可以將內容在不同螢幕尺寸上居中。對於不同的螢幕尺寸:
justify-content-sm-center:小螢幕尺寸
justify-content-md-center:中等螢幕尺寸
justify-content-lg-center:大螢幕尺寸
justify-content-xl-center:超大螢幕尺寸
讓我們看看如何實現 justify-content-*-center 類:
示例
線上演示       Bootstrap 示例                         車輛           汽車       腳踏車       卡車               汽車       腳踏車       卡車               汽車       腳踏車       卡車               汽車       腳踏車       卡車      

廣告