SourceDaim npav
Bootstrap's phaib muab cov ntsiab lus hloov tau yooj yim thiab txuas ntxiv nrog ntau yam sib txawv thiab kev xaiv.
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.
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 margin
los 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 .
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
Luam
<div class= "card" style= "width: 18rem;" >
<img class= "card-img-top" src= ".../100px180/" alt= "Card image cap" >
<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>
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 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.
Luam
<div class= "card" >
<div class= "card-body" >
This is some text within a card body.
</div>
</div>
Lub npe, ntawv nyeem, thiab txuas
Daim npav lub npe yog siv los ntawm kev ntxiv .card-title
rau ib <h*>
daim ntawv. Nyob rau hauv tib txoj kev, txuas ntxiv thiab muab tso rau ib sab los ntawm kev ntxiv .card-link
rau ib <a>
daim ntawv.
Subtitles yog siv los ntawm kev ntxiv ib .card-subtitle
lub <h*>
cim npe. Yog hais tias cov khoom .card-title
thiab cov .card-subtitle
khoom raug muab tso rau hauv ib .card-body
yam 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
Luam
<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>
.card-img-top
tso ib daim duab rau saum daim npav. Nrog .card-text
, ntawv tuaj yeem ntxiv rau daim npav. Cov ntawv hauv .card-text
kuj tuaj yeem tsim nrog cov qauv HTML cim 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.
Luam
<div class= "card" style= "width: 18rem;" >
<img class= "card-img-top" src= ".../100px180/?text=Image cap" alt= "Card image cap" >
<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>
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
Luam
<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>
Cras justo odio
Dapibus ac facilisis nyob rau hauv
Vestibulum thiab eros
Luam
<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>
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.
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
Luam
<div class= "card" style= "width: 18rem;" >
<img class= "card-img-top" src= ".../100px180/?text=Image cap" alt= "Card image cap" >
<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.
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
Luam
<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-header
rau <h*>
cov ntsiab lus.
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
Luam
<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>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat ante.
Luam
<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>
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
Luam
<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>
Daim npav xav tias tsis muaj qhov tshwj xeeb width
los 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, 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
Luam
<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>
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
Luam
<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 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
Luam
<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
Luam
<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
Luam
<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= "#" > 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
Luam
<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= "#" > 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>
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.
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.
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
Luam
<div class= "card mb-3" >
<img class= "card-img-top" src= ".../100px180/" alt= "Card image cap" >
<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 class= "card-img-bottom" src= ".../100px180/" alt= "Card image cap" >
</div>
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.
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
Luam
<div class= "card bg-dark text-white" >
<img class= "card-img" src= ".../100px270/#55595c:#373a3c/text:Card image" alt= "Card image" >
<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>
Daim npav muaj ntau yam kev xaiv rau customizing lawv keeb kwm yav dhau, ciam teb, thiab xim.
Siv cov ntawv nyeem thiab keeb kwm yav dhau los hloov cov duab ntawm daim npav.
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.
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.
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.
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.
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.
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 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.
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.
Luam
<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-only
chav kawm.
Siv cov khoom siv ciam teb hloov pauv border-color
ntawm daim npav xwb. Nco ntsoov tias koj tuaj yeem muab .text-{color}
cov chav kawm tso rau ntawm niam txiv .card
lossis ib feem ntawm daim npav cov ntsiab lus raws li qhia hauv qab no.
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.
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.
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.
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.
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.
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 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.
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.
Luam
<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>
Koj tuaj yeem hloov cov ciam teb ntawm daim npav header thiab footer raws li xav tau, thiab txawm tias tshem lawv background-color
nrog .bg-transparent
.
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.
Luam
<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>
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 .
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.
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
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
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
Luam
<div class= "card-group" >
<div class= "card" >
<img class= "card-img-top" src= ".../100px180/" alt= "Card image cap" >
<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 class= "card-img-top" src= ".../100px180/" alt= "Card image cap" >
<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 class= "card-img-top" src= ".../100px180/" alt= "Card image cap" >
<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.
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.
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.
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.
Luam
<div class= "card-group" >
<div class= "card" >
<img class= "card-img-top" src= ".../100px180/" alt= "Card image cap" >
<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 class= "card-img-top" src= ".../100px180/" alt= "Card image cap" >
<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 class= "card-img-top" src= ".../100px180/" alt= "Card image cap" >
<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>
Xav tau ib daim npav sib npaug ntawm qhov dav thiab qhov siab uas tsis txuas rau ib leeg? Siv daim card decks.
Daim npav npe
Qhov no yog daim npav ntev dua nrog cov ntawv txhawb nqa hauv qab no raws li kev coj mus rau hauv cov ntsiab lus ntxiv. Cov ntsiab lus no ntev me ntsis.
Hloov tshiab kawg 3 mins dhau los
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
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
Luam
<div class= "card-deck" >
<div class= "card" >
<img class= "card-img-top" src= ".../100px200/" alt= "Card image cap" >
<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 class= "card-img-top" src= ".../100px200/" alt= "Card image cap" >
<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 class= "card-img-top" src= ".../100px200/" alt= "Card image cap" >
<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.
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.
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.
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.
Luam
<div class= "card-deck" >
<div class= "card" >
<img class= "card-img-top" src= ".../100px180/" alt= "Card image cap" >
<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 class= "card-img-top" src= ".../100px180/" alt= "Card image cap" >
<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 class= "card-img-top" src= ".../100px180/" alt= "Card image cap" >
<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 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 column
cov 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-block
raws li column-break-inside: avoid
tsis yog cov tshuaj tiv thaiv tsis tau.
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 hauv cov ntsiab lus ntxiv. Cov ntsiab lus no ntev me ntsis.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat ante.
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.
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
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat ante.
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
Luam
<div class= "card-columns" >
<div class= "card" >
<img class= "card-img-top" src= ".../100px160/" alt= "Card image cap" >
<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 class= "card-img-top" src= ".../100px160/" alt= "Card image cap" >
<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" >
<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 class= "card-img" src= ".../100px260/" alt= "Card image" >
</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-columns
chav kawm siv tib CSS peb siv-CSS kab- los tsim cov txheej txheem teb rau kev hloov cov kab ntawv.
Luam
.card-columns {
@include media-breakpoint-only ( lg ) {
column-count : 4 ;
}
@include media-breakpoint-only ( xl ) {
column-count : 5 ;
}
}