Source

Daim npav

Bootstrap's phaib muab cov ntsiab lus hloov tau yooj yim thiab txuas ntxiv nrog ntau yam sib txawv thiab kev xaiv.

Txog

Ib daim npav yog ib lub thawv ntim tau yooj yim thiab nthuav dav. Nws suav nrog cov kev xaiv rau headers thiab footers, ntau yam ntawm cov ntsiab lus, cov ntsiab lus tom qab xim, thiab cov kev xaiv muaj zog. Yog tias koj paub txog Bootstrap 3, phaib hloov peb cov vaj huam sib luag qub, qhov dej, thiab cov duab me me. Kev ua haujlwm zoo sib xws rau cov khoom siv no muaj xws li cov chav kawm hloov kho rau daim npav.

Piv txwv

Daim npav tau tsim nrog me me cim thiab cov qauv raws li qhov ua tau, tab sis tseem tswj kom xa ib tuj ntawm kev tswj thiab kev hloov kho. Ua nrog flexbox, lawv muab kev sib dhos yooj yim thiab sib xyaw zoo nrog lwm cov khoom siv Bootstrap. Lawv tsis muaj marginlos ntawm lub neej ntawd, yog li siv cov khoom siv sib nrug raws li xav tau.

Hauv qab no yog ib qho piv txwv ntawm daim npav yooj yim nrog cov ntsiab lus sib xyaw thiab qhov dav ruaj khov. Daim npav tsis muaj qhov dav ruaj khov pib, yog li lawv yuav ib txwm sau tag nrho qhov dav ntawm nws niam txiv lub ntsiab. Qhov no tau yooj yim kho nrog peb ntau yam kev xaiv sizing .

Placeholder Image cap
Daim npav npe

Qee cov ntawv piv txwv ceev los tsim cov npe ntawm daim npav thiab ua kom muaj ntau ntawm daim npav cov ntsiab lus.

Mus qhov twg
<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>

Cov ntsiab lus hom

Daim npav txhawb ntau cov ntsiab lus, suav nrog cov duab, ntawv nyeem, npe pawg, txuas, thiab ntau dua. Hauv qab no yog cov piv txwv ntawm qhov kev txhawb nqa.

Lub cev

Lub tsev thaiv ntawm ib daim npav yog lub .card-body. Siv nws thaum twg koj xav tau ib qho padded seem hauv daim npav.

Nov yog qee cov ntawv hauv daim npav lub cev.
<div class="card">
  <div class="card-body">
    This is some text within a card body.
  </div>
</div>

Daim npav lub npe yog siv los ntawm kev ntxiv .card-titlerau ib <h*>daim ntawv. Nyob rau hauv tib txoj kev, txuas ntxiv thiab muab tso rau ib sab los ntawm kev ntxiv .card-linkrau ib <a>daim ntawv.

Subtitles yog siv los ntawm kev ntxiv ib .card-subtitlelub <h*>cim npe. Yog hais tias cov khoom .card-titlethiab cov .card-subtitlekhoom raug muab tso rau hauv ib .card-bodyyam khoom, daim npav lub npe thiab subtitle tau ua raws li zoo.

Daim npav npe
Daim npav subtitle

Qee cov ntawv piv txwv ceev los tsim cov npe ntawm daim npav thiab ua kom muaj ntau ntawm daim npav cov ntsiab lus.

Daim npav txuas Lwm qhov txuas
<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>

Duab

.card-img-toptso ib daim duab rau saum daim npav. Nrog .card-text, ntawv tuaj yeem ntxiv rau daim npav. Cov ntawv hauv .card-textkuj tuaj yeem tsim nrog cov qauv HTML cim npe.

Placeholder Image cap

Qee cov ntawv piv txwv ceev los tsim cov npe ntawm daim npav thiab ua kom muaj ntau ntawm daim npav cov ntsiab lus.

<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>

Sau pawg

Tsim cov npe ntawm cov ntsiab lus nyob rau hauv ib daim npav nrog cov pab pawg flush.

  • Cras justo odio
  • Dapibus ac facilisis nyob rau hauv
  • Vestibulum thiab eros
<div class="card" style="width: 18rem;">
  <ul class="list-group list-group-flush">
    <li class="list-group-item">Cras justo odio</li>
    <li class="list-group-item">Dapibus ac facilisis in</li>
    <li class="list-group-item">Vestibulum at eros</li>
  </ul>
