SourceAmakhadi
Amakhadi e-Bootstrap ahlinzeka ngesiqukathi sokuqukethwe esiguqukayo nesinwebekayo esinokuhlukahluka okuningi nezinketho.
Mayelana
Ikhadi liyisitsha sokuqukethwe esiguqukayo nesinwebekayo. Ihlanganisa izinketho zezihloko nonyaweni, inhlobonhlobo yokuqukethwe, imibala yengemuva lengqikithi, nezinketho zokubonisa ezinamandla. Uma ujwayelene ne-Bootstrap 3, amakhadi athatha indawo yamaphaneli ethu amadala, imithombo, nezithonjana. Ukusebenza okufanayo kulezo zingxenye kuyatholakala njengamakilasi okulungisa amakhadi.
Isibonelo
Amakhadi akhiwe anomakha nezitayela ezincane ngangokunokwenzeka, kodwa asakwazi ukuletha ithoni yokulawula nokwenza ngendlela oyifisayo. Akhiwe nge-flexbox, anikeza ukuqondana okulula futhi axube kahle nezinye izingxenye ze-Bootstrap. Azikho margin
ngokuzenzakalelayo, ngakho-ke sebenzisa izinsiza zokuhlukanisa njengoba kudingeka.
Ngezansi kunesibonelo sekhadi eliyisisekelo elinokuqukethwe okuxubile nobubanzi obulungisiwe. Amakhadi akanabo ububanzi obunqunyiwe ukuqalisa, ngakho ngokwemvelo azogcwalisa ububanzi obugcwele bento engumzali. Lokhu kwenziwa ngokwezifiso kalula ngezinketho zethu zokulinganisa ezahlukahlukene .
Isihloko sekhadi
Umbhalo othile oyisibonelo esisheshayo wokwakha esihlokweni sekhadi futhi wenze ingxenye enkulu yokuqukethwe ekhadini.
Hamba ndawana thize
Izinhlobo zokuqukethwe
Amakhadi asekela inhlobonhlobo yokuqukethwe, okuhlanganisa izithombe, umbhalo, amaqembu ohlu, izixhumanisi, nokuningi. Ngezansi kunezibonelo zalokho okusekelwayo.
Umzimba
Isakhiwo sekhadi yi- .card-body
. Yisebenzise noma nini lapho udinga isigaba esinamaphedi ngaphakathi kwekhadi.
Lona umbhalo othile ngaphakathi kwendikimba yekhadi.
Izihloko, umbhalo, nezixhumanisi
Izihloko zamakhadi zisetshenziswa ngokwengeza .card-title
kumaka <h*>
. .card-link
Ngendlela efanayo, izixhumanisi ziyengezwa futhi zibekwe eduze komunye nomunye ngokungeza <a>
kumaki.
Imibhalo engezansi isetshenziswa ngokwengeza u- .card-subtitle
a <h*>
kumaka. Uma i- .card-title
kanye .card-subtitle
nezinto zibekwe .card-body
entweni, isihloko sekhadi nesihlokwana siqondaniswe kahle.
Isihloko sekhadi
Umbhalo ongezansi wekhadi
Umbhalo othile oyisibonelo esisheshayo wokwakha esihlokweni sekhadi futhi wenze ingxenye enkulu yokuqukethwe ekhadini.
Isixhumanisi sekhadi
Esinye isixhumanisi
Izithombe
.card-img-top
ubeka isithombe phezulu ekhadini. Nge- .card-text
, umbhalo ungangezwa ekhadini. Umbhalo ongaphakathi .card-text
ungaphinda ufakwe isitayela ngamathegi ajwayelekile e-HTML.
Umbhalo othile oyisibonelo esisheshayo wokwakha esihlokweni sekhadi futhi wenze ingxenye enkulu yokuqukethwe ekhadini.
Amaqembu ohlwini
Dala uhlu lokuqukethwe ekhadini neqembu lohlu olushaywayo.
- Cras justo odio
- I-Dapibus ac facilisis in
- I-Vestibulum ne-eros
- Cras justo odio
- I-Dapibus ac facilisis in
- I-Vestibulum ne-eros
Usinki wekhishi
Hlanganisa futhi ufanise izinhlobo eziningi zokuqukethwe ukuze udale ikhadi olidingayo, noma ujikijele yonke into lapho. Okuboniswe ngezansi izitayela zesithombe, amabhlogo, izitayela zombhalo, neqembu lohlu—konke kusongwe ngekhadi elinobubanzi obugxilile.
Isihloko sekhadi
Umbhalo othile oyisibonelo esisheshayo wokwakha esihlokweni sekhadi futhi wenze ingxenye enkulu yokuqukethwe ekhadini.
- Cras justo odio
- I-Dapibus ac facilisis in
- I-Vestibulum ne-eros
Engeza unhlokweni ozikhethela kanye/noma unyaweni ngaphakathi kwekhadi.
Ukwelashwa kwesihloko okukhethekile
Ngombhalo osekelayo ongezansi njengokuholela kokungena kokuqukethwe okwengeziwe.
Hamba ndawana thize
Izihloko zekhadi zingahlelwa ngokungeza .card-header
kuzakhi <h*>
.
Ukwelashwa kwesihloko okukhethekile
Ngombhalo osekelayo ongezansi njengokuholela kokungena kokuqukethwe okwengeziwe.
Hamba ndawana thize
Lorem ipsum dolor sit amet, consectetur adipiscing elit. I-integer posuere ilingana ne-ante.
Ukwelashwa kwesihloko okukhethekile
Ngombhalo osekelayo ongezansi njengokuholela kokungena kokuqukethwe okwengeziwe.
Hamba ndawana thize
Ukulinganisa
Amakhadi awacabangi width
ukuthi azoqala nini, ngakho azoba nobubanzi obungu-100% ngaphandle uma kushiwo ngenye indlela. Ungakwazi ukushintsha lokhu njengoba kudingeka nge-CSS yangokwezifiso, amakilasi egridi, imiksi yegridi ye-Sass, noma izinsiza.
Ukusebenzisa imakhaphu yegridi
Usebenzisa igridi, goqa amakhadi ngamakholomu nemigqa njengoba kudingeka.
Ukwelashwa kwesihloko okukhethekile
Ngombhalo osekelayo ongezansi njengokuholela kokungena kokuqukethwe okwengeziwe.
Hamba ndawana thize
Ukwelashwa kwesihloko okukhethekile
Ngombhalo osekelayo ongezansi njengokuholela kokungena kokuqukethwe okwengeziwe.
Hamba ndawana thize
Ukusebenzisa izinsiza
Sebenzisa izinsiza zethu ezimbalwa ezitholakalayo zokulinganisa ukuze usethe ngokushesha ububanzi bekhadi.
Isihloko sekhadi
Ngombhalo osekelayo ongezansi njengokuholela kokungena kokuqukethwe okwengeziwe.
Inkinobho
Isihloko sekhadi
Ngombhalo osekelayo ongezansi njengokuholela kokungena kokuqukethwe okwengeziwe.
Inkinobho
Ukusebenzisa i-CSS yangokwezifiso
Sebenzisa i-CSS yangokwezifiso kumashidi akho esitayela noma njengezitayela ezingaphakathi komugqa ukuze usethe ububanzi.
Ukwelashwa kwesihloko okukhethekile
Ngombhalo osekelayo ongezansi njengokuholela kokungena kokuqukethwe okwengeziwe.
Hamba ndawana thize
Ukuqondanisa umbhalo
Ungakwazi ukushintsha ngokushesha ukuqondana kombhalo kwanoma yiliphi ikhadi—lilonke noma izingxenye ezithile— ngamakilasi ethu okuqondanisa umbhalo .
Ukwelashwa kwesihloko okukhethekile
Ngombhalo osekelayo ongezansi njengokuholela kokungena kokuqukethwe okwengeziwe.
Hamba ndawana thize
Ukwelashwa kwesihloko okukhethekile
Ngombhalo osekelayo ongezansi njengokuholela kokungena kokuqukethwe okwengeziwe.
Hamba ndawana thize
Ukwelashwa kwesihloko okukhethekile
Ngombhalo osekelayo ongezansi njengokuholela kokungena kokuqukethwe okwengeziwe.
Hamba ndawana thize
Ukuzulazula
Engeza ukuzulazula okuthile kunhlokweni yekhadi (noma vimba) ngezinto ze-Bootstrap's nav .
Ukwelashwa kwesihloko okukhethekile
Ngombhalo osekelayo ongezansi njengokuholela kokungena kokuqukethwe okwengeziwe.
Hamba ndawana thize
Ukwelashwa kwesihloko okukhethekile
Ngombhalo osekelayo ongezansi njengokuholela kokungena kokuqukethwe okwengeziwe.
Hamba ndawana thize
Izithombe
Amakhadi afaka izinketho ezimbalwa zokusebenza ngezithombe. Khetha ekwengezeni "amakepisi wesithombe" ekupheleni kwekhadi, ukumboza izithombe ngokuqukethwe kwekhadi, noma ukumane ushumeke isithombe ekhadini.
Amakepisi wesithombe
Ngokufanayo nhlokweni nonyaweni, amakhadi angafaka “amakepisi wesithombe” aphezulu naphansi—izithombe phezulu noma phansi ekhadini.
Isihloko sekhadi
Leli ikhadi elibanzi elinombhalo osekelayo ngezansi njengokuholela kokungena kokuqukethwe okwengeziwe. Lokhu okuqukethwe yinde kancane.
Igcine ukubuyekezwa emizuzwini engu-3 edlule
Isihloko sekhadi
Leli ikhadi elibanzi elinombhalo osekelayo ngezansi njengokuholela kokungena kokuqukethwe okwengeziwe. Lokhu okuqukethwe yinde kancane.
Igcine ukubuyekezwa emizuzwini engu-3 edlule
Imbondela yesithombe
Guqula isithombe sibe ingemuva lekhadi bese umboza umbhalo wekhadi lakho. Kuye ngesithombe, ungase udinge noma ungadingi izitayela ezengeziwe noma izinsiza.
Isihloko sekhadi
Leli ikhadi elibanzi elinombhalo osekelayo ngezansi njengokuholela kokungena kokuqukethwe okwengeziwe. Lokhu okuqukethwe yinde kancane.
Igcine ukubuyekezwa emizuzwini engu-3 edlule
Qaphela ukuthi okuqukethwe akufanele kube kukhulu kunobude besithombe. Uma okuqukethwe kukukhulu kunesithombe okuqukethwe kuzovezwa ngaphandle kwesithombe.
Izitayela zamakhadi
Amakhadi ahlanganisa izinketho ezihlukahlukene zokwenza isizinda sawo ngokwezifiso, imingcele, nombala.
Ingemuva nombala
Sebenzisa umbhalo kanye nezinsiza zasemuva ukuze uguqule ukubukeka kwekhadi.
Isihloko sekhadi eliyisisekelo
Umbhalo othile oyisibonelo esisheshayo wokwakha esihlokweni sekhadi futhi wenze ingxenye enkulu yokuqukethwe ekhadini.
Isihloko sekhadi lesibili
Umbhalo othile oyisibonelo esisheshayo wokwakha esihlokweni sekhadi futhi wenze ingxenye enkulu yokuqukethwe ekhadini.
Isihloko sekhadi lempumelelo
Umbhalo othile oyisibonelo esisheshayo wokwakha esihlokweni sekhadi futhi wenze ingxenye enkulu yokuqukethwe ekhadini.
Isihloko sekhadi eliyingozi
Umbhalo othile oyisibonelo esisheshayo wokwakha esihlokweni sekhadi futhi wenze ingxenye enkulu yokuqukethwe ekhadini.
Isihloko sekhadi lesixwayiso
Umbhalo othile oyisibonelo esisheshayo wokwakha esihlokweni sekhadi futhi wenze ingxenye enkulu yokuqukethwe ekhadini.
Isihloko sekhadi lolwazi
Umbhalo othile oyisibonelo esisheshayo wokwakha esihlokweni sekhadi futhi wenze ingxenye enkulu yokuqukethwe ekhadini.
Isihloko sekhadi elikhanyayo
Umbhalo othile oyisibonelo esisheshayo wokwakha esihlokweni sekhadi futhi wenze ingxenye enkulu yokuqukethwe ekhadini.
Isihloko sekhadi elimnyama
Umbhalo othile oyisibonelo esisheshayo wokwakha esihlokweni sekhadi futhi wenze ingxenye enkulu yokuqukethwe ekhadini.
Ukudlulisa incazelo kubuchwepheshe obusizayo
Ukusebenzisa umbala ukwengeza incazelo kunikeza kuphela inkomba ebonakalayo, engeke idluliselwe kubasebenzisi bobuchwepheshe obusizayo - njengezifundi zesikrini. Qinisekisa ukuthi ulwazi olushiwo umbala lusobala kokuqukethwe ngokwako (isb umbhalo obonakalayo), noma lufakwe ngezinye izindlela, njengombhalo owengeziwe ofihliwe .sr-only
nekilasi.
Umngcele
Sebenzisa izinsiza zasemngceleni ukuze ushintshe border-color
ikhadi. Qaphela ukuthi ungabeka .text-{color}
amakilasi kumzali .card
noma isethi engaphansi yokuqukethwe kwekhadi njengoba kuboniswe ngezansi.
Isihloko sekhadi eliyisisekelo
Umbhalo othile oyisibonelo esisheshayo wokwakha esihlokweni sekhadi futhi wenze ingxenye enkulu yokuqukethwe ekhadini.
Isihloko sekhadi lesibili
Umbhalo othile oyisibonelo esisheshayo wokwakha esihlokweni sekhadi futhi wenze ingxenye enkulu yokuqukethwe ekhadini.
Isihloko sekhadi lempumelelo
Umbhalo othile oyisibonelo esisheshayo wokwakha esihlokweni sekhadi futhi wenze ingxenye enkulu yokuqukethwe ekhadini.
Isihloko sekhadi eliyingozi
Umbhalo othile oyisibonelo esisheshayo wokwakha esihlokweni sekhadi futhi wenze ingxenye enkulu yokuqukethwe ekhadini.
Isihloko sekhadi lesixwayiso
Umbhalo othile oyisibonelo esisheshayo wokwakha esihlokweni sekhadi futhi wenze ingxenye enkulu yokuqukethwe ekhadini.
Isihloko sekhadi lolwazi
Umbhalo othile oyisibonelo esisheshayo wokwakha esihlokweni sekhadi futhi wenze ingxenye enkulu yokuqukethwe ekhadini.
Isihloko sekhadi elikhanyayo
Umbhalo othile oyisibonelo esisheshayo wokwakha esihlokweni sekhadi futhi wenze ingxenye enkulu yokuqukethwe ekhadini.
Isihloko sekhadi elimnyama
Umbhalo othile oyisibonelo esisheshayo wokwakha esihlokweni sekhadi futhi wenze ingxenye enkulu yokuqukethwe ekhadini.
Izinsiza ze-Mixins
Ungakwazi futhi ukushintsha imingcele kunhlokweni nonyaweni wekhadi njengoba kudingeka, futhi ususe ngisho nemingcele yawo background-color
nge- .bg-transparent
.
Isihloko sekhadi lempumelelo
Umbhalo othile oyisibonelo esisheshayo wokwakha esihlokweni sekhadi futhi wenze ingxenye enkulu yokuqukethwe ekhadini.
Isakhiwo sekhadi
Ngokungeziwe ekwenzeni isitayela okuqukethwe ngaphakathi kwamakhadi, i-Bootstrap ifaka phakathi izinketho ezimbalwa zokubeka uchungechunge lwamakhadi. Okwamanje, lezi zinketho zesakhiwo azikaphenduli .
Amaqembu amakhadi
Sebenzisa amaqembu amakhadi ukuze unikeze amakhadi njengento eyodwa, enamathiselwe enobubanzi obulinganayo namakholomu obude. Amaqembu amakhadi asebenzisa display: flex;
ukufeza usayizi wawo ofanayo.
Isihloko sekhadi
Leli ikhadi elibanzi elinombhalo osekelayo ngezansi njengokuholela kokungena kokuqukethwe okwengeziwe. Lokhu okuqukethwe yinde kancane.
Igcine ukubuyekezwa emizuzwini engu-3 edlule
Isihloko sekhadi
Leli khadi linombhalo osekelayo ngezansi njengendlela engokwemvelo yokuholela kokuqukethwe okwengeziwe.
Igcine ukubuyekezwa emizuzwini engu-3 edlule
Isihloko sekhadi
Leli ikhadi elibanzi elinombhalo osekelayo ngezansi njengokuholela kokungena kokuqukethwe okwengeziwe. Leli khadi linokuqukethwe okude kunelokuqala ukubonisa leso senzo sobude obulinganayo.
Igcine ukubuyekezwa emizuzwini engu-3 edlule
Uma usebenzisa amaqembu amakhadi anamanyaweni, okuqukethwe kwawo kuzolandelana ngokuzenzakalelayo.
Isihloko sekhadi
Leli ikhadi elibanzi elinombhalo osekelayo ngezansi njengokuholela kokungena kokuqukethwe okwengeziwe. Lokhu okuqukethwe yinde kancane.
Isihloko sekhadi
Leli khadi linombhalo osekelayo ngezansi njengendlela engokwemvelo yokuholela kokuqukethwe okwengeziwe.
Isihloko sekhadi
Leli ikhadi elibanzi elinombhalo osekelayo ngezansi njengokuholela kokungena kokuqukethwe okwengeziwe. Leli khadi linokuqukethwe okude kunelokuqala ukubonisa leso senzo sobude obulinganayo.
Izitezi zamakhadi
Udinga isethi yobubanzi obulinganayo nobude amakhadi anganamathiselwe elinye kwelinye? Sebenzisa amadekhi amakhadi.
Isihloko sekhadi
Leli ikhadi elide elinombhalo osekelayo ngezansi njengokuholela kokungena kokuqukethwe okwengeziwe. Lokhu okuqukethwe yinde kancane.
Igcine ukubuyekezwa emizuzwini engu-3 edlule
Isihloko sekhadi
Leli khadi linombhalo osekelayo ngezansi njengendlela engokwemvelo yokuholela kokuqukethwe okwengeziwe.
Igcine ukubuyekezwa emizuzwini engu-3 edlule
Isihloko sekhadi
Leli ikhadi elibanzi elinombhalo osekelayo ngezansi njengokuholela kokungena kokuqukethwe okwengeziwe. Leli khadi linokuqukethwe okude kunelokuqala ukubonisa leso senzo sobude obulinganayo.
Igcine ukubuyekezwa emizuzwini engu-3 edlule
Njengamaqembu ekhadi, onyaweni bamakhadi kumadekhi bazokleliswa ngokuzenzakalelayo.
Isihloko sekhadi
Leli ikhadi elibanzi elinombhalo osekelayo ngezansi njengokuholela kokungena kokuqukethwe okwengeziwe. Lokhu okuqukethwe yinde kancane.
Isihloko sekhadi
Leli khadi linombhalo osekelayo ngezansi njengendlela engokwemvelo yokuholela kokuqukethwe okwengeziwe.
Isihloko sekhadi
Leli ikhadi elibanzi elinombhalo osekelayo ngezansi njengokuholela kokungena kokuqukethwe okwengeziwe. Leli khadi linokuqukethwe okude kunelokuqala ukubonisa leso senzo sobude obulinganayo.
Amakholomu ekhadi
Amakhadi angahlelwa abe amakholomu afana ne- Masonry nge-CSS nje ngokuwagoqa ku- .card-columns
. Amakhadi akhiwe ngezinto column
ze-CSS esikhundleni se-flexbox ukuze aqondaniswe kalula. Amakhadi a-odwa ukusuka phezulu kuya phansi futhi kwesokunxele kuya kwesokudla.
Amakhanda phezulu! Ibanga lakho elinamakholomu ekhadi lingahluka. Ukuvimbela amakhadi ukwephula amakholomu, kufanele siwasethe display: inline-block
ukuthi column-break-inside: avoid
angakabi yisixazululo sokuvikela amabhulethi okwamanje.
Isihloko sekhadi esigoqa emugqeni omusha
Leli ikhadi elide elinombhalo osekelayo ngezansi njengokuholela kokungena kokuqukethwe okwengeziwe. Lokhu okuqukethwe yinde kancane.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. I-integer posuere ilingana ne-ante.
Isihloko sekhadi
Leli khadi linombhalo osekelayo ngezansi njengendlela engokwemvelo yokuholela kokuqukethwe okwengeziwe.
Igcine ukubuyekezwa emizuzwini engu-3 edlule
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Inombolo ephelele ye-posuere erat.
Isihloko sekhadi
Leli khadi linesihloko esivamile kanye nendima emfushane yombhalo ngaphansi kwalo.
Igcine ukubuyekezwa emizuzwini engu-3 edlule
Lorem ipsum dolor sit amet, consectetur adipiscing elit. I-integer posuere ilingana ne-ante.
Isihloko sekhadi
Leli elinye ikhadi elinesihloko nombhalo osekelayo ngezansi. Leli khadi linokuqukethwe okwengeziwe okulenza libe lide kancane lilonke.
Igcine ukubuyekezwa emizuzwini engu-3 edlule
Amakholomu ekhadi anganwetshwa futhi enziwe ngendlela oyifisayo ngekhodi ethile eyengeziwe. Okuboniswe ngezansi isandiso .card-columns
sekilasi sisebenzisa i-CSS efanayo esiyisebenzisayo—amakholomu e-CSS— ukuze sikhiqize isethi yezigaba ezisabelayo zokushintsha inani lamakholomu.