精品久久久久久亚洲精品_成人午夜网站_www日本高清_亚洲精品久久久久午夜福

卡片(Card)

Bootstrap的卡提供了一個靈活的、可擴展的內(nèi)容容器,其中包含多種變體和選項。

關(guān)于

卡片是一個有彈性且可擴展的內(nèi)容容器。它包含了頁首和頁尾的選項、多樣化的內(nèi)容、上下文的背景顏色以及強大的展示選項。如果你很熟悉Bootstrap 3,那卡片將取代舊有的panel,well和thumbnail。與那些元件類似的功能已經(jīng)都整合到卡片內(nèi)了

例子

卡片被設(shè)計成盡可能的少用一些標記和樣式,但它仍然可以提供許多的控件和自定義。使用flexbox構(gòu)建,它們可以更方便的對齊,并與其它的Bootstrap元件良好混合。預設(shè)中它并沒有margin,所以可以依需求加入spacing通用類別。

以下是一個具有混合內(nèi)容和固定寬度的基本卡片示例。卡片如果沒有固定的寬度,那么它們將自然填充其父元素的全部寬度。這可以透過我們的各種縮放選項輕松調(diào)整。

Placeholder Image cap
Card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Go somewhere
<div class="card" style="width: 18rem;">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>

內(nèi)容類型

卡片支持各種內(nèi)容,包含圖片、文字、清單群組、連接等。以下為卡片支持的示例。

主體

卡片的構(gòu)造塊是.card-body。當你需要卡片中的填充部分時就使用它。

This is some text within a card body.
<div class="card">
<div class="card-body">
This is some text within a card body.
</div>
</div>

<h*>標簽中添加.card-title以使用卡片標題。同樣的,在a標簽中加入.card-link并使連接彼此相鄰。

<h*>標簽中加入.card-subtitle以使用副標題。如果.card-title以及.card-subtitle元件被放在card-body里面,它們將會對齊良好。

Card title
Card subtitle

Some quick example text to build on the card title and make up the bulk of the card's content.

Card link Another link
<div class="card" style="width: 18rem;">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<h6 class="card-subtitle mb-2 text-muted">Card subtitle</h6>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="card-link">Card link</a>
<a href="#" class="card-link">Another link</a>
</div>
</div>

圖片

設(shè)定.card-img-top將會把圖片放在卡片的頂部。使用.card-text可以將文字內(nèi)容可以添加到卡片中。.card-text中的文本也可以用標準的HTML標簽設(shè)計樣式。

Placeholder Image cap

Some quick example text to build on the card title and make up the bulk of the card's content.

<div class="card" style="width: 18rem;">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>

列表群組

使用list-group-flush在卡片內(nèi)建立列表群組。

  • An item
  • A second item
  • A third item
<div class="card" style="width: 18rem;">
<ul class="list-group list-group-flush">
<li class="list-group-item">An item</li>
<li class="list-group-item">A second item</li>
<li class="list-group-item">A third item</li>
</ul>
</div>
Featured
  • An item
  • A second item
  • A third item
<div class="card" style="width: 18rem;">
<div class="card-header">
Featured
</div>
<ul class="list-group list-group-flush">
<li class="list-group-item">An item</li>
<li class="list-group-item">A second item</li>
<li class="list-group-item">A third item</li>
</ul>
</div>
  • An item
  • A second item
  • A third item
<div class="card" style="width: 18rem;">
<ul class="list-group list-group-flush">
<li class="list-group-item">An item</li>
<li class="list-group-item">A second item</li>
<li class="list-group-item">A third item</li>
</ul>
<div class="card-footer">
Card footer
</div>
</div>

混合樣式

混合并搭配多個內(nèi)容形式,用來創(chuàng)建你所需要的卡片。以下示例將圖片樣式、塊、文字樣式以及列表群組全部包裝在一個固定寬度的卡片中。

Placeholder Image cap
Card title

Some quick example text to build on the card title and make up the bulk of the card's content.

  • An item
  • A second item
  • A third item
<div class="card" style="width: 18rem;">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
<ul class="list-group list-group-flush">
<li class="list-group-item">An item</li>
<li class="list-group-item">A second item</li>
<li class="list-group-item">A third item</li>
</ul>
<div class="card-body">
<a href="#" class="card-link">Card link</a>
<a href="#" class="card-link">Another link</a>
</div>
</div>