</div>
Featured
  • Cras justo odio
  • Dapibus ac facilisis nyob rau hauv
  • Vestibulum thiab eros
<div class="card" style="width: 18rem;">
  <div class="card-header">
    Featured
  </div>
  <ul class="list-group list-group-flush">
    <li class="list-group-item">Cras justo odio</li>
    <li class="list-group-item">Dapibus ac facilisis in</li>
    <li class="list-group-item">Vestibulum at eros</li>
  </ul>
</div>

Chav dej dab dej

Sib tov thiab phim ntau hom ntsiab lus los tsim daim npav koj xav tau, lossis pov txhua yam hauv qhov ntawd. Qhia hauv qab no yog cov qauv duab, thaiv, cov ntawv sau, thiab ib pawg npe-tag nrho qhwv hauv daim npav qhov dav.

Placeholder Image cap
Daim npav npe

Qee cov ntawv piv txwv ceev los tsim cov npe ntawm daim npav thiab ua kom muaj ntau ntawm daim npav cov ntsiab lus.

  • Cras justo odio
  • Dapibus ac facilisis nyob rau hauv
  • Vestibulum thiab eros
<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">Cras justo odio</li>
    <li class="list-group-item">Dapibus ac facilisis in</li>
    <li class="list-group-item">Vestibulum at eros</li>
  </ul>
  <div class="card-body">
    <a href="#" class="card-link">Card link</a>
    <a href="#" class="card-link">Another link</a>
  </div>
</div>

Ntxiv ib qho kev xaiv header thiab / lossis footer hauv daim npav.

Featured
Kev kho lub npe tshwj xeeb

Nrog kev txhawb nqa cov ntawv hauv qab no raws li lub ntuj tsim ua rau cov ntsiab lus ntxiv.

Mus qhov twg
<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>

Daim npav headers tuaj yeem tsim tau los ntawm kev ntxiv .card-headerrau <h*>cov ntsiab lus.

Featured
Kev kho lub npe tshwj xeeb

Nrog kev txhawb nqa cov ntawv hauv qab no raws li lub ntuj tsim ua rau cov ntsiab lus ntxiv.

Mus qhov twg
<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>
Nqe lus

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat ante.

Ib tug neeg nto moo nyob rau hauv Lub Npe Lub Npe
<div class="card">
  <div class="card-header">
    Quote
  </div>
  <div class="card-body">
    <blockquote class="blockquote mb-0">
      <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
      <footer class="blockquote-footer">Someone famous in <cite title="Source Title">Source Title</cite></footer>
    </blockquote>
  </div>
</div>
Featured
Kev kho lub npe tshwj xeeb

Nrog kev txhawb nqa cov ntawv hauv qab no raws li lub ntuj tsim ua rau cov ntsiab lus ntxiv.

Mus qhov twg
<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>

Qhov loj me

Daim npav xav tias tsis muaj qhov tshwj xeeb widthlos pib, yog li lawv yuav yog 100% dav tshwj tsis yog hais tias lwm yam. Koj tuaj yeem hloov qhov no raws li xav tau nrog kev cai CSS, chav kawm kab sib chaws, kab sib chaws Sass mixins, lossis cov khoom siv hluav taws xob.

Siv daim phiaj markup

Siv daim phiaj, qhwv daim npav hauv kab thiab kab raws li xav tau.

Kev kho lub npe tshwj xeeb

Nrog kev txhawb nqa cov ntawv hauv qab no raws li lub ntuj tsim ua rau cov ntsiab lus ntxiv.

Mus qhov twg
Kev kho lub npe tshwj xeeb

Nrog kev txhawb nqa cov ntawv hauv qab no raws li lub ntuj tsim ua rau cov ntsiab lus ntxiv.

Mus qhov twg
<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>

Kev siv hluav taws xob

Siv peb txhais tes ntawm cov khoom siv uas muaj qhov loj me los teeb tsa daim npav qhov dav sai.

Daim npav npe

Nrog kev txhawb nqa cov ntawv hauv qab no raws li lub ntuj tsim ua rau cov ntsiab lus ntxiv.

Khawm
Daim npav npe

Nrog kev txhawb nqa cov ntawv hauv qab no raws li lub ntuj tsim ua rau cov ntsiab lus ntxiv.

Khawm
<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>

Siv kev cai CSS

