Bɛboro dumien a wotumi de di dwuma bio a wɔasisi de ama iconography, dropdowns, input groups, navigation, kɔkɔbɔ, ne nea ɛkeka ho pii.
Glyphicons a wɔde kyerɛw nsɛm
Glyph ahorow a ɛwɔ hɔ
Glyphs bɛboro 250 a ɛwɔ font format mu a efi Glyphicon Halflings set no mu ka ho. Glyphicons Halflings taa ntumi nnya bi kwa, nanso wɔn bɔfo no ama wɔanya Bootstrap a wontua hwee. Sɛ́ aseda no, yɛsrɛ ara ne sɛ wode link a ɛsan kɔ Glyphicons no bɛka ho bere biara a ɛbɛyɛ yiye.
glyphicon glyphicon-nsoromma kyerɛwtohɔ
glyphicon glyphicon-a wɔde ahyɛ mu
glyphicon nkyerɛwde a ɛyɛ fɛ-euro
glyphicon a wɔde hyɛ mu
glyphicon glyphicon-a wɔayi afi mu
glyphicon glyphicon-mununkum a ɛyɛ nwonwa
glyphicon glyphicon-nsɛm a wɔde kyerɛw nsɛm
glyphicon glyphicon-pɛnsere a wɔde kyerɛw nsɛm
glyphicon glyphicon-ahwehwɛ a wɔde yɛ nneɛma
glyphicon glyphicon-nnwom a ɛyɛ dɛ
glyphicon glyphicon-hwehwɛ nsɛm mu
glyphicon glyphicon-koma mu nsɛm
glyphicon glyphicon-nsoromma a ɛyɛ fɛ
glyphicon glyphicon-nsoromma-a hwee nni mu
glyphicon glyphicon-a ɔde di dwuma
glyphicon glyphicon-film a wɔde yɛ sini
glyphicon glyphicon-a ɛto so abien a ɛyɛ kɛse
glyphicon glyphicon-a ɛyɛ nsɛm a ɛyɛ dɛ
glyphicon glyphicon-a ɛto so abien
glyphicon glyphicon-ok a ɛkyerɛ sɛnea obi te nka
glyphicon glyphicon-a woyi fi mu
glyphicon glyphicon-a ɛyɛ fɛ yiye
glyphicon glyphicon-a ɛyɛ ketewaa bi
glyphicon glyphicon-a wɔde hyɛ mu
glyphicon glyphicon-nsɛnkyerɛnne
glyphicon glyphicon-aduru a wɔde hyɛ mu
glyphicon glyphicon-nwura a wɔde yɛ nneɛma
glyphicon glyphicon-fie a ɛyɛ fɛ
glyphicon glyphicon-fael no ho nsɛm
glyphicon glyphicon-bere a ɛyɛ fɛ
glyphicon glyphicon-kwan a ɛyɛ fɛ
glyphicon glyphicon-twe-a-wɔde-alt
glyphicon glyphicon-twe adwene si so
glyphicon glyphicon-a wɔde hyɛ mu
glyphicon glyphicon-asɛm a wɔde hyɛ mu
glyphicon glyphicon-agorudi-kuruwa
glyphicon glyphicon-a wɔsan yɛ no bio
glyphicon glyphicon-a ɛyɛ foforo
glyphicon glyphicon-nkyerɛwee-alt
glyphicon glyphicon-a wɔde hyɛ mu
glyphicon glyphicon-frankaa a ɛyɛ fɛ
glyphicon glyphicon-asɛm a wɔde bɔ asom
glyphicon glyphicon-nneɛma a wɔde di dwuma
glyphicon glyphicon-nneɛma a ɛkɔ fam
glyphicon glyphicon-nneɛma a ɛkɔ soro
glyphicon nkyerɛwde-qrcode
glyphicon glyphicon-barkode a wɔde kyerɛw nsɛm
glyphicon glyphicon-asɛmfua a wɔde hyɛ mu
glyphicon glyphicon-nsɛmfua a wɔde kyerɛw nsɛm
glyphicon glyphicon-nwoma a wɔde kyerɛw nsɛm
glyphicon glyphicon-nkyerɛwee a wɔde kyerɛw nsɛm
glyphicon glyphicon-a wɔde tintim nhoma
glyphicon glyphicon-mfoninitwa afiri
glyphicon glyphicon-kyerɛw nsɛm a wɔde kyerɛw nsɛm
glyphicon glyphicon-a ɛyɛ den
glyphicon glyphicon-a ɛyɛ nkyerɛwde a wɔde hyɛ mu
glyphicon glyphicon-nsɛm-a-korɔn
glyphicon glyphicon-nsɛm-trɛw-trɛw
glyphicon glyphicon-ahyɛ-benkum so
glyphicon glyphicon-ahyɛ-mfinimfini
glyphicon glyphicon-ahyɛ-nifa so
glyphicon glyphicon-ahyɛ-ayɛ-ayɛ nea ɛfata
glyphicon glyphicon-kyerɛw nsɛm a wɔahyehyɛ
glyphicon glyphicon-a ɛwɔ benkum so
glyphicon glyphicon-a wɔde ahyɛ mu-nifa so
glyphicon glyphicon-anim bere-video
glyphicon glyphicon-mfonini a ɛyɛ fɛ
glyphicon glyphicon-asase mfonini-agyiraehyɛde
glyphicon glyphicon-ayɛ nsakrae wɔ mu
glyphicon glyphicon-tint a wɔde hyɛ mu
glyphicon glyphicon-sesa nsɛm a wɔde kyerɛw nsɛm
glyphicon glyphicon-kyɛ nsɛm
glyphicon glyphicon-hwɛ nsɛm a wɔka kyerɛ
glyphicon glyphicon-a wɔde tu kwan
glyphicon glyphicon-anammɔn-akyi
glyphicon glyphicon-ntɛmntɛm-akyi
glyphicon glyphicon-a ɛkɔ akyi
glyphicon glyphicon-asɛm a wɔde di agoru
glyphicon glyphicon-gyinae kakra
glyphicon glyphicon-gyinabea
glyphicon glyphicon-a ɛkɔ anim
glyphicon glyphicon-a ɛkɔ anim ntɛmntɛm
glyphicon glyphicon-anammɔn-a ɛkɔ anim
glyphicon glyphicon-a wɔde hyɛ mu
glyphicon glyphicon-chevron-benkum so a wɔde hyɛ mu
glyphicon nkyerɛwde-chevron-nifa so
glyphicon glyphicon-plus-ahyɛnsodeɛ
glyphicon glyphicon-a wɔayi afi mu-ahyɛnsode
glyphicon glyphicon-yi-nsɛnkyerɛnne
glyphicon glyphicon-ok-ahyɛnsodeɛ
glyphicon glyphicon-asɛmmisa-sɛnkyerɛnne
glyphicon glyphicon-nsɛm-ahyɛnsode
glyphicon glyphicon-a ɛwɔ screen so no ho mfonini
glyphicon glyphicon-yi-kwan a ɛyɛ kurukuruwa
glyphicon glyphicon-ok-a ɛyɛ kurukuruwa
glyphicon glyphicon-ban-a ɛyɛ kurukuruwa
glyphicon glyphicon-agyan-benkum so
glyphicon glyphicon-agyan-nifa so
glyphicon glyphicon-agyan a ɛwɔ soro
glyphicon glyphicon-agyan-a ɛkɔ fam
glyphicon glyphicon-kyɛ-alt
glyphicon glyphicon-sesa ne kɛse-a ɛyɛ fɛ
glyphicon glyphicon-sesa ne kɛse-ketewa
glyphicon glyphicon-nsɛm-asɛm-nsɛnkyerɛnne
glyphicon glyphicon-akyɛde a wɔde ma
glyphicon glyphicon-ahaban a ɛyɛ fɛ
glyphicon glyphicon-ogya a ɛyɛ fɛ
glyphicon glyphicon-ani a ɛbue
glyphicon glyphicon-ani a wɔde hyɛ mu
glyphicon glyphicon-kɔkɔbɔ-sɛnkyerɛnne
glyphicon glyphicon-wimhyɛn a wɔde di dwuma
glyphicon glyphicon-kalenda a wɔde hyɛ mu
glyphicon glyphicon-a ɛnyɛ nea wɔahyɛ da ayɛ
glyphicon glyphicon-nsɛm a wɔka kyerɛ
glyphicon glyphicon-magnet a wɔde hyɛ mu
glyphicon glyphicon-chevron-a ɛwɔ soro
glyphicon glyphicon-chevron-a ɛwɔ fam
glyphicon glyphicon-nsɛm a wɔde kyerɛw nsɛm
glyphicon glyphicon-adetɔ-teaseɛnam
glyphicon glyphicon-folda-a wɔato mu
glyphicon glyphicon-folda-abue
glyphicon glyphicon-sesa ne kɛse-gyina hɔ
glyphicon glyphicon-sesa ne kɛse-a ɛkɔ soro
glyphicon glyphicon-hdd a wɔde hyɛ mu
glyphicon glyphicon-nantwinini abɛn
glyphicon glyphicon-dɔn a wɔde kyerɛw nsɛm
glyphicon glyphicon-adansedi krataa
glyphicon glyphicon-nsateaa a wɔde hyɛ soro
glyphicon glyphicon-nsateaa-a ɛwɔ fam
glyphicon glyphicon-nsa-nifa so
glyphicon glyphicon-nsa-benkum so
glyphicon glyphicon-nsa a wɔde hyɛ soro
glyphicon glyphicon-nsa a wɔde hyɛ ase
glyphicon glyphicon-kuruwa-agyan-nifa
glyphicon glyphicon-kuruwa-agyan-benkum so
glyphicon glyphicon-kyinhyia-agyan-a-kɔ soro
glyphicon glyphicon-kyinhyia-agyan-a ɛkɔ fam
glyphicon glyphicon-wiase a ɛwɔ wiase nyinaa
glyphicon glyphicon-safe a wɔde hyɛ mu
glyphicon glyphicon-nnwuma a wɔde yɛ adwuma
glyphicon glyphicon-afiri a wɔde yi nneɛma mu
glyphicon glyphicon-asɛm a wɔde kyerɛw nneɛma
glyphicon glyphicon-a ɛwɔ anim no nyinaa
glyphicon glyphicon-dashboard no ho nsɛm a wɔde kyerɛw nsɛm
glyphicon glyphicon-krataa a wɔde kyerɛw nsɛm
glyphicon glyphicon-koma-a hwee nni mu
glyphicon glyphicon-nsɛmfua a wɔde di dwuma
glyphicon glyphicon-fon a wɔde di dwuma wɔ telefon so
glyphicon glyphicon-aduru a wɔde hyɛ nipadua mu
glyphicon glyphicon-usd a wɔde kyerɛw nsɛm
glyphicon nkyerɛwde a ɛyɛ fɛ-gbp
glyphicon glyphicon-asɛmfua a wɔde di dwuma
glyphicon glyphicon-hyehyɛ-sɛ-nkyerɛwde
glyphicon glyphicon-hyehyɛ-sɛ-nkyerɛwde-alt
glyphicon glyphicon-hyehyɛ-sɛ-wɔde-hyehyɛ
glyphicon glyphicon-hyehyɛ-sɛ-hyehyɛ-alt
glyphicon glyphicon-hyehyɛ-sɛ-wɔde-su ahorow
glyphicon glyphicon-hyehyɛ-sɛ-wɔde-su-alt
glyphicon glyphicon-a wɔanhwɛ mu
glyphicon glyphicon-trɛw mu
glyphicon glyphicon-a ɛhwe ase-ase
glyphicon glyphicon-a ɛyɛ mmerɛw sɛ wobɛhwe ase
glyphicon glyphicon-kɔ mu
glyphicon glyphicon-a ɛyɛ fɛ a ɛyɛ fɛ
glyphicon glyphicon-a wɔde hyɛ mu
glyphicon glyphicon-mfɛnsere-foforo
glyphicon glyphicon-kyerewtohɔ
glyphicon glyphicon-gye nsɛm a ɛyɛ dɛ
glyphicon glyphicon-a wɔabue ano
glyphicon glyphicon-a wɔakora so
glyphicon glyphicon-a wɔde ba amannɔne
glyphicon glyphicon-a wɔde kɔ amannɔne
glyphicon glyphicon-a wɔde mena
glyphicon glyphicon-floppy-disk a wɔde di dwuma wɔ ɔkwan a ɛyɛ nwonwa so
glyphicon glyphicon-floppy-a wɔakora so
glyphicon glyphicon-floppy-a woyi fi mu
glyphicon glyphicon-floppy-a wɔde sie
glyphicon glyphicon-floppy-a wɔabue mu
glyphicon glyphicon-a wɔde gye sika-kaad
glyphicon glyphicon-a wɔde kɔ baabi foforo
glyphicon glyphicon-nkuku a wɔde yɛ aduan
glyphicon glyphicon-asɛmti a wɔde kyerɛw nsɛm
glyphicon glyphicon-a wɔde ahyɛ mu
glyphicon glyphicon-asɛm a wɔde bɔ aso
glyphicon glyphicon-frɛ-alt a wɔde di dwuma wɔ ɔkwan a ɛfata so
glyphicon glyphicon-abantenten a wɔde hyɛ mu
glyphicon glyphicon-asɛmfua ahorow
glyphicon glyphicon-sd-video a wɔde di dwuma wɔ ɔkwan a ɛyɛ nwonwa so
glyphicon glyphicon-hd-video a wɔde di dwuma wɔ ɔkwan a ɛyɛ nwonwa so
glyphicon glyphicon-nsɛmfua a ɛwɔ ase
glyphicon glyphicon-nnyigyei-nsɛm a ɛyɛ dɛ
glyphicon glyphicon-nnyigyei-dolby a ɛyɛ dɛ
glyphicon glyphicon-nnyigyei-5-1
glyphicon glyphicon-nnyigyei-6-1
glyphicon glyphicon-nnyigyei-7-1
glyphicon glyphicon-akyerɛw-ahyɛnsode
glyphicon glyphicon-nkyerɛwde-agyiraehyɛde
glyphicon glyphicon-mununkum-twe adwene si so
glyphicon glyphicon-mununkum-a wɔde gu so
glyphicon glyphicon-dua-a-wɔde a ɛyɛ fɛ
glyphicon glyphicon-dua-a nhaban gu so
glyphicon glyphicon-cd a wɔde hyɛ mu
glyphicon glyphicon-kora-fael no
glyphicon glyphicon-abue-fael no
glyphicon glyphicon-a ɛkɔ soro
glyphicon glyphicon-a wɔde yɛ mfonini
glyphicon glyphicon-a wɔde ahyɛ mu
glyphicon glyphicon-asɛm a wɔde bɔ kɔkɔ
glyphicon glyphicon-a ɛma ɛyɛ pɛpɛɛpɛ
glyphicon glyphicon-hene a ɔyɛ ɔhene
glyphicon glyphicon-ɔhemmaa a ɔyɛ ɔhemmaa
glyphicon glyphicon-akuturuku a ɛyɛ fɛ
glyphicon glyphicon-ɔsɔfopɔn
glyphicon glyphicon-ɔpɔnkɔsotefo
glyphicon glyphicon-akokoaa-aduru a wɔde yɛ aduan
glyphicon glyphicon-ntama a wɔde hyɛ mu
glyphicon glyphicon-kyerɛwpon tuntum
glyphicon glyphicon-mpa a wɔde hyɛ mu
glyphicon glyphicon-apɔw-mu-teɛteɛ
glyphicon glyphicon-a wɔde popa nneɛma
glyphicon glyphicon- dɔnhwerew dɔnhwerew
glyphicon glyphicon-kanea a wɔde hyɛ mu
glyphicon glyphicon-a ɛyɛ nea ɛyɛ abien
glyphicon glyphicon-akraman a wɔde wɔn ho hyɛ mu
glyphicon glyphicon-nsɛm a wɔde twitwiw nneɛma
glyphicon glyphicon-bitcoin a wɔde di dwuma wɔ ɔkwan a ɛyɛ nwonwa so
glyphicon glyphicon-btc a ɛyɛ nwonwa no
glyphicon glyphicon-xbt a wɔde hyɛ mu
glyphicon glyphicon-yen a wɔde kyerɛw nsɛm
glyphicon nkyerɛwde a ɛwɔ anim-jpy
glyphicon glyphicon-ruble a wɔde hyɛ mu
glyphicon glyphicon-a wɔde hyɛ mu
glyphicon glyphicon-nsɛmfua a wɔde di dwuma
glyphicon glyphicon-nsukyenee a ɛyɛ fɛ
glyphicon glyphicon-nsukyenee-lolly-a ɛyɛ dɛ
glyphicon glyphicon-nkyerɛkyerɛ a wɔde ma
glyphicon glyphicon-a wɔpaw-a ɛwɔ soro
glyphicon glyphicon-a wɔpaw-gyina hɔ
glyphicon glyphicon-menu-hamburger a wɔde yɛ aduan
glyphicon glyphicon-kwan-mfɛnsere
glyphicon glyphicon-ngo a wɔde yɛ nneɛma
glyphicon glyphicon-aburow a wɔde yɛ aduan
glyphicon glyphicon-ahwehwɛ a wɔde hwɛ owia
glyphicon glyphicon-nkyerɛwee-kɛse
glyphicon glyphicon-nkyerɛwee-kɔla
glyphicon glyphicon-nkyerɛwee-akyi nsɛm
glyphicon glyphicon-adeɛ-a-ɛhyehyɛ-atifi
glyphicon glyphicon-ade-a-ahyɛ-ase
glyphicon glyphicon-adeɛ-a ɛne ne ho hyia-a ɛkɔ soro
glyphicon glyphicon-adeɛ-a ɛne ne ho hyia-benkum
glyphicon glyphicon-adeɛ-a-ɛfata-gyina hɔ
glyphicon glyphicon-adeɛ-a ɛne no hyia-nifa
glyphicon glyphicon-ahinanan-nifa
glyphicon glyphicon-ahinanan-benkum so
glyphicon glyphicon-ahinanan-ase
glyphicon glyphicon-ahinanan-a ɛwɔ soro
glyphicon glyphicon-asɛmfua a wɔde di dwuma
glyphicon glyphicon-nkyerɛwde a ɛwɔ soro
glyphicon glyphicon-nkyerɛwee a ɛwɔ ase
glyphicon glyphicon-menu-benkum so na ɛwɔ hɔ
glyphicon nkyerɛwde-menu-nifa so
glyphicon glyphicon-menu-a ɛwɔ fam
glyphicon glyphicon-menu-a ɛwɔ soro
Sɛnea wɔde bedi dwuma
Esiane adwumayɛ nti, ahyɛnsode nyinaa hwehwɛ sɛ wonya nnyinaso adesua ne ankorankoro ahyɛnsode adesua. Sɛ wode bedi dwuma a, ɛkame ayɛ sɛ fa koodu a edidi so yi to baabiara. Hwɛ hu sɛ wubegyaw baabi wɔ ahyɛnsode no ne nsɛm no ntam na ama woatumi ayɛ padding no yiye.
Mfa nneɛma afoforo a ɛwom no nfrafra
Wontumi mfa ahyɛnsode ahorow no nka nneɛma afoforo ho tẽẽ. Ɛnsɛ sɛ wɔde di dwuma ka adesuakuw afoforo ho wɔ element koro no ara so. Mmom, fa nested bi ka ho <span>na fa icon class ahorow no di dwuma wɔ <span>.
Wɔde di dwuma wɔ element ahorow a hwee nni mu nkutoo so
Ɛsɛ sɛ wɔde ahyɛnsode adesua ahorow di dwuma wɔ element ahorow a nkyerɛwee mu nsɛm biara nni mu na enni mmofra elements nkutoo so.
Sesa a wobɛsesa icon font no beae
Bootstrap fa no sɛ icon font fael ahorow bɛba wɔ ../fonts/directory no mu, sɛ wɔde toto CSS fael ahorow a wɔaboaboa ano no ho a. Sɛ wode saa font fael ahorow no kɔ baabi foforo anaa wobɛsesa din a, ɛkyerɛ sɛ wobɛma CSS no ayɛ foforo wɔ akwan abiɛsa no mu biako so:
Sesa @icon-font-pathne/anaasɛ @icon-font-namensakrae ahorow a ɛwɔ fibea Less fael ahorow no mu.
Fa ɔkwan biara a ɛfata wo nkɔso nhyehyɛe pɔtee no di dwuma.
Ahyɛnsode ahorow a wotumi nya
Nnɛyi nkyerɛase ahorow a ɛboa mfiridwuma no bɛbɔ nneɛma a CSS ayɛ, ne Unicode nkyerɛwde pɔtee bi ho amanneɛ. Sɛnea ɛbɛyɛ a yɛbɛkwati nsɛm a wɔanhyɛ da na ɛyɛ basaa wɔ screen akenkanfo mu (titiriw bere a wɔde ahyɛnsode ahorow di dwuma de siesie hɔ ara kwa no), yɛde aria-hidden="true"su no sie.
Sɛ wode ahyɛnsodeɛ bi redi dwuma de akyerɛ nteaseɛ (sen sɛ wode bɛyɛ afɛfɛdeɛ adeɛ nko ara a), hwɛ sɛ wɔde saa nteaseɛ yi nso bɛkyerɛ mfiridwuma a ɛboa – sɛ nhwɛsoɔ no, fa nsɛm foforɔ ka ho, a wɔde aniwa ahunta ne .sr-onlyadesuakuw no.
Sɛ woreyɛ controls a nsɛm foforo biara nni mu (te sɛ a <button>a ahyɛnsode nkutoo na ɛwom) a, ɛsɛ sɛ wode nsɛm foforo ma bere nyinaa de kyerɛ control no atirimpɔw, sɛnea ɛbɛyɛ a ntease bɛba mu ama wɔn a wɔde mfiridwuma a ɛboa di dwuma no. Wɔ eyi mu no, wubetumi de aria-labelattribute bi aka control no ankasa so.
Nhwɛso ahorow
Fa di dwuma wɔ bɔtn, bɔtn akuw ma adwinnade pon, akwantu, anaa kratasin a wɔde ahyɛ mu a wɔadi kan ahyɛ mu.
Ahyɛnsodeɛ a wɔde di dwuma wɔ kɔkɔbɔ mu de kyerɛ sɛ ɛyɛ mfomsoɔ nkra, a .sr-onlynsɛm foforɔ ka ho de de saa nsɛnkyerɛnneɛ yi kɔma wɔn a wɔde mfiridwuma a ɛboa di dwuma.
Mfomsoɔ:Hyehyɛ email address a ɛfata
Nneɛma a wɔde gu fam
Toggleable, contextual menu a wɔde kyerɛ link ahorow a wɔahyehyɛ. Wɔde JavaScript plugin a ɛwɔ ase hɔ no yɛɛ nkitahodi .
Nhwɛsoɔ
Fa dropdown no trigger ne dropdown menu no kyekyere .dropdown, anaa element foforo a ɛpae mu ka position: relative;. Afei fa menu no HTML no ka ho.
Sɛnea wɔahyɛ no, wɔde menu a ɛba fam no si hɔ ankasa 100% fi soro ne ne wofo no benkum so. Fa ka .dropdown-menu-righta ho .dropdown-menukɔ nifa so hyɛ dropdown menu no mu.
Ebia ebehia sɛ wɔde gyinabea foforo si hɔ
Wɔde dropdowns no si hɔ ankasa denam CSS so wɔ krataa no mu nsu a ɛsen daa no mu. Wei kyerɛ sɛ awofoɔ a wɔwɔ agyapadeɛ bi bɛtumi atwitwa dropdowns no overflowanaasɛ ɛbɛda adi wɔ viewport no hyeɛ so. W’ankasa wudi nsɛm yi ho dwuma bere a ɛsɔre no.
Alignment .pull-righta wɔagyae
Ɛde besi v3.1.0 no, yɛagyae adwuma .pull-rightwɔ dropdown menu ahorow so. Sɛ wopɛ sɛ wode menu bi hyɛ nifa so a, fa .dropdown-menu-right. Nav afã horow a wɔahyehyɛ no nifa wɔ navbar no mu no de mixin version a ɛwɔ saa adesua yi mu di dwuma de hyɛ menu no mu ankasa. Sɛ wopɛ sɛ wubu so a, fa .dropdown-menu-left.
Nsɛmti a wɔde kyerɛw nsɛm
Fa asɛmti bi ka ho fa hyɛ nneyɛe afã horow din wɔ dropdown menu biara mu.
Fa bɔton ahorow a ɛtoatoa so no bom wɔ nkyerɛwde biako so ne bɔtn kuw no. Fa ka JavaScript radio a wopɛ ne checkbox style suban ho denam yɛn buttons plugin no so .
Tooltips & popovers wɔ button akuw mu hwehwɛ nhyehyɛe soronko
Sɛ wode adwinnade ho nsɛm anaa popovers redi dwuma wɔ element ahorow a ɛwɔ a mu a .btn-group, ɛsɛ sɛ wokyerɛ ɔkwan a wobɛfa container: 'body'so akwati nsunsuanso bɔne a wompɛ (te sɛ element no a ɛbɛtrɛw ne/anaasɛ ɛbɛhwere ne ntwea a ɛyɛ kurukuruwa bere a wɔafi ase adwinnade no ano anaa popover no).
Hwɛ sɛ ɛteɛ rolena fa ahyɛnsode bi ma
Sɛnea ɛbɛyɛ a mfiridwuma a ɛboa – te sɛ screen readers – bɛda no adi sɛ wɔaboaboa bɔtn ahorow a ɛtoatoa so ano no, roleɛsɛ sɛ wɔde su a ɛfata ma. Wɔ bɔtn akuw ho no, eyi bɛyɛ role="group", bere a ɛsɛ sɛ nnwinnade ahorow no nya role="toolbar".
Adeɛ baako a ɛfiri mu ne akuo a ɛwɔ control baako pɛ (sɛ nhwɛsoɔ no, button akuo a ɛfata a <button>ɛwɔ elements) anaasɛ dropdown.
Bio nso, ɛsɛ sɛ wɔma akuw ne nnwinnade ahorow no agyiraehyɛde a ɛda adi pefee, efisɛ anyɛ saa a, mmoa mfiridwuma dodow no ara remmɔ amanneɛ, ɛmfa ho sɛ rolesu a ɛteɛ no wɔ hɔ no. Wɔ nhwɛso ahorow a wɔde ama wɔ ha no mu no, yɛde aria-label, nanso wobetumi de akwan foforo te sɛ nea aria-labelledbywobetumi nso adi dwuma.
Nhwɛso titiriw
Fa mu kyekyere bɔtn ahorow a ɛtoatoa so no .btnho .btn-group.
Button adwinnade pon
Ka sets of <div class="btn-group">into a <div class="btn-toolbar">ma nneɛma a ɛyɛ den kɛse.
Sizing a wɔde yɛ nneɛma
Sɛ anka wode button sizing classes bedi dwuma wɔ button biara a ɛwɔ kuw bi mu no, fa ka .btn-group-*biara ho kɛkɛ .btn-group, a bere a woreyɛ nesting akuw pii ka ho.
Nesting a wɔde yɛ buw
Fa a .btn-groupto foforo mu .btn-groupbere a wopɛ sɛ wode dropdown menus frafra button ahorow a ɛtoatoa so no.
Ma bɔton kuw bi ntrɛw mu wɔ akɛse a ɛyɛ pɛ mu ma ɛtrɛw ne wofo no tɛtrɛtɛ nyinaa mu. Afei nso ɛyɛ adwuma ne button dropdowns wɔ button kuw no mu.
Ahye a wodi ho dwuma
Esiane HTML ne CSS pɔtee a wɔde di dwuma de kyerɛ sɛ bɔton ahorow no bem (a ɛne display: table-cell) nti, wɔma wɔn ntam ahye no yɛ mmɔho abien. Wɔ daa button akuw mu no, margin-left: -1pxwɔde di dwuma de stack borders no sen sɛ wobeyi afi hɔ. Nanso, marginɛnyɛ adwuma wɔ display: table-cell. Nea efi mu ba ne sɛ, egyina wo customizations to Bootstrap so no, ebia wobɛpɛ sɛ wuyi anaasɛ wosan de kɔla yɛ borders no.
IE8 ne ahyeɛ so
Internet Explorer 8 nkyerɛ borders wɔ buttons wɔ button kuw a ɛfata mu, sɛ ɛyɛ on <a>anaa <button>elements. Sɛ wopɛ sɛ wudi ho dwuma a, fa bɔtn biara kyekyere foforo .btn-group.
Sɛ wɔde <a>nneɛma no di dwuma sɛ bɔtɔn – ɛkanyan krataafa no mu dwumadi, sen sɛ wobɛkɔ krataa anaa ɔfã foforo a ɛwɔ kratafa a ɛwɔ hɔ mprempren no mu – ɛsɛ sɛ wɔma wɔn nso role="button".
Ne <button>element ahorow
Sɛ wode button akuw a ɛfata a <button>element ahorow wom bedi dwuma a, ɛsɛ sɛ wode button biara kyekyere button kuw bi mu . Browser dodow no ara mfa yɛn CSS no nni dwuma yiye mfa nkyerɛ sɛ <button>nneɛma teɛ, nanso esiane sɛ yɛboa button dropdowns nti, yebetumi ayɛ adwuma atwa saa asɛm no ho dwuma.
Button a ɛwɔ ase hɔ
Fa bɔtn biara di dwuma fa hyɛ menu a ɛwɔ ase no ase denam de a wode bɛto a mu .btn-groupna wode menu agyiraehyɛde a ɛfata ama no so.
Plugin a wɔde wɔn ho to so
Button dropdowns hwehwɛ sɛ wɔde dropdown plugin no ka wo Bootstrap version no ho.
Button biako a ɛwɔ ase
Dane bɔtn bi kɔ dropdown toggle a ɛwɔ markup nsakrae atitiriw bi.
Trɛw kratasin sohwɛ ahorow mu denam nsɛm anaa bɔtn ahorow a wode bɛka ho ansa na nsɛm biara a egyina nsɛm so no anim, akyi, anaa afã abien no nyinaa so <input>. Fa di dwuma .input-groupne .input-group-addonanaa .input-group-btnfa prepend anaa fa elements ka biako .form-controlho .
Nkyerɛwee <input>s nkutoo
Kwati sɛ wode <select>elements bedi dwuma wɔ ha efisɛ wontumi nsiesie no yiye wɔ WebKit browser ahorow mu.
Kwati sɛ wode <textarea>elements bedi dwuma wɔ ha efisɛ rowswɔrenni wɔn su no ni wɔ tebea horow bi mu.
Tooltips & popovers wɔ input akuw mu hwehwɛ nhyehyɛe soronko
Sɛ wode adwinnade ho nsɛm anaa popovers redi dwuma wɔ element ahorow a ɛwɔ an mu no so a .input-group, ɛsɛ sɛ wokyerɛ ɔkwan a wobɛfa container: 'body'so akwati nsunsuanso bɔne a wompɛ (te sɛ element no a ɛrenyin kɛse ne/anaasɛ ɛbɛhwere ne ntwea a ɛyɛ kurukuruwa bere a wɔafi ase adwinnade no ano anaa popover no).
Mfa nneɛma afoforo a ɛwom no nfrafra
Mfa fom akuo anaa grid column adesua nfra mu tẽẽ ne input akuo. Mmom, nest input kuw no wɔ fom kuw anaa grid-fam element no mu.
Fa nkyerɛwde ahorow ka ho bere nyinaa
Screen akenkanfoɔ bɛnya ɔhaw wɔ wo nkrataa no ho sɛ woamfa label anhyɛ biribiara a wode bɛhyɛ mu no mu a. Wɔ saa nsɛm a wɔde hyɛ mu akuo yi ho no, hwɛ sɛ wɔde nkyerɛwdeɛ anaa dwumadie foforɔ biara bɛma mfiridwuma a ɛboa.
Ɔkwan pɔtee a wɔde bedi dwuma (nneɛma a wotumi hu <label>, nneɛma a wɔde adesuakuw <label>no asie , anaasɛ , , , anaa su no a wode bedi dwuma) ne nsɛm foforo a ɛho behia sɛ wɔde ma no bɛsakra agyina interface widget pɔtee a wode redi dwuma no so. Nhwɛso ahorow a ɛwɔ ɔfã yi mu no de akwan kakraa bi a wɔahyɛ ho nyansa, a ɛfa asɛm pɔtee bi ho ma..sr-onlyaria-labelaria-labelledbyaria-describedbytitleplaceholder
Nhwɛso titiriw
Fa add-on anaa button biako gu input bi afã abien no nyinaa. Wubetumi nso de biako ahyɛ input bi afã abien no nyinaa.
Fa relative form sizing classes no ka no .input-groupankasa ho na emu nsɛm a ɛwɔ mu no bɛsesa ne kɛse ankasa —ɛho nhia sɛ wobɛsan ayɛ form control size classes no wɔ element biara so.
Nnaka a wɔde hyɛ mu ne radio so nneɛma a wɔde ka ho
Fa checkbox anaa radio option biara gu input group bi addon mu sen sɛ wode text bɛhyɛ mu.
Button a wɔde ka ho
Buttons a ɛwɔ input akuo mu no yɛ soronko kakra na ɛhia sɛ wɔde nesting level baako ka ho. Sɛ́ anka wode bedi dwuma no .input-group-addon, ɛho behia sɛ wode di dwuma .input-group-btnde kyekyere bɔtn ahorow no. Eyi ho hia esiane browser styles a wɔahyɛ da ayɛ a wontumi mfa nhyɛ so nti.
Buttons a ɛwɔ dropdowns so
Bɔton ahorow a wɔakyekyɛ mu
Bɔton ahorow pii
Bere a wubetumi anya ade biako pɛ a wode bɛka ho wɔ ɔfã biara no, wubetumi anya bɔtn pii wɔ biako .input-group-btnmu .
Navs
Navs a ɛwɔ Bootstrap mu no akyɛ markup, efi ase fi base .navclass no so, ne tebea horow a wɔakyekyɛ nso. Sesa modifier classes na dannan style biara ntam.
Sɛ wode navs di dwuma ma tab panels a, ɛhwehwɛ sɛ wode JavaScript tabs plugin di dwuma
Ma navs a wɔde di dwuma sɛ navigation no nyɛ nea wotumi nya
Sɛ wode navs redi dwuma de ama navigation bar a, hwɛ hu sɛ wode a bɛka role="navigation"ɔwofo container a ntease wom sen biara a ɛwɔ <ul>, anaasɛ fa <nav>element bi kyekyere navigation no nyinaa ho. Mfa dwuma no nka <ul>n’ankasa ho, efisɛ eyi remma mfiridwuma a ɛboa no rentumi mfa ho dawuru sɛ ɛyɛ din ankasa.
Tabs ahorow
Hyɛ no nsow sɛ .nav-tabsadesuakuw no hwehwɛ adesuakuw a ɛwɔ .navnnyinaso no.
Ɛnyɛ den sɛ yɛ tabs anaa pills a wɔn awofo no tɛtrɛtɛ yɛ pɛ wɔ screen ahorow a ɛtrɛw sen 768px a .nav-justified. Wɔ screen nketewa so no, wɔde nav links no ayɛ stack.
Navbar nav links a ɛfata mprempren no ntumi mmoa.
Safari ne mmuae a ɛfata navs
Ɛde besi v9.1.2 no, Safari da bɔne bi adi a sɛ wo browser no kɛse sesa no tẽẽ a, ɛde mfomso ba wɔ nkyerɛase mu wɔ nav a ɛfata no mu a wɔpopa bere a woasan ayɛ foforo no. Saa bɔne yi nso wɔakyerɛ wɔ nav nhwɛso a ɛfata no mu .
Navbars yɛ meta components a ɛyɛ mmuae a ɛyɛ adwuma sɛ navigation headers ma wo application anaa site no. Wofi ase hwe ase (na wotumi sesa) wɔ mobile views mu na ɛbɛyɛ horizontal bere a viewport a ɛwɔ hɔ no trɛw kɔ soro no.
Navbar nav links a ɛfata mprempren no ntumi mmoa.
Nsɛm a ɛwɔ mu a ɛboro so
Esiane sɛ Bootstrap nnim baabi dodow a nsɛm a ɛwɔ wo navbar no hia no nti, wubetumi ahyia nsɛm a ɛfa nsɛm a wɔde kyekyere ho wɔ row a ɛto so abien mu no ho. Sɛ wopɛ sɛ wusiesie eyi a, wubetumi:
Sesa beae a wo navbar no dannan kɔ collapsed ne horizontal mode ntam. Yɛ @grid-float-breakpointnsakrae no ho nhyehyɛe anaa fa w’ankasa media asɛmmisa no ka ho.
Ɛhwehwɛ sɛ wɔde JavaScript plugin di dwuma
Sɛ JavaScript no yɛ adwuma na viewport no yɛ teateaa araa ma navbar no bɛhwe ase a, ɛrentumi nyɛ yiye sɛ wobɛtrɛw navbar no mu na woahwɛ nsɛm a ɛwɔ .navbar-collapse.
Navbar a ɛyɛ mmuae no hwehwɛ sɛ wɔde collapse plugin no ka wo Bootstrap no ho.
Sesa mobile navbar breakpoint a abubu no
Navbar no hwe ase kɔ ne vertical mobile view no mu bere a viewport no yɛ teateaa sen @grid-float-breakpoint, na ɛtrɛw kɔ ne horizontal non-mobile view no mu bere a anyɛ yiye koraa no viewport no @grid-float-breakpointtrɛw. Sesa saa nsakraeɛ yi wɔ Less source no mu na hwɛ bere a navbar no bɛhwe ase/atrɛw. Default botae ne 768px("ketewa" anaa "tablet" screen ketewaa bi).
Ma navbars nyɛ nea wotumi de di dwuma
Hwɛ sɛ wode <nav>element bi bedi dwuma anaasɛ, sɛ wode element a ɛyɛ generic kɛse te sɛ a redi dwuma a <div>, fa a ka role="navigation"navbar biara ho de kyerɛ pefee sɛ ɛyɛ ɔmantam a ɛyɛ agyiraehyɛde ma wɔn a wɔde mmoa mfiridwuma di dwuma.
Brand mfonini
Fa w’ankasa mfonini si navbar brand no ananmu denam nkyerɛwee no a wobɛsesa de ayɛ <img>. Esiane sɛ the .navbar-brandno wɔ n’ankasa padding ne height nti, ebia ɛho behia sɛ wubu CSS bi so a egyina wo mfonini no so.
Nkyerɛwee ahorow
Fa fom mu nsɛm gu mu .navbar-formma ɛyɛ pɛpɛɛpɛ vertical alignment ne collapsed suban wɔ narrow viewports mu. Fa alignment options no si baabi a ɛte wɔ navbar no mu nsɛm no mu ho gyinae.
Sɛ́ heads up, .navbar-formkyɛ ne code no fã kɛse no ara ne .form-inlinevia mixin. Fom controls binom, te sɛ input groups, betumi ahwehwɛ sɛ fixed widths bɛda adi yiye wɔ navbar mu.
Mobile mfiri ho kɔkɔbɔ ahorow
Kɔkɔbɔ ahorow bi wɔ hɔ a ɛfa sɛnea wɔde form controls di dwuma wɔ fixed elements mu wɔ mobile devices so ho. Hwɛ yɛn browser support docs no ma nsɛm no mu nsɛm.
Fa nkyerɛwde ahorow ka ho bere nyinaa
Screen akenkanfoɔ bɛnya ɔhaw wɔ wo nkrataa no ho sɛ woamfa label anhyɛ biribiara a wode bɛhyɛ mu no mu a. Wɔ saa inline nkrataa yi ho no, wubetumi de .sr-onlyadesuakuw no asie nkyerɛwde ahorow no. Akwan foforo wɔ hɔ a wɔfa so de ahyɛnsode ma mfiridwuma a ɛboa, te sɛ aria-label, aria-labelledbyanaa titlesu no. Sɛ eyinom mu biara nni hɔ a, screen akenkanfo betumi de placeholdersu no adi dwuma, sɛ ɛwɔ hɔ a, nanso hyɛ no nsow sɛ wɔmfa nni dwuma placeholdersɛ nea wɔde besi akwan afoforo a wɔfa so kyerɛw nsɛm no ananmu.
Nsɛmma nhoma no
Fa .navbar-btnclass no ka <button>elements a ɛnte a mu no ho na <form>fa vertically center wɔn wɔ navbar no mu.
Nsɛm a ɛfa ho a wɔde di dwuma pɔtee
Te sɛ standard button classes , .navbar-btnwobetumi de adi dwuma wɔ <a>ne <input>elements. Nanso, .navbar-btnɛnsɛ sɛ wɔde standard button classes no mu biara di dwuma wɔ <a>elements a ɛwɔ .navbar-nav.
Atwerɛ
Fa nkyerɛwee nhama kyekyere element bi mu a .navbar-text, mpɛn pii no wɔ <p>tag so ma anim ne kɔla a ɛfata.
Nkitahodi ahorow a ɛnyɛ nav
Wɔ folks a wɔde standard links a ɛnyɛ daa navbar navigation component no mu di dwuma no, fa .navbar-linkclass no fa kɔla a ɛfata ka ho ma default ne inverse navbar options no.
Nneɛma a ɛwom no hyia
Fa nav links, forms, buttons, anaa nsɛm no hyɛ mu, fa .navbar-leftanaa .navbar-rightutility classes no di dwuma. Klas abien no nyinaa de CSS float bɛka ho wɔ ɔkwan a wɔakyerɛ no so. Sɛ nhwɛso no, sɛ wopɛ sɛ wo ne nav link ahorow no hyia a, fa gu ɔkwan soronko <ul>so a wɔde utility class a ɛfa ho no di dwuma.
Saa adesua ahorow yi yɛ mixin-ed nkyerɛase ahorow a ɛfa .pull-leftne .pull-right, nanso wɔde scoped kɔ media nsɛmmisa mu ma ɛyɛ mmerɛw sɛ wobedi navbar afã horow ho dwuma wɔ mfiri akɛse nyinaa mu.
Nneɛma pii a wɔde hyɛ mu nifa so
Navbars mprempren wɔ anohyeto bi a ɛwɔ .navbar-rightadesua ahorow pii mu. Sɛ yɛbɛma nsɛm a ɛwɔ mu no atena hɔ yiye a, yɛde negative margin di dwuma wɔ .navbar-rightelement a etwa to no so. Sɛ element ahorow pii wɔ hɔ a ɛde saa adesua no di dwuma a, saa margins yi nyɛ adwuma sɛnea wɔahyɛ da ayɛ no.
Yɛbɛsan akɔ eyi so bere a yebetumi asan akyerɛw saa component no wɔ v4 mu no.
Wɔasiesie no akɔ soro
Fa bi ka ho .navbar-fixed-topna fa ka ho .containerto .container-fluidmfinimfini ne pad navbar mu nsɛm.
Nipadua padding ho hia
Navbar a wɔahyɛ da ayɛ no bɛkata wo nsɛm foforo no so, gye sɛ wode ka paddingho wɔ <body>. Sɔ w’ankasa wo gyinapɛn ahorow hwɛ anaa fa yɛn snippet a ɛwɔ ase ha no di dwuma. Afotu: Sɛnea wɔahyɛ no, navbar no sorokɔ yɛ 50px.
Hwɛ sɛ wode eyi bɛka ho wɔ core Bootstrap CSS no akyi.
Wɔasiesie no akɔ ase
Fa bi ka ho .navbar-fixed-bottomna fa ka ho .containerto .container-fluidmfinimfini ne pad navbar mu nsɛm.
Nipadua padding ho hia
Navbar a wɔahyɛ no agyirae no bɛkata wo nsɛm afoforo no so, gye sɛ wode ka paddingho wɔ <body>. Sɔ w’ankasa wo gyinapɛn ahorow hwɛ anaa fa yɛn snippet a ɛwɔ ase ha no di dwuma. Afotu: Sɛnea wɔahyɛ no, navbar no sorokɔ yɛ 50px.
Hwɛ sɛ wode eyi bɛka ho wɔ core Bootstrap CSS no akyi.
Static a ɛwɔ soro
Yɛ navbar a ne tɛtrɛtɛ nyinaa a ɛne kratafa no kɔ denam anaa to mfinimfini ne pad navbar mu nsɛm a wode bɛka ho .navbar-static-topna wode ahyɛ mu no so..container.container-fluid
Fa nkratafa link ahorow ma wo wɛbsaet anaa app no a nkratafa pii fã no ka ho, anaasɛ pager foforo a ɛyɛ mmerɛw no .
Nkratafa a wɔahyɛ da ayɛ
Simple pagination inspired by Rdio, eye ma apps ne nhwehwɛmu aba. Block kɛse no yɛ den sɛ wobɛpa ho kyɛw, ɛnyɛ den sɛ wobɛsesa, na ɛma mmeae akɛse a wobɛbɔ.
Nkyerɛwde a wɔde kyerɛw krataafa no fã no
Ɛsɛ sɛ wɔde <nav>element bi kyekyere nkratafa no fã no ho de kyerɛ sɛ ɛyɛ ɔfã a wɔde kyerɛ kwan a wɔde bɛhwɛ akenkanfo ne mfiridwuma afoforo a ɛboa. Bio nso, esiane sɛ ɛda adi sɛ kratafa bi wɔ ɔfã a ɛte saa a wɔde kyerɛ kwan no bɛboro biako dedaw (te sɛ akwantu titiriw a ɛwɔ asɛmti no mu, anaasɛ ɔkwan a wɔfa so kɔ baabi a ɛwɔ nkyɛnkyɛn no), ɛyɛ papa sɛ wode nkyerɛkyerɛmu bi bɛma aria-labelma nea <nav>ɛda n’atirimpɔw adi. Sɛ nhwɛso no, sɛ wɔde kratafa no fã no di dwuma de fa nneɛma a wɔhwehwɛ no mu a, wobetumi de ahyɛnsode a ɛfata ayɛ aria-label="Search results pages".
Asɛm a wɔadi dɛm ne nea ɛreyɛ adwuma
Links yɛ customizable ma tebea horow. Fa di dwuma .disabledma link ahorow a wuntumi klik so na .activekyerɛ kratafa a ɛwɔ hɔ mprempren no.
Yɛhyɛ nyansa sɛ wobɛsesa anchor a ɛyɛ adwuma anaa wɔagyae adwuma no ama <span>, anaasɛ yi ankora no fi mu wɔ agyan a atwam/a edi hɔ no mu, na ama woayi klik dwumadi afi hɔ bere a wokora style ahorow a wopɛ sɛ woyɛ no so.
Sizing a wɔde yɛ nneɛma
Fancy kɛse anaa nketewa nkratafa? Fa ka ho .pagination-lganaasɛ wopɛ .pagination-smsɛ wonya akɛse afoforo.
Pager a wɔde kyerɛw nsɛm
Ntɛmntɛm a edi kan ne nea edi hɔ links ma simple pagination implementations a hann markup ne styles. Ɛyɛ papa ma nsɛmma nhoma a ɛnyɛ den te sɛ blog anaa nsɛmma nhoma.
Default nhwɛso
Sɛnea wɔahyɛ no, pager no de link ahorow no si mfinimfini.
Link ahorow a wɔahyehyɛ no pɛpɛɛpɛ
Sɛnea ɛbɛyɛ a, wubetumi de link biara ahyia afã horow no:
Optional disabled tebea
Pager links nso de general .disabledutility class a ɛfiri pagination no mu di dwuma.
Nneɛma a wɔde kyerɛw nsɛm
Nhwɛsoɔ
Nhwɛso asɛmti Foforo
Nhwɛso asɛmti Foforo
Nhwɛso asɛmti Foforo
Nhwɛso asɛmti Foforo
Nhwɛso asɛmti Foforo
Nhwɛso asɛmti Foforo
Nsonsonoe ahorow a ɛwɔ hɔ
Fa modifier classes a yɛaka ho asɛm wɔ aseɛ ha yi mu biara ka ho na sesa label bi hwɛbea.
Default Primary Success Info Kɔkɔbɔ Asiane
So wowɔ nkyerɛwde tɔn pii?
Nkyerɛase ho haw betumi aba bere a wowɔ inline labels du du pii wɔ container teateaa bi mu, a emu biara kura n’ankasa inline-blockelement (te sɛ icon). Ɔkwan a wɔfa so twa eyi ho hyia ne sɛ wɔbɛhyehyɛ display: inline-block;. Sɛ wopɛ nsɛm a ɛfa ho ne nhwɛso a, hwɛ #13219 .
Badge ahorow
Ɛnyɛ den sɛ wobɛtwe adwene asi nneɛma foforo anaa nea wonkenkanee so denam a <span class="badge">to links, Bootstrap navs, ne nea ɛkeka ho a wode bɛka ho no so.
Sɛ wopɛ sɛ jumbotron no trɛw yɛ pɛ, na enni ntwea a ɛyɛ kurukuruwa a, fa to .containers nyinaa akyi na mmom fa .containermu bi ka ho.
Kratafa no asɛmti
Shell a ɛnyɛ den ma an h1to a ɛfata space out na segment afã horow a ɛwɔ nsɛm a ɛwɔ kratafa bi so. Ebetumi de h1's default smallelement no adi dwuma, ne nneɛma afoforo dodow no ara (a ɛwɔ styles foforo).
Nhwɛso kratafa asɛmti Subtext for header
Mfonini nketewa
Trɛw Bootstrap grid nhyehyɛe no mu denam mfonini ketewa no fã no so na ama ɛnyɛ den sɛ wobɛda mfonini, video, nsɛm, ne nea ɛkeka ho grid adi.
Sɛ worehwehwɛ sɛ wobɛkyerɛ mfonini nketewa a ɛsono ne sorokɔ ne/anaasɛ ne tɛtrɛtɛ te sɛ Pinterest a, ɛho behia sɛ wode obi foforo plugin te sɛ Masonry , Isotope , anaa Salvattore di dwuma .
Default nhwɛso
Sɛnea wɔahyɛ no, wɔayɛ Bootstrap mfonini nketewa no sɛnea ɛbɛyɛ a ɛbɛkyerɛ mfonini ahorow a ɛwɔ abusuabɔ a ɛwɔ agyiraehyɛde kakraa bi a ɛho hia.
Nsɛm a wɔahyehyɛ a wɔahyɛ da ayɛ
Sɛ wode markup kakra ka ho a, ɛyɛ yie sɛ wode HTML nsɛm biara te sɛ nsɛmti, nkyekyɛm, anaa bɔtɔn bɛka mfonini nketewa ho.
Mfonini ketewaa bi a wɔde kyerɛw nsɛm
Cras justo odio, dapibus a ɛyɛ mmerɛw wɔ, egestas eget quam. Donec id elit a ɛnyɛ mi porta gravida wɔ eget metus. Nullam id dolor id nibh ultricies kar a wɔde di dwuma ut id elit.
Cras justo odio, dapibus a ɛyɛ mmerɛw wɔ, egestas eget quam. Donec id elit a ɛnyɛ mi porta gravida wɔ eget metus. Nullam id dolor id nibh ultricies kar a wɔde di dwuma ut id elit.
Cras justo odio, dapibus a ɛyɛ mmerɛw wɔ, egestas eget quam. Donec id elit a ɛnyɛ mi porta gravida wɔ eget metus. Nullam id dolor id nibh ultricies kar a wɔde di dwuma ut id elit.
Fa nsɛm a ɛfa ho nsɛm a wɔde ma ho nkrasɛm ma nneyɛe a ɛtaa ba a ɔde di dwuma no de nsa kakraa bi a ɛwɔ hɔ na ɛyɛ mmerɛw a wɔde bɔ kɔkɔ no ma.
Nhwɛso ahorow
Fa nsɛm biara ne dismiss button a wopɛ no kyekyere ne .alertnsɛm a ɛfa ho adesua ahorow anan no mu biako (sɛ nhwɛso no, .alert-success) ma kɔkɔbɔ nkrasɛm atitiriw.
Default class biara nni hɔ
Alerts nni default classes, ɛyɛ base ne modifier classes nko ara. Default gray alert no nnyɛ nteaseɛ pii, enti wɔhwehwɛ sɛ wokyerɛ type bi via contextual class. Paw fi nkonimdi, info, kɔkɔbɔ, anaa asiane mu.
Woayɛ adeɛ! Wokenkan kɔkɔbɔ nkrasɛm a ɛho hia yi yiye.
Ti a ɛwɔ soro! Saa kɔkɔbɔ yi hia w’adwene, nanso ɛnyɛ super important.
Kɔkɔbɔ! Better check yourself, wo nnyɛ fɛ dodo.
Oh snap! Sesa nneɛma kakraa bi na bɔ mmɔden sɛ wode bɛmena bio.
Kɔkɔbɔ ahorow a wɔpow
Fa kɔkɔbɔ biara si so denam .alert-dismissiblebɔtn a wopɛ ne nea wode to mu a wode bɛka ho no so.
Fa nsɛm a ɛyɛ foforo a ɛfa adwumayɛ nhyehyɛe anaa adeyɛ bi nkɔso ho ma denam nkɔso ho nsɛnkyerɛnne a ɛnyɛ den nanso ɛyɛ mmerɛw so.
Cross-browser a ɛne ne ho hyia
Nkɔsoɔ bars de CSS3 nsakraeɛ ne animations di dwuma de nya wɔn nsunsuansoɔ no bi. Saa nneɛma yi ntumi mmoa wɔ Internet Explorer 9 ne nea ɛwɔ ase ha anaa Firefox dedaw no mu. Opera 12 ntumi mmoa animations.
Nsɛm a Ɛwɔ Mu Ahobammɔ Nhyehyɛe (CSP) a ɛne no hyia
Sɛ wo wɛbsaet no wɔ Content Security Policy (CSP) a ɛmma ho kwan style-src 'unsafe-inline'a , ɛnde worentumi mfa inline styleattributes nni dwuma mfa nhyɛ nkɔso bar ntrɛwmu sɛnea wɔakyerɛ wɔ yɛn nhwɛso ahorow a ɛwɔ ase ha no mu no. Akwan foforo a wɔfa so hyehyɛ ntrɛwmu a ɛne CSP ahorow a ɛyɛ katee hyia no bi ne sɛ wode JavaScript kakra a wɔahyɛ da ayɛ (a ɛde element.style.width) bedi dwuma anaasɛ wode CSS adesua ahorow a wɔahyɛ da ayɛ.
Nhwɛso titiriw
Default nkɔso bar.
60% Awiei
Na wɔde label ahyɛ mu
Yi <span>with .sr-onlyclass no fi nkɔso bar no mu na kyerɛ ɔha biara mu nkyekyem a wotumi hu.
60% na ɛwɔ hɔ.
Sɛnea ɛbɛyɛ a wobɛhwɛ ahu sɛ label text no bɛkɔ so akenkan no ɔha biara mu nkyem a ɛba fam mpo no, susuw ho sɛ wode a bɛka min-widthnkɔso bar no ho.
0% na ɛwɔ hɔ.
2% na ɛwɔ hɔ.
Nsɛm a ɛfa ho a wɔde besi ananmu
Nkɔso bars de button ne kɔkɔbɔ adesua koro no ara bi di dwuma ma style ahorow a ɛkɔ so daa.
40% Awie (nkonimdi) .
20% Awiei
60% Awie (kɔkɔbɔ) .
80% Awie (asiane) .
Ntrɛwmu
Ɔde gradient di dwuma de yɛ striped effect. Ɛnyɛ nea ɛwɔ IE9 ne nea ɛwɔ ase ha no mu.
40% Awie (nkonimdi) .
20% Awiei
60% Awie (kɔkɔbɔ) .
80% Awie (asiane) .
Animade a wɔde yɛ nneɛma
Fa ka .activeho na .progress-bar-stripedama nsensanee no ayɛ adwuma wɔ nifa so akɔ benkum so. Ɛnyɛ nea ɛwɔ IE9 ne nea ɛwɔ ase ha no mu.
45% Awiei
Wɔaboaboa ano
Fa nnua pii gu biako mu na .progressfa boaboa ano.
35% Awie (nkonimdi) .
20% Awie (kɔkɔbɔ) .
10% Awie (asiane) .
Media ade a wɔde di dwuma
Abstract object styles a wɔde si nneɛma ahorow ahorow (te sɛ blog nsɛm, Tweets, ne nea ɛkeka ho) a ɛkyerɛ mfonini a ɛwɔ benkum anaa nifa a ɛka nkyerɛwee mu nsɛm ho.
Media a wɔde ahyɛ hɔ
Default media no kyerɛ media adeɛ bi (mfonini, video, ɔdio) wɔ benkum anaa nifa so wɔ content block bi so.
Nsɛm ho amanneɛbɔfo asɛmti
Cras tena amet nibh libero, wɔ gravida nulla mu. Nulla vel metus scelerisque a wɔde di dwuma wɔ ɔkwan a ɛyɛ hu so. Cras purus odio, ahurututu a ɛwɔ ahurututu mu wɔ, tempus viverra turpis. Fusce condimentum nunc ac nisi akyi berɛmo a ɛyɛ mmerɛw. Donec lacinia congue felis a ɛwɔ faucibus mu.
Nsɛm ho amanneɛbɔfo asɛmti
Cras tena amet nibh libero, wɔ gravida nulla mu. Nulla vel metus scelerisque a wɔde di dwuma wɔ ɔkwan a ɛyɛ hu so. Cras purus odio, ahurututu a ɛwɔ ahurututu mu wɔ, tempus viverra turpis. Fusce condimentum nunc ac nisi akyi berɛmo a ɛyɛ mmerɛw. Donec lacinia congue felis a ɛwɔ faucibus mu.
Nested media asɛmti
Cras tena amet nibh libero, wɔ gravida nulla mu. Nulla vel metus scelerisque a wɔde di dwuma wɔ ɔkwan a ɛyɛ hu so. Cras purus odio, ahurututu a ɛwɔ ahurututu mu wɔ, tempus viverra turpis. Fusce condimentum nunc ac nisi akyi berɛmo a ɛyɛ mmerɛw. Donec lacinia congue felis a ɛwɔ faucibus mu.
Nsɛm ho amanneɛbɔfo asɛmti
Cras tena amet nibh libero, wɔ gravida nulla mu. Nulla vel metus scelerisque a wɔde di dwuma wɔ ɔkwan a ɛyɛ hu so. Cras purus odio, ahurututu a ɛwɔ ahurututu mu wɔ, tempus viverra turpis.
Nsɛm ho amanneɛbɔfo asɛmti
Cras tena amet nibh libero, wɔ gravida nulla mu. Nulla vel metus scelerisque a wɔde di dwuma wɔ ɔkwan a ɛyɛ hu so. Cras purus odio, ahurututu a ɛwɔ ahurututu mu wɔ, tempus viverra turpis.
Classes no .pull-leftne .pull-rightnso wɔ hɔ na na wɔadi kan de adi dwuma sɛ media component no fã, nanso wɔagyae ama saa dwumadie no sɛdeɛ ɛfiri v3.3.0. Wɔbɛyɛ sɛ ɛne .media-leftne .media-right, gye sɛ .media-rightɛsɛ sɛ wɔde si akyi .media-bodywɔ html no mu.
Nsɛm ho amanneɛbɔfo a wɔde wɔn ho hyɛ mu
Wobetumi de mfonini ahorow no anaa nsɛm ho amanneɛbɔ afoforo ayɛ pɛpɛɛpɛ wɔ soro, mfinimfini, anaa ase. Default no yɛ top aligned.
Top aligned nsɛm ho amanneɛbɔ
Cras tena amet nibh libero, wɔ gravida nulla mu. Nulla vel metus scelerisque a wɔde di dwuma wɔ ɔkwan a ɛyɛ hu so. Cras purus odio, ahurututu a ɛwɔ ahurututu mu wɔ, tempus viverra turpis. Fusce condimentum nunc ac nisi akyi berɛmo a ɛyɛ mmerɛw. Donec lacinia congue felis a ɛwɔ faucibus mu.
Donec sed odio dui. Nullam quis risus eget urna mollis a ɛyɛ fɛ a ɛyɛ fɛ a ɛyɛ fɛ. Cum sociis natoque penatibus ne magnis awo montes, nascetur fɛwdi mus.
Nsɛm ho amanneɛbɔ a ɛwɔ mfinimfini
Cras tena amet nibh libero, wɔ gravida nulla mu. Nulla vel metus scelerisque a wɔde di dwuma wɔ ɔkwan a ɛyɛ hu so. Cras purus odio, ahurututu a ɛwɔ ahurututu mu wɔ, tempus viverra turpis. Fusce condimentum nunc ac nisi akyi berɛmo a ɛyɛ mmerɛw. Donec lacinia congue felis a ɛwɔ faucibus mu.
Donec sed odio dui. Nullam quis risus eget urna mollis a ɛyɛ fɛ a ɛyɛ fɛ a ɛyɛ fɛ. Cum sociis natoque penatibus ne magnis awo montes, nascetur fɛwdi mus.
Nsɛm ho amanneɛbɔ a wɔahyɛ no agyirae wɔ ase
Cras tena amet nibh libero, wɔ gravida nulla mu. Nulla vel metus scelerisque a wɔde di dwuma wɔ ɔkwan a ɛyɛ hu so. Cras purus odio, ahurututu a ɛwɔ ahurututu mu wɔ, tempus viverra turpis. Fusce condimentum nunc ac nisi akyi berɛmo a ɛyɛ mmerɛw. Donec lacinia congue felis a ɛwɔ faucibus mu.
Donec sed odio dui. Nullam quis risus eget urna mollis a ɛyɛ fɛ a ɛyɛ fɛ a ɛyɛ fɛ. Cum sociis natoque penatibus ne magnis awo montes, nascetur fɛwdi mus.
Nsɛm ho amanneɛbɔfo din
Sɛ wode markup foforo kakra di dwuma a, wubetumi de media adi dwuma wɔ list mu (ɛho wɔ mfaso ma comment threads anaa articles lists).
Nsɛm ho amanneɛbɔfo asɛmti
Cras tena amet nibh libero, wɔ gravida nulla mu. Nulla vel metus scelerisque a wɔde di dwuma wɔ ɔkwan a ɛyɛ hu so. Cras purus odio, ahurututu a ɛwɔ ahurututu mu wɔ, tempus viverra turpis.
Nested media asɛmti
Cras tena amet nibh libero, wɔ gravida nulla mu. Nulla vel metus scelerisque a wɔde di dwuma wɔ ɔkwan a ɛyɛ hu so. Cras purus odio, ahurututu a ɛwɔ ahurututu mu wɔ, tempus viverra turpis.
Nested media asɛmti
Cras tena amet nibh libero, wɔ gravida nulla mu. Nulla vel metus scelerisque a wɔde di dwuma wɔ ɔkwan a ɛyɛ hu so. Cras purus odio, ahurututu a ɛwɔ ahurututu mu wɔ, tempus viverra turpis.
Nested media asɛmti
Cras tena amet nibh libero, wɔ gravida nulla mu. Nulla vel metus scelerisque a wɔde di dwuma wɔ ɔkwan a ɛyɛ hu so. Cras purus odio, ahurututu a ɛwɔ ahurututu mu wɔ, tempus viverra turpis.
Kyerɛw kuw no din
List akuo yɛ ade a ɛyɛ mmerɛw na ɛwɔ tumi a ɛnyɛ nneɛma a wɔahyehyɛ a ɛnyɛ den nko na ɛkyerɛ, na mmom nea ɛyɛ den a ɛwɔ nsɛm a wɔahyɛ da ayɛ.
Nhwɛso titiriw
List kuw a ɛho hia sen biara no yɛ list a wɔanhyehyɛ no pɛpɛɛpɛ a list nneɛma wom, ne adesua ahorow a ɛfata ara kwa. Fa akwan horow a edi hɔ no si so, anaa w’ankasa CSS sɛnea ɛho hia.
Cras justo odio a ɔyɛ ɔkwasea
Dapibus ac adwumayɛbea a ɛwɔ
Morbi leo a ɛwɔ soro no
Porta ac consectetur a ɛyɛ nea ɛyɛ nwonwa
Vestibulum a ɛwɔ eros no
Badge ahorow
Fa badges component no ka list group adeɛ biara ho na ɛbɛsi nifa so ankasa.
14. 15Cras justo odio a ɔyɛ ɔkwasea
2. 2.Dapibus ac adwumayɛbea a ɛwɔ
1. 1.Morbi leo a ɛwɔ soro no
Nneɛma a wɔde abɔ mu
Fa list kuw nneɛma bata ho denam anchor tags a wode bedi dwuma sen sɛ wode list nneɛma bedi dwuma (ɛno nso kyerɛ ɔwofo <div>mmom sen sɛ wode bedi dwuma <ul>). Ɛho nhia sɛ wɔde awofo ankorankoro bɛtwa element biara ho ahyia.
List kuw nneɛma betumi ayɛ buttons mmom sen list items (ɛno nso kyerɛ ɔwofo <div>mmom sen sɛ ɛbɛyɛ <ul>). Ɛho nhia sɛ wɔde awofo ankorankoro bɛtwa element biara ho ahyia. Mfa standard .btnclasses no nni dwuma wɔ ha.
Nneɛma a wɔadi dɛm
Fa ka .disableda ho .list-group-itemma ɛyɛ fitaa na ɛbɛyɛ te sɛ nea wɔadi dɛm.
Bere a ɛnyɛ bere nyinaa na ɛho hia no, ɛtɔ mmere bi a ɛsɛ sɛ wode wo DOM no gu adaka mu. Sɛ wopɛ saa tebea horow no a, sɔ panel no fã no hwɛ.
Nhwɛso titiriw
Sɛnea wɔahyɛ no, nea ɛyɛ .panelara ne sɛ wode mfitiase border ne padding bi bedi dwuma de ahyɛ nsɛm bi mu.
Mfitiaseɛ panel nhwɛsoɔ
Panel a ɛwɔ asɛmti
Ɛnyɛ den sɛ wode asɛmti ahina bi bɛka wo panel no ho denam .panel-heading. Wubetumi nso de biara aka ho a wode adesuakuw bi aka ho de atiri a woadi kan woahyehye aka ho <h1>. Nanso, font akɛse a ɛwɔ - no yɛ nea wɔde .<h6>.panel-title<h1><h6>.panel-heading
Sɛ wopɛ sɛ wode link ahorow no kɔla yiye a, hwɛ hu sɛ wode link ahorow bɛhyɛ nsɛmti ahorow mu wɔ .panel-title.
Panel asɛmti a enni asɛmti
Panel mu nsɛm
Panel no asɛmti
Panel mu nsɛm
Panel a ɛwɔ ase hɔ
Fa bɔton anaa nsɛm a ɛto so abien kyekyere ho wɔ .panel-footer. Hyɛ no nsow sɛ panel footers nnya kɔla ne ahye bere a wode nsɛm a ɛfa ho mu nsakrae redi dwuma efisɛ ɛnyɛ nea wɔahyɛ da ayɛ sɛ ɛbɛba anim.
Panel mu nsɛm
Nsɛm a ɛfa ho a wɔde besi ananmu
Te sɛ nneɛma afoforo no, ɛnyɛ den sɛ wobɛma panel bi ayɛ nea ntease wom kɛse wɔ nsɛm pɔtee bi mu denam nsɛm a ɛfa ho tebea adesua ahorow no mu biara a wode bɛka ho no so.
Panel no asɛmti
Panel mu nsɛm
Panel no asɛmti
Panel mu nsɛm
Panel no asɛmti
Panel mu nsɛm
Panel no asɛmti
Panel mu nsɛm
Panel no asɛmti
Panel mu nsɛm
Ne pon ahorow
Fa biribiara a ɛnyɛ bordered .tableka panel bi mu ma seamless design. Sɛ ɛwɔ hɔ a .panel-body, yɛde ɔhye foforo ka pon no atifi ma mpaapaemu.
Panel asɛmti
Ebinom default panel nsɛm wɔ ha. Nulla vitae elit libero, a ɛyɛ aduru a wɔde di dwuma wɔ ɔkwan a ɛyɛ nwonwa so. Aenean lacinia bibendum a ɛyɛ mmerɛw sɛ wɔbɛbɔ no. Aenean eu leo quam. Pellentesque ornare sem lacinia a ɛwɔ akyi no. Nullam id dolor id nibh ultricies kar a wɔde di dwuma ut id elit.
# .
Fie din
Abusuadin
Edin a wɔde di dwuma
1. 1.
Marko
Otto na ɔkyerɛwee
@mdo na ɔkyerɛwee
2. 2.
Yakob
Thornton na ɔkyerɛwee
@kɛseɛ
3. 3
Larry na ɔkyerɛwee
Anomaa no
@twitter so
Sɛ panel nipadua biara nni hɔ a, component no fi panel header so kɔ table so a biribiara ntwitware mu.
Ebinom default panel nsɛm wɔ ha. Nulla vitae elit libero, a ɛyɛ aduru a wɔde di dwuma wɔ ɔkwan a ɛyɛ nwonwa so. Aenean lacinia bibendum a ɛyɛ mmerɛw sɛ wɔbɛbɔ no. Aenean eu leo quam. Pellentesque ornare sem lacinia a ɛwɔ akyi no. Nullam id dolor id nibh ultricies kar a wɔde di dwuma ut id elit.
Cras justo odio a ɔyɛ ɔkwasea
Dapibus ac adwumayɛbea a ɛwɔ
Morbi leo a ɛwɔ soro no
Porta ac consectetur a ɛyɛ nea ɛyɛ nwonwa
Vestibulum a ɛwɔ eros no
Mmuae a wɔde hyɛ mu
Ma browser ahorow no kwan ma wonhu video anaa slideshow nsusuwii ahorow a egyina wɔn block a ɛwɔ mu no trɛw so denam intrinsic ratio a wɔbɛyɛ a ɛbɛkɔ soro yiye wɔ mfiri biara so no so.
Wɔde mmara di dwuma tẽẽ wɔ <iframe>, <embed>, <video>, ne <object>nneɛma ahorow ho; sɛ wopɛ sɛ wode aseni adesuakuw a ɛda adi pefee di dwuma .embed-responsive-itembere a wopɛ sɛ wo ne styling no hyia ma su afoforo no.
Pro-Afotusɛm! Ɛho nhia sɛ wode ka frameborder="0"wo <iframe>s ho bere a yɛrebu saa asɛm no so ama wo no.
Wells
Default no yiye
Fa abura no di dwuma sɛ nkɛntɛnso a ɛnyɛ den wɔ element bi so na ama no nsunsuanso a ɛwɔ mu.
Hwɛ, mewɔ abura bi mu!
Adesua ahorow a wobetumi apaw
Control padding ne kurukuruwa ntwea so ne abien optional modifier adesuakuw.