在卡片內(nèi)添加選擇性的頁首和/或頁尾。

Featured
Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere
<div class="card">
<div class="card-header">
Featured
</div>
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>

卡片頁首的樣式可以透過在<h*>元素添加.card-header來調(diào)整。

Featured
Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere
<div class="card">
<h5 class="card-header">Featured</h5>
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
Quote

A well-known quote, contained in a blockquote element.

Someone famous in Source Title
<div class="card">
<div class="card-header">
Quote
</div>
<div class="card-body">
<blockquote class="blockquote mb-0">
<p>A well-known quote, contained in a blockquote element.</p>
<footer class="blockquote-footer">Someone famous in <cite title="Source Title">Source Title</cite></footer>
</blockquote>
</div>
</div>
Featured
Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere
<div class="card text-center">
<div class="card-header">
Featured
</div>
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
<div class="card-footer text-muted">
2 days ago
</div>
</div>

大小

卡片預設(shè)沒有特定的起始width,除非另有聲明,否則它們的寬度將是100%。可以根據(jù)需求,透過自定義CSS、網(wǎng)格系統(tǒng)、Sass mixins grid或通用類別來調(diào)整。

使用網(wǎng)格

使用網(wǎng)格,根據(jù)需要在列和行中包裝卡片。

Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere
Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere
<div class="row">
<div class="col-sm-6">
<div class="card">
<div class="card-body">
  <h5 class="card-title">Special title treatment</h5>
  <p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
  <a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="card">
<div class="card-body">
  <h5 class="card-title">Special title treatment</h5>
  <p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
  <a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
</div>
</div>

使用通用類別

使用我們的幾個可調(diào)整大小的通用類來快速設(shè)置卡片的寬度。

Card title

With supporting text below as a natural lead-in to additional content.

Button
Card title

With supporting text below as a natural lead-in to additional content.

Button
<div class="card w-75">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Button</a>
</div>
</div>

<div class="card w-50">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Button</a>
</div>
</div>

使用自定義CSS

在樣式表中使用自定義的CSS或使用行內(nèi)樣式設(shè)置寬度。

Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere
<div class="card" style="width: 18rem;">
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>

文字對齊

可以透過文字對齊類別更改任何卡片的整體或特定部分的文本對齊方式。

Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere
Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere
Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere
<div class="card" style="width: 18rem;">
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>

<div class="card text-center" style="width: 18rem;">
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>

<div class="card text-end" style="width: 18rem;">
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>

使用Bootstrap的導航組件在卡片的頁首(或塊)添加一些導航。

Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere
<div class="card text-center">
<div class="card-header">
<ul class="nav nav-tabs card-header-tabs">
<li class="nav-item">
  <a class="nav-link active" aria-current="true" href="#">Active</a>
</li>
<li class="nav-item">
  <a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
  <a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
</li>
</ul>
</div>
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere
<div class="card text-center">
<div class="card-header">
<ul class="nav nav-pills card-header-pills">
<li class="nav-item">
  <a class="nav-link active" href="#">Active</a>
</li>
<li class="nav-item">
  <a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
  <a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
</li>
</ul>
</div>
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>

圖像

卡片包含一些用來處理圖片的選項。選擇在卡片的任一端附加“image caps”,用卡片內(nèi)容覆蓋圖片,或者只是將圖象嵌入到卡中。

Image caps

與頁首或頁尾相似,卡片可以包含頂部或是底部的“Image caps”,即圖片是位于卡片的頂部或是底部。

Placeholder Image cap
Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Last updated 3 mins ago

Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Last updated 3 mins ago

Placeholder Image cap
<div class="card mb-3">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
<p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
<p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
</div>
<img src="..." class="card-img-bottom" alt="...">
</div>

圖像重載

將圖片轉(zhuǎn)換為卡片背景,并疊加卡片的文字。根據(jù)圖片,你可以選擇是否需要額外的樣式或通用類別。

Placeholder Card image
Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Last updated 3 mins ago

<div class="card bg-dark text-white">
<img src="..." class="card-img" alt="...">
<div class="card-img-overlay">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
<p class="card-text">Last updated 3 mins ago</p>
</div>
</div>
請注意,內(nèi)容不應大于圖片的高度。如果內(nèi)容大于圖片,則內(nèi)容將顯示在圖片外面。