Siv kev cai CSS hauv koj daim ntawv teev cov style lossis ua inline styles los teeb qhov dav.

Kev kho lub npe tshwj xeeb

Nrog kev txhawb nqa cov ntawv hauv qab no raws li lub ntuj tsim ua rau cov ntsiab lus ntxiv.

Mus qhov twg
<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>

Cov ntawv nyeem alignment

Koj tuaj yeem hloov pauv cov ntawv nyeem ntawm txhua daim npav-hauv tag nrho lossis ib qho tshwj xeeb-nrog rau peb cov ntawv nyeem cov chav kawm .

Kev kho lub npe tshwj xeeb

Nrog kev txhawb nqa cov ntawv hauv qab no raws li lub ntuj tsim ua rau cov ntsiab lus ntxiv.

Mus qhov twg
Kev kho lub npe tshwj xeeb

Nrog kev txhawb nqa cov ntawv hauv qab no raws li lub ntuj tsim ua rau cov ntsiab lus ntxiv.

Mus qhov twg
Kev kho lub npe tshwj xeeb

Nrog kev txhawb nqa cov ntawv hauv qab no raws li lub ntuj tsim ua rau cov ntsiab lus ntxiv.

Mus qhov twg
<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-right" 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>

Ntxiv qee qhov kev taw qhia rau daim npav header (lossis thaiv) nrog Bootstrap's nav Cheebtsam .

Kev kho lub npe tshwj xeeb

Nrog kev txhawb nqa cov ntawv hauv qab no raws li lub ntuj tsim ua rau cov ntsiab lus ntxiv.

Mus qhov twg
<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" 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>
Kev kho lub npe tshwj xeeb

Nrog kev txhawb nqa cov ntawv hauv qab no raws li lub ntuj tsim ua rau cov ntsiab lus ntxiv.

Mus qhov twg
<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>

Duab

Daim npav suav nrog ob peb txoj kev xaiv rau kev ua haujlwm nrog cov duab. Xaiv los ntawm qhov txuas ntxiv "cov duab caps" nyob rau ntawm qhov kawg ntawm daim npav, muab cov duab sib tshooj nrog cov ntsiab lus ntawm daim npav, lossis tsuas yog muab cov duab tso rau hauv daim npav.

Duab caps

Zoo ib yam li headers thiab footers, phaib tuaj yeem suav nrog sab saum toj thiab hauv qab "cov duab caps" - cov duab saum lossis hauv qab ntawm daim npav.

Placeholder Image cap
Daim npav npe

Qhov no yog daim npav dav dua nrog cov ntawv txhawb nqa hauv qab no raws li kev coj mus rau cov ntsiab lus ntxiv. Cov ntsiab lus no ntev me ntsis.

Hloov tshiab kawg 3 mins dhau los

Daim npav npe

Qhov no yog daim npav dav dua nrog cov ntawv txhawb nqa hauv qab no raws li kev coj mus rau cov ntsiab lus ntxiv. Cov ntsiab lus no ntev me ntsis.

Hloov tshiab kawg 3 mins dhau los

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-top" alt="...">
</div>

Duab overlays

Tig ib daim duab rau hauv daim npav keeb kwm yav dhau thiab hla koj daim npav cov ntawv. Nyob ntawm daim duab, koj tuaj yeem lossis tsis xav tau cov qauv lossis cov khoom siv ntxiv.

Placeholder Card image
Daim npav npe

Qhov no yog daim npav dav dua nrog cov ntawv txhawb nqa hauv qab no raws li kev coj mus rau cov ntsiab lus ntxiv. Cov ntsiab lus no ntev me ntsis.

Hloov tshiab kawg 3 mins dhau los

<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>

Nco ntsoov tias cov ntsiab lus yuav tsum tsis txhob loj dua qhov siab ntawm daim duab. Yog tias cov ntsiab lus loj dua li daim duab, cov ntsiab lus yuav raug tso tawm sab nraum daim duab.

Daim npav hom

Daim npav muaj ntau yam kev xaiv rau customizing lawv keeb kwm yav dhau, ciam teb, thiab xim.

Tom qab thiab xim

Siv cov ntawv nyeem thiab keeb kwm yav dhau los hloov cov duab ntawm daim npav.

Lub taub hau
Thawj daim npav npe

Qee cov ntawv piv txwv ceev los tsim cov npe ntawm daim npav thiab ua kom muaj ntau ntawm daim npav cov ntsiab lus.

Lub taub hau
Thib ob daim npav npe

Qee cov ntawv piv txwv ceev los tsim cov npe ntawm daim npav thiab ua kom muaj ntau ntawm daim npav cov ntsiab lus.

Lub taub hau
Success card npe

Qee cov ntawv piv txwv ceev los tsim cov npe ntawm daim npav thiab ua kom muaj ntau ntawm daim npav cov ntsiab lus.

Lub taub hau
Danger card npe

Qee cov ntawv piv txwv ceev los tsim cov npe ntawm daim npav thiab ua kom muaj ntau ntawm daim npav cov ntsiab lus.

Lub taub hau
Warning card title

Qee cov ntawv piv txwv ceev los tsim cov npe ntawm daim npav thiab ua kom muaj ntau ntawm daim npav cov ntsiab lus.

Lub taub hau
Cov ntaub ntawv daim npav npe

Qee cov ntawv piv txwv ceev los tsim cov npe ntawm daim npav thiab ua kom muaj ntau ntawm daim npav cov ntsiab lus.

Lub taub hau
Lub teeb daim ntawv npe

Qee cov ntawv piv txwv ceev los tsim cov npe ntawm daim npav thiab ua kom muaj ntau ntawm daim npav cov ntsiab lus.

Lub taub hau
Tsaus daim npav npe

Qee cov ntawv piv txwv ceev los tsim cov npe ntawm daim npav thiab ua kom muaj ntau ntawm daim npav cov ntsiab lus.

<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-white 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-white 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 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>
Qhia lub ntsiab lus rau kev pab technologies

Siv cov xim los ntxiv cov ntsiab lus tsuas yog muab qhov pom kev pom, uas yuav tsis raug xa mus rau cov neeg siv cov thev naus laus zis pab - xws li cov ntawv nyeem. Xyuas kom meej tias cov ntaub ntawv qhia los ntawm cov xim yog pom tseeb los ntawm cov ntsiab lus nws tus kheej (xws li cov ntawv pom), lossis suav nrog lwm txoj kev, xws li cov ntawv ntxiv zais nrog cov .sr-onlychav kawm.

Ciam teb

Siv cov khoom siv ciam teb hloov pauv border-colorntawm daim npav xwb. Nco ntsoov tias koj tuaj yeem muab .text-{color}cov chav kawm tso rau ntawm niam txiv .cardlossis ib feem ntawm daim npav cov ntsiab lus raws li qhia hauv qab no.

Lub taub hau
Thawj daim npav npe

Qee cov ntawv piv txwv ceev los tsim cov npe ntawm daim npav thiab ua kom muaj ntau ntawm daim npav cov ntsiab lus.

Lub taub hau
Thib ob daim npav npe

Qee cov ntawv piv txwv ceev los tsim cov npe ntawm daim npav thiab ua kom muaj ntau ntawm daim npav cov ntsiab lus.

Lub taub hau
Success card npe

Qee cov ntawv piv txwv ceev los tsim cov npe ntawm daim npav thiab ua kom muaj ntau ntawm daim npav cov ntsiab lus.

Lub taub hau
Danger card npe

Qee cov ntawv piv txwv ceev los tsim cov npe ntawm daim npav thiab ua kom muaj ntau ntawm daim npav cov ntsiab lus.

Lub taub hau
Warning card title

Qee cov ntawv piv txwv ceev los tsim cov npe ntawm daim npav thiab ua kom muaj ntau ntawm daim npav cov ntsiab lus.

Lub taub hau
Cov ntaub ntawv daim npav npe

Qee cov ntawv piv txwv ceev los tsim cov npe ntawm daim npav thiab ua kom muaj ntau ntawm daim npav cov ntsiab lus.

Lub taub hau
Lub teeb daim ntawv npe

Qee cov ntawv piv txwv ceev los tsim cov npe ntawm daim npav thiab ua kom muaj ntau ntawm daim npav cov ntsiab lus.

Lub taub hau
Tsaus daim npav npe

Qee cov ntawv piv txwv ceev los tsim cov npe ntawm daim npav thiab ua kom muaj ntau ntawm daim npav cov ntsiab lus.

<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 text-warning">
    <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 text-info">
    <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>

Mixins cov kev pab cuam

Koj tuaj yeem hloov cov ciam teb ntawm daim npav header thiab footer raws li xav tau, thiab txawm tias tshem lawv background-colornrog .bg-transparent.