水平

結(jié)合使用網(wǎng)格以及通用類別,可以讓卡片以行動友善且響應式的方法呈現(xiàn)水平狀態(tài)。在下面的示例中,我們使用.g-0移除網(wǎng)格的間隙,并使用.col-md-*類別讓卡片在md斷點之后呈現(xiàn)水平。根據(jù)卡片內(nèi)容,將可能會需要一些額外的調(diào)整。

Placeholder Image
Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Last updated 3 mins ago

<div class="card mb-3" style="max-width: 540px;">
<div class="row g-0">
<div class="col-md-4">
<img src="..." alt="...">
</div>
<div class="col-md-8">
<div class="card-body">
  <h5 class="card-title">Card title</h5>
  <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
  <p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
</div>
</div>
</div>
</div>

卡片樣式

卡片包含許多用來自定義背景、邊框、顏色的選項。

背景和顏色

使用文字和背景通用類別來改變卡片的外觀。

Header
Primary card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Secondary card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Success card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Danger card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Warning card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Info card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Light card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Dark card title

Some quick example text to build on the card title and make up the bulk of the card's content.

<div class="card text-white bg-primary mb-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">Primary card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
<div class="card text-white bg-secondary mb-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">Secondary card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
<div class="card text-white bg-success mb-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">Success card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
<div class="card text-white bg-danger mb-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">Danger card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
<div class="card text-dark bg-warning mb-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">Warning card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
<div class="card text-dark bg-info mb-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">Info card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
<div class="card text-dark bg-light mb-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">Light card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
<div class="card text-white bg-dark mb-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">Dark card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
Conveying meaning to assistive technologies

Using color to add meaning only provides a visual indication, which will not be conveyed to users of assistive technologies – such as screen readers. Ensure that information denoted by the color is either obvious from the content itself (e.g. the visible text), or is included through alternative means, such as additional text hidden with the .visually-hidden class.

邊框

使用邊框通用類別來改變卡片的border-color。你也能在.card父層設(shè)置.text-{color}類別,或是如以下示例設(shè)置在卡片內(nèi)容的子集當中。

Header
Primary card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Secondary card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Success card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Danger card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Warning card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Info card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Light card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Header
Dark card title

Some quick example text to build on the card title and make up the bulk of the card's content.

<div class="card border-primary mb-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body text-primary">
<h5 class="card-title">Primary card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
<div class="card border-secondary mb-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body text-secondary">
<h5 class="card-title">Secondary card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
<div class="card border-success mb-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body text-success">
<h5 class="card-title">Success card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
<div class="card border-danger mb-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body text-danger">
<h5 class="card-title">Danger card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
<div class="card border-warning mb-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">Warning card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
<div class="card border-info mb-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">Info card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
<div class="card border-light mb-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">Light card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
<div class="card border-dark mb-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body text-dark">
<h5 class="card-title">Dark card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>

Mixin通用類

也可以依照需求更改卡片頁首、頁尾的邊框,并能使用bg-transparent來移除它們的background-color。

Header
Success card title

Some quick example text to build on the card title and make up the bulk of the card's content.

<div class="card border-success mb-3" style="max-width: 18rem;">
<div class="card-header bg-transparent border-success">Header</div>
<div class="card-body text-success">
<h5 class="card-title">Success card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
<div class="card-footer bg-transparent border-success">Footer</div>
</div>

卡片布局

除了對卡片內(nèi)容進行樣式設(shè)計以外,Bootstrap還提供一些用于卡片排版的選項。目前為止,這些排版選項還不是響應式的。

卡片組

使用卡片群組將一系列卡片呈現(xiàn)為具有等寬、高字段的單一、連接元素。卡片群組由堆疊開始,并透過display: flex;從sm的斷點后開始以統(tǒng)一的尺寸相連接。

Placeholder Image cap
Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Last updated 3 mins ago

Placeholder Image cap
Card title

This card has supporting text below as a natural lead-in to additional content.

Last updated 3 mins ago

Placeholder Image cap
Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.

Last updated 3 mins ago

<div class="card-group">
<div class="card">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
<p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
</div>
</div>
<div class="card">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This card has supporting text below as a natural lead-in to additional content.</p>
<p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
</div>
</div>
<div class="card">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.</p>
<p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
</div>
</div>
</div>