Lub taub hau
Success card npe

Qee cov ntawv piv txwv ceev los tsim cov npe ntawm daim npav thiab ua kom muaj ntau ntawm daim npav cov ntsiab lus.

<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>

Daim npav layout

Ntxiv nrog rau styling cov ntsiab lus nyob rau hauv phaib, Bootstrap suav nrog ob peb txoj kev xaiv rau nteg tawm series ntawm phaib. Txog lub sijhawm tam sim no, cov kev xaiv layout no tseem tsis tau teb .

Daim npav pab pawg

Siv cov pab pawg los muab daim npav ua ib qho, txuas nrog cov kab sib npaug thiab qhov siab. Cov pab pawg siv display: flex;los ua kom tiav lawv qhov loj me.

Placeholder Image cap
Daim npav npe

Qhov no yog daim npav dav dua nrog cov ntawv txhawb nqa hauv qab no raws li kev coj mus rau cov ntsiab lus ntxiv. Cov ntsiab lus no ntev me ntsis.

Hloov tshiab kawg 3 mins dhau los

Placeholder Image cap
Daim npav npe

Daim npav no muaj kev txhawb nqa cov ntawv hauv qab no raws li kev coj mus rau hauv cov ntsiab lus ntxiv.

Hloov tshiab kawg 3 mins dhau los

Placeholder Image cap
Daim npav npe

Qhov no yog daim npav dav dua nrog cov ntawv txhawb nqa hauv qab no raws li kev coj mus rau cov ntsiab lus ntxiv. Daim npav no muaj cov ntsiab lus ntev dua li thawj zaug los qhia tias qhov siab sib npaug.

Hloov tshiab kawg 3 mins dhau los

<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>

Thaum siv cov pab pawg nrog cov footers, lawv cov ntsiab lus yuav cia li kab.

Placeholder Image cap
Daim npav npe

Qhov no yog daim npav dav dua nrog cov ntawv txhawb nqa hauv qab no raws li kev coj mus rau cov ntsiab lus ntxiv. Cov ntsiab lus no ntev me ntsis.

Placeholder Image cap
Daim npav npe

Daim npav no muaj kev txhawb nqa cov ntawv hauv qab no raws li kev coj mus rau hauv cov ntsiab lus ntxiv.

Placeholder Image cap
Daim npav npe

Qhov no yog daim npav dav dua nrog cov ntawv txhawb nqa hauv qab no raws li kev coj mus rau cov ntsiab lus ntxiv. Daim npav no muaj cov ntsiab lus ntev dua li thawj zaug los qhia tias qhov siab sib npaug.

<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>

Card decks

Xav tau ib daim npav sib npaug ntawm qhov dav thiab qhov siab uas tsis txuas rau ib leeg? Siv daim card decks.

Placeholder Image cap
Daim npav npe

Qhov no yog daim npav ntev dua nrog cov ntawv txhawb nqa hauv qab no raws li kev coj mus rau cov ntsiab lus ntxiv. Cov ntsiab lus no ntev me ntsis.

Hloov tshiab kawg 3 mins dhau los

Placeholder Image cap
Daim npav npe

Daim npav no muaj kev txhawb nqa cov ntawv hauv qab no raws li kev coj mus rau hauv cov ntsiab lus ntxiv.

Hloov tshiab kawg 3 mins dhau los

Placeholder Image cap
Daim npav npe

Qhov no yog daim npav dav dua nrog cov ntawv txhawb nqa hauv qab no raws li kev coj mus rau cov ntsiab lus ntxiv. Daim npav no muaj cov ntsiab lus ntev dua li thawj zaug los qhia tias qhov siab sib npaug.

Hloov tshiab kawg 3 mins dhau los

<div class="card-deck">
  <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>
      <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>

Ib yam li nrog cov pab pawg, daim npav footers hauv decks yuav cia li kab.

Placeholder Image cap
Daim npav npe

Qhov no yog daim npav dav dua nrog cov ntawv txhawb nqa hauv qab no raws li kev coj mus rau cov ntsiab lus ntxiv. Cov ntsiab lus no ntev me ntsis.

Placeholder Image cap
Daim npav npe

Daim npav no muaj kev txhawb nqa cov ntawv hauv qab no raws li kev coj mus rau hauv cov ntsiab lus ntxiv.

Placeholder Image cap
Daim npav npe

Qhov no yog daim npav dav dua nrog cov ntawv txhawb nqa hauv qab no raws li kev coj mus rau cov ntsiab lus ntxiv. Daim npav no muaj cov ntsiab lus ntev dua li thawj zaug los qhia tias qhov siab sib npaug.

<div class="card-deck">
  <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>

Daim npav kab

Daim npav tuaj yeem raug teeb tsa rau hauv Masonry -zoo li kab nrog CSS nkaus xwb los ntawm kev qhwv lawv hauv .card-columns. Daim npav tau tsim nrog CSS columncov khoom tsis yog flexbox kom yooj yim sib dhos. Daim npav raug txiav txim los ntawm sab saum toj mus rau hauv qab thiab sab laug mus rau sab xis.

Tau taub hau! Koj qhov mileage nrog daim npav kab yuav txawv. Txhawm rau tiv thaiv daim npav hla txhua kab, peb yuav tsum teeb tsa lawv display: inline-blockraws li column-break-inside: avoidtsis yog cov tshuaj tiv thaiv tsis tau.

Placeholder Image cap
Daim npav npe uas qhwv rau kab tshiab

Qhov no yog daim npav ntev dua nrog cov ntawv txhawb nqa hauv qab no raws li kev coj mus rau cov ntsiab lus ntxiv. Cov ntsiab lus no ntev me ntsis.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat ante.

Ib tug neeg nto moo nyob rau hauv Lub Npe Lub Npe
Placeholder Image cap
Daim npav npe

Daim npav no muaj kev txhawb nqa cov ntawv hauv qab no raws li kev coj mus rau hauv cov ntsiab lus ntxiv.

Hloov tshiab kawg 3 mins dhau los

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat.

Ib tug neeg nto moo nyob rau hauv Lub Npe Lub Npe
Daim npav npe

Daim npav no muaj lub npe tsis tu ncua thiab cov kab lus luv luv ntawm cov ntawv hauv qab nws.

Hloov tshiab kawg 3 mins dhau los

Placeholder Card image

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat ante.

Ib tug neeg nto moo nyob rau hauv Lub Npe Lub Npe
Daim npav npe

Nov yog lwm daim npav nrog lub npe thiab txhawb cov ntawv hauv qab no. Daim npav no muaj qee cov ntsiab lus ntxiv los ua kom nws siab me ntsis tag nrho.

Hloov tshiab kawg 3 mins dhau los

<div class="card-columns">
  <div class="card">
    <img src="..." class="card-img-top" alt="...">
    <div class="card-body">
      <h5 class="card-title">Card title that wraps to a new line</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 class="card p-3">
    <blockquote class="blockquote mb-0 card-body">
      <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
      <footer class="blockquote-footer">
        <small class="text-muted">
          Someone famous in <cite title="Source Title">Source Title</cite>
        </small>
      </footer>
    </blockquote>
  </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 bg-primary text-white text-center p-3">
    <blockquote class="blockquote mb-0">
      <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat.</p>
      <footer class="blockquote-footer text-white">
        <small>
          Someone famous in <cite title="Source Title">Source Title</cite>
        </small>
      </footer>
    </blockquote>
  </div>
  <div class="card text-center">
    <div class="card-body">
      <h5 class="card-title">Card title</h5>
      <p class="card-text">This card has a regular title and short paragraphy of text below it.</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>
  <div class="card p-3 text-right">
    <blockquote class="blockquote mb-0">
      <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
      <footer class="blockquote-footer">
        <small class="text-muted">
          Someone famous in <cite title="Source Title">Source Title</cite>
        </small>
      </footer>
    </blockquote>
  </div>
  <div class="card">
    <div class="card-body">
      <h5 class="card-title">Card title</h5>
      <p class="card-text">This is another card with title and supporting text below. This card has some additional content to make it slightly taller overall.</p>
      <p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
    </div>
  </div>
</div>

Daim npav kab kuj tseem tuaj yeem txuas ntxiv thiab kho nrog qee cov lej ntxiv. Qhia hauv qab no yog qhov txuas ntxiv ntawm cov .card-columnschav kawm siv tib CSS peb siv-CSS kab- los tsim cov txheej txheem teb rau kev hloov cov kab ntawv.

.card-columns {
  @include media-breakpoint-only(lg) {
    column-count: 4;
  }
  @include media-breakpoint-only(xl) {
    column-count: 5;
  }
}