當在卡片群組使用頁尾,它們的內(nèi)容將會自動對齊。

Placeholder Image cap
Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Placeholder Image cap
Card title

This card has supporting text below as a natural lead-in to additional content.

Placeholder Image cap
Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.

<div class="card-group">
<div class="card">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
</div>
<div class="card-footer">
<small class="text-muted">Last updated 3 mins ago</small>
</div>
</div>
<div class="card">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This card has supporting text below as a natural lead-in to additional content.</p>
</div>
<div class="card-footer">
<small class="text-muted">Last updated 3 mins ago</small>
</div>
</div>
<div class="card">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.</p>
</div>
<div class="card-footer">
<small class="text-muted">Last updated 3 mins ago</small>
</div>
</div>
</div>

網(wǎng)格卡片

使用Bootstrap的網(wǎng)格系統(tǒng)以及.row-cols類別來控制每行應該顯示多少網(wǎng)格欄(用于包裝卡片)。以下面的例子來說,.row-cols-1將卡片布置為一欄,而.row-cols-md-2將會從md的斷點后開始將四個卡片設(shè)置為等寬、跨多行。

Placeholder Image cap
Card title

This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Placeholder Image cap
Card title

This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Placeholder Image cap
Card title

This is a longer card with supporting text below as a natural lead-in to additional content.

Placeholder Image cap
Card title

This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

<div class="row row-cols-1 row-cols-md-2 g-4">
<div class="col">
<div class="card">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
  <h5 class="card-title">Card title</h5>
  <p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
</div>
</div>
</div>
<div class="col">
<div class="card">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
  <h5 class="card-title">Card title</h5>
  <p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
</div>
</div>
</div>
<div class="col">
<div class="card">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
  <h5 class="card-title">Card title</h5>
  <p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content.</p>
</div>
</div>
</div>
<div class="col">
<div class="card">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
  <h5 class="card-title">Card title</h5>
  <p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
</div>
</div>
</div>
</div>

更改為.row-cols-3,則會看到第四張卡片被換行。

Placeholder Image cap
Card title

This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Placeholder Image cap
Card title

This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Placeholder Image cap
Card title

This is a longer card with supporting text below as a natural lead-in to additional content.

Placeholder Image cap
Card title

This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

<div class="row row-cols-1 row-cols-md-3 g-4">
<div class="col">
<div class="card">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
  <h5 class="card-title">Card title</h5>
  <p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
</div>
</div>
</div>
<div class="col">
<div class="card">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
  <h5 class="card-title">Card title</h5>
  <p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
</div>
</div>
</div>
<div class="col">
<div class="card">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
  <h5 class="card-title">Card title</h5>
  <p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content.</p>
</div>
</div>
</div>
<div class="col">
<div class="card">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
  <h5 class="card-title">Card title</h5>
  <p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
</div>
</div>
</div>
</div>

如果需要相等高度時,把.h-100添加于卡片上。如果希望卡片預設(shè)就是等高,可以在Sass設(shè)置$card-height: 100%。

Placeholder Image cap
Card title

This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Placeholder Image cap
Card title

This is a short card.

Placeholder Image cap
Card title

This is a longer card with supporting text below as a natural lead-in to additional content.

Placeholder Image cap
Card title

This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

<div class="row row-cols-1 row-cols-md-3 g-4">
<div class="col">
<div class="card h-100">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
  <h5 class="card-title">Card title</h5>
  <p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
</div>
</div>
</div>
<div class="col">
<div class="card h-100">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
  <h5 class="card-title">Card title</h5>
  <p class="card-text">This is a short card.</p>
</div>
</div>
</div>
<div class="col">
<div class="card h-100">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
  <h5 class="card-title">Card title</h5>
  <p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content.</p>
</div>
</div>
</div>
<div class="col">
<div class="card h-100">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
  <h5 class="card-title">Card title</h5>
  <p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
</div>
</div>
</div>
</div>

如同卡片群組,卡片頁尾也會自動對齊。

Placeholder Image cap
Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Placeholder Image cap
Card title

This card has supporting text below as a natural lead-in to additional content.

Placeholder Image cap
Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.

<div class="row row-cols-1 row-cols-md-3 g-4">
<div class="col">
<div class="card h-100">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
  <h5 class="card-title">Card title</h5>
  <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
</div>
<div class="card-footer">
  <small class="text-muted">Last updated 3 mins ago</small>
</div>
</div>
</div>
<div class="col">
<div class="card h-100">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
  <h5 class="card-title">Card title</h5>
  <p class="card-text">This card has supporting text below as a natural lead-in to additional content.</p>
</div>
<div class="card-footer">
  <small class="text-muted">Last updated 3 mins ago</small>
</div>
</div>
</div>
<div class="col">
<div class="card h-100">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
  <h5 class="card-title">Card title</h5>
  <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.</p>
</div>
<div class="card-footer">
  <small class="text-muted">Last updated 3 mins ago</small>
</div>
</div>
</div>
</div>

Masonry

在v4版本我們僅使用CSS技術(shù)來模仿Masonry字段效果,但這樣的技術(shù)帶來了許多不愉快的副作用。如果你想要在v5中使用這種排版,則可以使用Masonry的插件。Mansory并沒有被包括于Bootstrap,但我們有制作一個demo示例來幫助你開始使用它。

Sass

Variables

$card-spacer-y:                     $spacer;
$card-spacer-x:                     $spacer;
$card-title-spacer-y:               $spacer / 2;
$card-border-width:                 $border-width;
$card-border-radius:                $border-radius;
$card-border-color:                 rgba($black, .125);
$card-inner-border-radius:          subtract($card-border-radius, $card-border-width);
$card-cap-padding-y:                $card-spacer-y / 2;
$card-cap-padding-x:                $card-spacer-x;
$card-cap-bg:                       rgba($black, .03);
$card-cap-color:                    null;
$card-height:                       null;
$card-color:                        null;
$card-bg:                           $white;
$card-img-overlay-padding:          $spacer;
$card-group-margin:                 $grid-gutter-width / 2;
返回頂部
精品久久久久久亚洲精品_成人午夜网站_www日本高清_亚洲精品久久久久午夜福

      9000px;">

          99久久99久久精品国产片果冻| 亚洲精品成人精品456| 激情综合网天天干| 亚洲欧美日韩中文字幕一区二区三区| 欧美疯狂做受xxxx富婆| 91麻豆国产在线观看| 成人深夜福利app| 精品一区二区三区蜜桃| 午夜视频一区二区三区| 亚洲精品国产第一综合99久久| 久久久蜜桃精品| 日韩欧美一区二区久久婷婷| 欧美精品一卡二卡| 日本高清视频一区二区| 91美女片黄在线观看91美女| 国产精品18久久久久久久久| 蜜臂av日日欢夜夜爽一区| 亚洲影院久久精品| 成人免费在线视频| 亚洲天堂福利av| 亚洲图片你懂的| 中文字幕一区二| 国产精品色哟哟网站| 国产亚洲欧洲997久久综合| 欧美一级理论性理论a| 欧美一级爆毛片| 日韩欧美国产一区在线观看| 欧美顶级少妇做爰| 91精品国产丝袜白色高跟鞋| 欧美色爱综合网| 91高清在线观看| 欧美日韩午夜影院| 日韩午夜小视频| 欧美α欧美αv大片| 精品国产sm最大网站| 久久亚洲一级片| 国产精品视频第一区| 亚洲欧美日韩一区| 亚洲一区二区三区三| 午夜影院久久久| 经典一区二区三区| 成人午夜在线播放| 在线视频综合导航| 日韩精品一区二区三区蜜臀| 久久久久久久免费视频了| 中文字幕永久在线不卡| 一区二区欧美精品| 婷婷丁香久久五月婷婷| 黄网站免费久久| 99久久婷婷国产综合精品电影| 91猫先生在线| 精品少妇一区二区三区视频免付费| 国产亚洲精品超碰| 亚洲女性喷水在线观看一区| 日韩—二三区免费观看av| 国产成人av网站| 欧美性色综合网| 久久久久久影视| 亚洲国产精品一区二区www在线| 美女精品自拍一二三四| a4yy欧美一区二区三区| 欧美一区二区三区喷汁尤物| 国产精品国产三级国产aⅴ入口 | 国产欧美一区二区三区网站| 亚洲精品久久嫩草网站秘色| 精品一区中文字幕| 欧亚一区二区三区| 久久色视频免费观看| 亚洲综合成人在线视频| 国产在线一区观看| 欧美人牲a欧美精品| 国产精品美女久久久久aⅴ| 亚洲第一成年网| www.日本不卡| 亚洲精品一线二线三线| 亚洲成国产人片在线观看| 国产精品一区二区黑丝| 91精品在线观看入口| 亚洲日本在线看| 国产成人丝袜美腿| 欧美电视剧免费全集观看| 亚洲一级在线观看| 99re这里只有精品视频首页| 久久综合九色综合97_久久久| 亚洲成人激情av| 色综合天天性综合| 国产精品色婷婷久久58| 成人黄色片在线观看| 精品国产免费久久| 喷白浆一区二区| 欧美区在线观看| 亚洲国产日韩a在线播放性色| 97精品久久久午夜一区二区三区| 亚洲国产精品高清| 国内精品不卡在线| 欧美成人精品二区三区99精品| 午夜电影网一区| 欧美精品在线一区二区三区| 亚洲影视在线播放| 欧美性大战久久久久久久蜜臀| 亚洲视频精选在线| 99re热这里只有精品视频| 中文字幕av一区 二区| 菠萝蜜视频在线观看一区| 国产精品情趣视频| av在线不卡观看免费观看| 国产精品每日更新在线播放网址 | 日韩一级大片在线| 免费欧美在线视频| 日韩女优电影在线观看| 久久se这里有精品| 国产欧美中文在线| 国产一区二三区好的| 精品国产网站在线观看| 国产精品一区二区91| 久久久天堂av| 国产老肥熟一区二区三区| 精品对白一区国产伦| 精油按摩中文字幕久久| 国产婷婷色一区二区三区四区| 国产福利一区二区三区在线视频| 国产精品国产a| 91麻豆精品一区二区三区| 亚洲一二三区在线观看| 欧美一区日韩一区| 日本aⅴ免费视频一区二区三区| 日韩三区在线观看| 国产精品一区在线观看乱码| 久久久蜜桃精品| 国产成a人亚洲精| 亚洲精品成人a在线观看| 欧美色倩网站大全免费| 日韩电影在线观看电影| 日韩三级视频在线观看| 日本不卡123| 久久理论电影网| 99久久久国产精品免费蜜臀| 亚洲第一成人在线| 欧美日韩成人综合在线一区二区| 日本一道高清亚洲日美韩| 欧美成人精品3d动漫h| 国产一区二区成人久久免费影院| 亚洲欧美一区二区三区极速播放 | 国产精品理论片在线观看| 色哟哟一区二区三区| 免费成人在线网站| 久久久精品tv| 91丨porny丨中文| 久久精品国产在热久久| 国产精品伦一区| 91精品国产一区二区三区| 不卡一区中文字幕| 午夜国产精品一区| 欧美激情在线一区二区三区| 色综合久久久网| 国产精品一区二区在线看| 亚洲国产日韩av| 国产精品蜜臀在线观看| 一本一道久久a久久精品综合蜜臀| 首页亚洲欧美制服丝腿| 亚洲人成影院在线观看| 日韩一级大片在线| 91黄色激情网站| 国产综合成人久久大片91| 一区二区三区国产豹纹内裤在线| 久久先锋影音av| 91福利社在线观看| 国产·精品毛片| 日韩精品欧美成人高清一区二区| 欧美韩国日本综合| 欧美欧美午夜aⅴ在线观看| 国产成人av电影免费在线观看| 亚洲永久免费av| 国产精品不卡在线| 91精品国产高清一区二区三区蜜臀 | 在线精品国精品国产尤物884a| 国产成人av资源| 日本成人在线看| 亚洲乱码中文字幕综合| 国产精品久久久久久久久快鸭 | 日本久久精品电影| 99麻豆久久久国产精品免费| 久久99精品国产| 爽好久久久欧美精品| 亚洲私人黄色宅男| 国产欧美精品一区aⅴ影院| 欧美xxx久久| 欧美变态tickle挠乳网站| 欧洲视频一区二区| 99久久综合国产精品| 99久久精品免费看国产免费软件| 蓝色福利精品导航| 亚洲色图视频网| 在线观看日韩精品| 91一区二区在线| 国内成人自拍视频| 精品伊人久久久久7777人| 午夜久久久久久电影| 一区二区三区在线免费播放| 一区二区三区不卡在线观看|