Glifikɔn dɛn

Glif dɛn we de

Inklud ova 250 glif dɛn insay font fɔmat frɔm di Glyphicon Halflings sɛt. Glyphicons Halflings nɔmal wan nɔ de fɔ fri, bɔt di wan we mek dɛn dɔn mek dɛn de fɔ Bootstrap fɔ fri. As tɛnki, wi jɔs de aks yu fɔ put link bak to Glyphicons ɛnitɛm we i pɔsibul.

  • glifikɔn glifikɔn-asterisk
  • glifikɔn glifikɔn-plɔs
  • glifikɔn glifikɔn-yuro
  • glifikɔn glifikɔn-eur
  • glifikɔn glifikɔn-maynɔs
  • glifikɔn glifikɔn-klawd
  • glifikɔn glifikɔn-ɛnvɔlɔp
  • glifikon glifik-pensil
  • glifikɔn glifikɔn-glas
  • glyphicon glifikon-myuzik
  • glyphicon glifikɔn-sɔch
  • glifikɔn glifikɔn-at
  • glifikɔn glifik-sta
  • glifikɔn glifikɔn-sta-ɛmti
  • glyphicon glyphicon-yuzman fɔ di wan dɛn we de yuz am
  • glifikɔn glifikɔn-film
  • glifikɔn glifikɔn-th-big
  • glifikɔn glifikɔn-th
  • glifikɔn glifikɔn-th-list
  • glifikɔn glifikɔn-ok
  • glifikɔn glifik-rimov
  • glifikɔn glifik-zum-in
  • glifikɔn glifik-zum-ɔut
  • glifikɔn glifikɔn-ɔf
  • glifikɔn glifikɔn-sayn
  • glifikɔn glifikɔn-kɔg
  • glifikɔn glifikɔn-trash
  • glifikɔn glifikɔn-os
  • glifikɔn glifik-fayl
  • glifikɔn glifikɔn-taym
  • glifikɔn glifik-road
  • glyphicon glyphicon-dɔwnlod-alt
  • glyphicon glifik-dɔwnlod
  • glyphicon glifik-ɔplod
  • glifikɔn glifik-inbɔks
  • glifikɔn glifik-play-sɛklɔ
  • glifikɔn glifikɔn-ripit
  • glifikɔn glifikɔn-rifresh
  • glifikon glifik-list-alt
  • glifikɔn glifikɔn-lɔk
  • glifikon glifik-flag
  • glyphicon glyphicon-hɛdfɔn dɛn
  • glifikɔn glifikɔn-volyum-ɔf
  • glifikɔn glifikɔn-volyum-dɔwn
  • glifikɔn glifikɔn-volyum-ɔp
  • glifikɔn glifikɔn-qrkɔd
  • glifikɔn glifik-bakɔd
  • glifikɔn glifikɔn-tag
  • glifikon glifik-tag dɛn
  • glyphicon glifik-buk
  • glifikon glifik-bukmak
  • glifikɔn glifik-print
  • glyphicon glifikon-kamɛra
  • glifikɔn glifik-font
  • glifikɔn glifik-bold
  • glifikon glifikon-italik
  • glyphicon glyphicon-tɛks-ayt
  • glyphicon glyphicon-tɛks-width
  • glifikɔn glifikɔn-alayn-lɛft
  • glifikɔn glifikɔn-alayn-sɛnt
  • glifikɔn glifikɔn-alayn-rayt
  • glifikɔn glifikɔn-alayn-jɔstifay
  • glifikɔn glifik-list
  • glifikɔn glifikɔn-indent-lɛft
  • glifikon glifik-indent-rayt
  • glyphicon glyphicon-festaym-vidio
  • glyphicon glifikon-pikchɔ
  • glifikɔn glifikɔn-map-mak
  • glifikɔn glifik-adjɔst
  • glifikɔn glifikɔn-tint
  • glifikɔn glifikɔn-ɛdit
  • glifikɔn glifikɔn-shɛri
  • glyphicon glifikon-chɛk
  • glifikɔn glifikɔn-muv
  • glifikɔn glifikɔn-stɛp-bakwɔd
  • glifikɔn glifikɔn-fast-bakwɔd
  • glifikɔn glifikɔn-bakwɔd
  • glifikɔn glifik-play
  • glifikɔn glifikɔn-pɔz
  • glifikɔn glifik-stɔp
  • glifikɔn glifikɔn-fɔwad
  • glyphicon glyphicon-fast-fɔwad
  • glyphicon glyphicon-stɛp-fɔwad
  • glifikɔn glifikɔn-ɛjɛkt
  • glifikɔn glifikɔn-chɛvrɔn-lɛft
  • glifikɔn glifikɔn-chɛvrɔn-rayt
  • glifikɔn glifikɔn-plɔs-sayn
  • glifikɔn glifikɔn-maynɔs-sayn
  • glyphicon glyphicon-rimov-sayn
  • glifikon glifik-ok-sayn
  • glyphicon glyphicon-kwɛshɔn-sayn
  • glifikon glifik-info-sayn
  • glyphicon glyphicon-skrin sho
  • glyphicon glyphicon-rimov-sɛklɔ
  • glifikɔn glifikɔn-ok-sɛklɔ
  • glifikɔn glifikɔn-ban-sɛklɔ
  • glifikɔn glifikɔn-aro-lɛft
  • glifikɔn glifikɔn-aro-rayt
  • glifikɔn glifikɔn-aro-ɔp
  • glifikɔn glifikɔn-aro-dɔwn
  • glifikɔn glifikɔn-shɛri-alt
  • glifikɔn glifikɔn-rizayz-ful
  • glifikɔn glifikɔn-sayz-smɔl
  • glyphicon glyphicon-ɛksklamashɔn-sayn
  • glifikon glifik-gift
  • glifikɔn glifikɔn-lif
  • glifikɔn glifikɔn-faya
  • glifikɔn glifikɔn-ay-opin
  • glifikɔn glifikɔn-ay-klos
  • glyphicon glyphicon-wɔnin-sayn
  • glifikɔn glifikɔn-plɛyn
  • glyphicon glyphicon-kalɛnda fɔ di wan dɛn we de yuz am
  • glifikɔn glifikɔn-random
  • glyphicon glyphicon-kɔmɛnt
  • glifikɔn glifikɔn-magnet
  • glifikɔn glifikɔn-chɛvrɔn-ɔp
  • glifikɔn glifikɔn-chɛvrɔn-dɔwn
  • glifikɔn glifik-ritwit
  • glyphicon glyphicon-shopin-kat
  • glyphicon glyphicon-fɔlda-klos
  • glyphicon glyphicon-fɔlda-opin
  • glifikɔn glifikɔn-rizayz-vɛtikal
  • glifikɔn glifikɔn-rizayz-ɔrizɔntal
  • glifikɔn glifikɔn-hdd
  • glifikɔn glifikɔn-bulhɔn
  • glifikɔn glifikɔn-bɛl
  • glyphicon glifikɔn-sɛtifiket
  • glifikɔn glifikɔn-thumbs-up
  • glyphicon glyphicon-tumbs-dɔwn
  • glifikɔn glifikɔn-an-rayt
  • glyphicon glyphicon-han-lɛf
  • glifikɔn glifik-han-ɔp
  • glifikɔn glifik-an-dɔwn
  • glifikɔn glifikɔn-sɛklɔ-aro-rayt
  • glifikɔn glifikɔn-sɛklɔ-aro-lɛft
  • glifikɔn glifikɔn-sɛklɔ-aro-ɔp
  • glifikɔn glifikɔn-sɛklɔ-aro-dɔwn
  • glifikɔn glifikɔn-glob
  • glifikon glifik-rɛnch
  • glyphicon glifik-task dɛn
  • glifikɔn glifik-filta
  • glifikɔn glifik-brifkɛs
  • glifikon glifik-fulskrin
  • glyphicon glyfikon-dɛshbɔd
  • glifikon glifik-pepa klip
  • glyphicon glyphicon-at-ɛmti
  • glifikɔn glifik-link
  • glyphicon glifikon-fon
  • glifikon glifik-pushpin
  • glifikɔn glifikɔn-usd
  • glifikɔn glifikɔn-gbp
  • glifikɔn glifikɔn-sɔrt
  • glyphicon glyphicon-sɔt-bay-alfabɛt
  • glyphicon glyphicon-sɔt-bay-alfabɛt-alt
  • glyphicon glyphicon-sɔt-bay-ɔda
  • glyphicon glyphicon-sɔt-bay-ɔda-alt
  • glyphicon glyphicon-sɔt-bay-atribyut dɛn
  • glyphicon glyphicon-sɔt-bay-atribyut dɛn-alt
  • glyphicon glyphicon-dɛn nɔ chɛk am
  • glifikɔn glifikɔn-ɛkspɛnd
  • glifikɔn glifikɔn-kɔlaps-dɔwn
  • glifikɔn glifikɔn-kɔlaps-ɔp
  • glifikɔn glifikɔn-lɔg-in
  • glifikon glifik-flash
  • glifikɔn glifik-lɔg-ɔut
  • glyphicon glyphicon-nyu-windo
  • glifikɔn glifik-rɛkɔd
  • glyphicon glyphicon-sev fɔ di wan dɛn we de yuz am
  • glifikɔn glifikɔn-opin
  • glyphicon glyphicon-we dɛn dɔn sev
  • glifikɔn glifikɔn-impɔt
  • glifikɔn glifik-ɛkspɔt
  • glyphicon glifikon-sɛnd
  • glyphicon glifikon-flɔpi-disk
  • glyphicon glyphicon-flopi-we dɛn dɔn sev
  • glyphicon glyphicon-flɔpi-rimov
  • glyphicon glyphicon-flɔpi-sɛv
  • glyphicon glyphicon-flɔpi-opin
  • glyphicon glyphicon-krɛdit-kad fɔ di wan dɛn we de yuz am
  • glifikɔn glifikɔn-transfɛr
  • glyphicon glifikon-kɔtlɛri
  • glifikɔn glifik-hɛda
  • glifikɔn we dɛn kɔmprɛs wit glifikɔn
  • glyphicon glyphicon-ɛyafon
  • glifikon glifik-fon-alt
  • glifikɔn glifik-tawa
  • glifikɔn glifik-stat dɛn
  • glyphicon glyphicon-sd-vidio fɔ di wan dɛn we de yuz am
  • glyphicon glyfikon-hd-vidio fɔ di wan dɛn we de yuz am
  • glyphicon glifik-sɔbtaytul dɛn
  • glifikɔn glifikɔn-sawnd-stɛriɔ
  • glifikɔn glifikɔn-sawnd-dɔlbi
  • glifikon glifik-sawnd-5-1
  • glifikon glifik-sawnd-6-1
  • glifikon glifik-sawnd-7-1
  • glyphicon glyphicon-kɔpirayt-mak
  • glyphicon glyphicon-rɛjista-mak
  • glyphicon glyphicon-klawd-dɔwnlɔd
  • glyphicon glyphicon-klawd-ɔplɔd
  • glifikɔn glifikɔn-tri-kɔnifa
  • glyphicon glyphicon-tri-di-dεsiduɔs
  • glifikɔn glifikɔn-cd
  • glyphicon glyphicon-sɛv-fayl
  • glyphicon glyphicon-opin-fayl
  • glifikɔn glifikɔn-lɛvɛl-ɔp
  • glifikɔn glifikɔn-kɔpi
  • glifikɔn glifik-paste
  • glifikɔn glifikɔn-alɛt
  • glifikɔn glifikɔn-ɛkwalayza
  • glifikon glifik-kiŋ
  • glifikɔn glifikɔn-kwin
  • glifikon glifik-pawn
  • glifikɔn glifikɔn-bishɔp
  • glyphicon glifikon-nayt
  • glifikɔn glifikɔn-bebi-fɔmula
  • glifikɔn glifikɔn-tɛnt
  • glifikon glifik-blakbɔd
  • glifikɔn glifik-bed
  • glifikɔn glifikɔn-apul
  • glifikɔn glifik-ɛras
  • glifikɔn glifikɔn-awaglas
  • glifikɔn glifikɔn-lamp
  • glifikɔn glifikɔn-duplikɛt
  • glifikɔn glifikɔn-pig-bank
  • glifikɔn glifikɔn-siza dɛn
  • glifikɔn glifik-bitkɔyn
  • glifikɔn glifikɔn-btc
  • glifikɔn glifikɔn-xbt
  • glifikɔn glifikɔn-yen
  • glifikɔn glifikɔn-jpy
  • glifikon glifik-rubul
  • glifikɔn glifikɔn-rɔb
  • glifikɔn glifik-skel
  • glifikɔn glifikɔn-ays-lɔli
  • glifikɔn glifikɔn-ays-lɔli-tɛst
  • glifikɔn glifikɔn-edukeshɔn
  • glifikɔn glifikɔn-opshɔn-ɔrizɔntal
  • glifikɔn glifikɔn-opshɔn-vɛtikal
  • glifikon glifik-mɛnyu-hamburger
  • glifikɔn glifikɔn-mɔdal-windo
  • glifikɔn glifikɔn-ɔyl
  • glifikɔn glifikɔn-grɛyn
  • glyphicon glyphicon-sanglas dɛn we de na di san
  • glyphicon glyphicon-tɛks-sayz
  • glyphicon glyphicon-tɛks-kɔlɔ
  • glyphicon glyphicon-tɛks-bakgrɔn
  • glifikɔn glifikɔn-ɔbjɛkt-alayn-tɔp
  • glifikɔn glifikɔn-ɔbjɛkt-alayn-bɔt
  • glifikɔn glifikɔn-ɔbjɛkt-alayn-ɔrizɔntal
  • glifikɔn glifikɔn-ɔbjɛkt-alayn-lɛft
  • glifikɔn glifikɔn-ɔbjɛkt-alayn-vɛtikal
  • glifikɔn glifikɔn-ɔbjɛkt-alayn-rayt
  • glifikɔn glifikɔn-trayangul-rayt
  • glifikɔn glifikɔn-trayangul-lɛft
  • glifikɔn glifikɔn-trayangul-bɔt
  • glifikɔn glifikɔn-triangul-tɔp
  • glyphicon glifikon-kɔnsol
  • glifikɔn glifikɔn-supaskript
  • glifikɔn glifikɔn-sabskript
  • glyphicon glyphicon-mɛnyu-lɛft
  • glyphicon glyphicon-mɛnyu-rayt
  • glifikɔn glifik-mɛnyu-dɔwn
  • glifikɔn glifik-mɛnyu-ɔp

Aw fɔ yuz am

Fɔ pefɔmɛns rizin, ɔl di aykɔn dɛn nid fɔ gɛt bays klas ɛn wan wan aykɔn klas. Fɔ yuz am, put di kɔd we de dɔŋ ya jɔs lɛk ɛnisay. Mek shɔ se yu lɛf say bitwin di aykɔn ɛn di tɛks fɔ mek yu ebul fɔ pad fayn fayn wan.

Nɔ miks wit ɔda kɔmpɔnɛnt dɛn

Aykɔn klas dɛn nɔ kin ebul fɔ jɔyn dairekt wit ɔda kɔmpɔnɛnt dɛn. Dɛn nɔ fɔ yuz dɛn wit ɔda klas dɛn pan di sem ɛlimɛnt. Bifo dat, ad wan nest <span>ɛn yuz di aykɔn klas dɛn to di <span>.

Na fɔ yuz nɔmɔ pan ɛmti ɛlimɛnt dɛn

Aykɔn klas dɛn fɔ jɔs yuz pan ɛlimɛnt dɛn we nɔ gɛt tɛks kɔntinyu ɛn we nɔ gɛt pikin ɛlimɛnt dɛn.

We yu de chenj di say we di aykɔn font de

Bootstrap de tek am se aykɔn font fayl dɛn go de na di ../fonts/dairektrɔ, rilitiv to di CSS fayl dɛn we dɛn dɔn kɔmpilayt. Fɔ muv ɔ chenj di nem fɔ dɛn font fayl dɛn de min se yu fɔ ɔpdet di CSS wan pan tri we dɛn:

  • Chenj di @icon-font-pathɛn/ɔ @icon-font-namedi vayriɔbul dɛn na di sɔs Les fayl dɛn.
  • Yuz di rilitiv URL dɛn opshɔn we di Less kɔmpayla dɔn gi.
  • Chenj di url()rod dɛn na di CSS we dɛn dɔn kɔmpilayt.

Yuz ɛni opshɔn we go fayn fɔ yu spɛshal divɛlɔpmɛnt sɛtup.

Aykɔn dɛn we pɔsin kin ebul fɔ yuz

Di mɔdan vɛshɔn dɛn fɔ ɛp tɛnkɔlɔji dɛn go anɔys kɔntinyu we CSS dɔn mek, ɛn bak sɔm patikyula Yunikɔd aks dɛn. Fɔ avɔyd autput we dɛn nɔ bin want ɛn kɔnfyus insay skrin rida dɛn (patikula we dɛn de yuz aykɔn dɛn jɔs fɔ dɛkɔreshɔn), wi de ayd dɛn wit di aria-hidden="true"atribyut.

If yu de yuz aykɔn fɔ gi minin (pas fɔ jɔs bi dɛkɔretiv ɛlimɛnt), mek shɔ se dɛn gi dis minin bak to ɛtɛknɔlɔji dɛn we de ɛp yu – fɔ ɛgzampul, put ɔda tin dɛn, we dɛn ayd wit di .sr-onlyklas.

If yu de mek kɔntrol dɛn we nɔ gɛt ɔda tɛks (lɛk wan <button>we jɔs gɛt aykɔn), yu fɔ gi ɔda tin dɛn ɔltɛm fɔ no wetin mek di kɔntrol de, so dat i go mek sɛns to di wan dɛn we de yuz ɛtɛknɔlɔji dɛn we de ɛp. If na so i bi, yu kin ad wan aria-labelatribyut pan di kɔntrol sɛf.

<span class="glyphicon glyphicon-search" aria-hidden="true"></span>

Ɛgzampul dɛn

Yuz dɛn na bɔtin dɛn, bɔtin grup dɛn fɔ wan tulba, nevigishɔn, ɔ fɔm input dɛn we dɛn dɔn pripend.

<button type="button" class="btn btn-default" aria-label="Left Align">
  <span class="glyphicon glyphicon-align-left" aria-hidden="true"></span>
</button>

<button type="button" class="btn btn-default btn-lg">
  <span class="glyphicon glyphicon-star" aria-hidden="true"></span> Star
</button>

Wan aykɔn we dɛn kin yuz na wan alɛt fɔ sho se na mistek mɛsej, wit ɔda .sr-onlytɛks fɔ gi dis hint to di wan dɛn we de yuz ɛp tɛknɔlɔji dɛn.

<div class="alert alert-danger" role="alert">
  <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
  <span class="sr-only">Error:</span>
  Enter a valid email address
</div>

Drɔpdɔwn dɛn

Toggleable, contextual menu fɔ sho list dɛn fɔ link dɛn. Mek intaraktiv wit di drɔpdɔwn JavaSkript plɔgin .

Rap di drɔpdɔwn in triga ɛn di drɔpdɔwn mɛnyu insay .dropdown, ɔ ɔda ɛlimɛnt we de diklar position: relative;. Dɔn ad di HTML we de na di mɛnyu.

<div class="dropdown">
  <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
    Dropdown
    <span class="caret"></span>
  </button>
  <ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
    <li><a href="#">Action</a></li>
    <li><a href="#">Another action</a></li>
    <li><a href="#">Something else here</a></li>
    <li role="separator" class="divider"></li>
    <li><a href="#">Separated link</a></li>
  </ul>
</div>

Yu kin chenj di drɔpdɔwn mɛnyu dɛn fɔ mek dɛn go ɔp (insted fɔ go dɔŋ) bay we yu ad .dropupto di mama ɔ papa.

<div class="dropup">
  <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
    Dropup
    <span class="caret"></span>
  </button>
  <ul class="dropdown-menu" aria-labelledby="dropdownMenu2">
    <li><a href="#">Action</a></li>
    <li><a href="#">Another action</a></li>
    <li><a href="#">Something else here</a></li>
    <li role="separator" class="divider"></li>
    <li><a href="#">Separated link</a></li>
  </ul>
</div>

Bay difɔlt, wan drɔp-dɔwn mɛnyu de ɔtomɛtik wan 100% frɔm di ɔp ɛn along di lɛft say na in mama ɔ papa. Ad .dropdown-menu-rightto a .dropdown-menuto rayt alaynɛt di drɔpdɔwn mɛnyu.

I kin nid fɔ mek dɛn put ɔda tin dɛn na di say we dɛn de

Drɔpdɔwn dɛn de ɔtomɛtik wan bay CSS insay di nɔmal flɔ fɔ di dɔkyumɛnt. Dis min se di drɔpdɔwn dɛn kin krop bay mama ɛn papa dɛn we gɛt sɔm overflowprɔpati dɛn ɔ dɛn kin apia aut ɔf di bɔund dɛn na di viupɔt. Adrɛs dɛn tin ya fɔ yusɛf as dɛn de kam.

Di .pull-rightalaynɛshɔn we dɛn nɔ de yuz yet

As of v3.1.0, wi dɔn deprecate .pull-rightpan drɔpdɔwn mɛnyu dɛn. Fɔ rayt-alayn wan mɛnyu, yuz .dropdown-menu-right. Rayt-alayn nav kɔmpɔnɛnt dɛn na di navbar de yuz wan mixin vɛshɔn fɔ dis klas fɔ alaynɛd ​​di mɛnyu ɔtomɛtik wan. Fɔ ɔvalayz am, yuz .dropdown-menu-left.

<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dLabel">
  ...
</ul>

Ad wan ɛda fɔ lɛbul sɛkshɔn dɛn fɔ di akshɔn dɛn na ɛni drɔpdɔwn mɛnyu.

<ul class="dropdown-menu" aria-labelledby="dropdownMenu3">
  ...
  <li class="dropdown-header">Dropdown header</li>
  ...
</ul>

Ad wan divayda fɔ separet siriɔs link dɛn na wan drɔpdɔwn mɛnyu.

<ul class="dropdown-menu" aria-labelledby="dropdownMenuDivider">
  ...
  <li role="separator" class="divider"></li>
  ...
</ul>

Ad .disabledto a <li>na di drɔpdɔwn fɔ disable di link.

<ul class="dropdown-menu" aria-labelledby="dropdownMenu4">
  <li><a href="#">Regular link</a></li>
  <li class="disabled"><a href="#">Disabled link</a></li>
  <li><a href="#">Another link</a></li>
</ul>

Bɔtin grup dɛn

Grup wan siriɔs bɔtin dɛn togɛda pan wan layn wit di bɔtin grup. Ad pan opshɔnal JavaSkript redio ɛn chɛkbɔks stayl bihayvya wit wi bɔtin dɛn plɔgin .

Tultips & popovers in bɔtin grup dɛn nid spɛshal sɛtin

We yu de yuz tultip ɔ popover pan ɛlimɛnt dɛn insay wan .btn-group, yu go gɛt fɔ spɛsifa di opshɔn container: 'body'fɔ avɔyd sayd ɛfɛkt dɛn we yu nɔ want (lɛk di ɛlimɛnt fɔ gro big ɛn/ɔ fɔ lɔs in rawnd kɔna dɛn we di tultip ɔ popover de trig).

Mek shɔ se kɔrɛkt roleɛn gi yu wan lɛbl

Fɔ mek dɛn ebul fɔ ɛp tɛknɔlɔji dɛn – lɛk skrin rida dɛn – fɔ sho se dɛn dɔn grup wan siriɔs bɔtin dɛn, roledɛn nid fɔ gi wan atribyut we fit. Fɔ bɔtin grup dɛn, dis go bi role="group", we di tulba dɛn fɔ gɛt wan role="toolbar".

Wan ɛksɛpshɔn na grup dɛn we jɔs gɛt wan kɔntrol (fɔ ɛgzampul di jɔstifay bɔtin grup dɛn wit <button>ɛlimɛnt dɛn) ɔ wan drɔpdɔwn.

Apat frɔm dat, dɛn fɔ gi grup ɛn tulba dɛn wan klia lɛbul, bikɔs bɔku pan di ɛtɛknɔlɔji dɛn we de ɛp dɛn nɔ go anɔys dɛn ɔda we, pan ɔl we di kɔrɛkt roleatribyut de. Insay di ɛgzampul dɛn we dɛn gi ya, wi de yuz aria-label, bɔt dɛn aria-labelledbykin yuz ɔda we dɛn lɛk bak.

Besik ɛgzampul

Rap wan siriɔs bɔtin dɛn wit .btnin .btn-group.

<div class="btn-group" role="group" aria-label="...">
  <button type="button" class="btn btn-default">Left</button>
  <button type="button" class="btn btn-default">Middle</button>
  <button type="button" class="btn btn-default">Right</button>
</div>

Di tulba fɔ di bɔtin

Kɔmbayn sɛt dɛn fɔ <div class="btn-group">insay wan <div class="btn-toolbar">fɔ mɔ kɔmpleks kɔmpɔnɛnt dɛn.

<div class="btn-toolbar" role="toolbar" aria-label="...">
  <div class="btn-group" role="group" aria-label="...">...</div>
  <div class="btn-group" role="group" aria-label="...">...</div>
  <div class="btn-group" role="group" aria-label="...">...</div>
</div>

Sayz fɔ di sayz

Insted fɔ yuz bɔtin saiz klas dɛn to ɛvri bɔtin na wan grup, jɔs ad .btn-group-*to ɛni wan pan dɛn .btn-group, inklud we yu de nest bɔku grup dɛn.




<div class="btn-group btn-group-lg" role="group" aria-label="...">...</div>
<div class="btn-group" role="group" aria-label="...">...</div>
<div class="btn-group btn-group-sm" role="group" aria-label="...">...</div>
<div class="btn-group btn-group-xs" role="group" aria-label="...">...</div>

Fɔ mek dɛn nɛst

Put wan .btn-groupinsay ɔda wan .btn-groupwe yu want drɔpdɔwn mɛnyu dɛn miks wit wan siriɔs bɔtin dɛn.

<div class="btn-group" role="group" aria-label="...">
  <button type="button" class="btn btn-default">1</button>
  <button type="button" class="btn btn-default">2</button>

  <div class="btn-group" role="group">
    <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
      Dropdown
      <span class="caret"></span>
    </button>
    <ul class="dropdown-menu">
      <li><a href="#">Dropdown link</a></li>
      <li><a href="#">Dropdown link</a></li>
    </ul>
  </div>
</div>

Vɛtikal chenj

Mek wan sɛt fɔ bɔtin dɛn apia we dɛn stak vertikal wan pas fɔ sho dɛn ɔrizɔntal wan. Split bɔtin drɔpdɔwn dɛn nɔ de sɔpɔt ya.

<div class="btn-group-vertical" role="group" aria-label="...">
  ...
</div>

Jɔstifay bɔtin grup dɛn

Mek wan grup fɔ bɔtin dɛn strɛch wit ikwal saiz fɔ span di wan ol wit fɔ in mama ɔ papa. I de wok bak wit bɔtin drɔpdɔwn dɛn insay di bɔtin grup.

Fɔ handle di bɔda dɛn

Bikɔs ɔf di patikyula HTML ɛn CSS we dɛn yuz fɔ jɔstify bɔtin dɛn (dat na display: table-cell), di bɔda dɛn bitwin dɛn kin dubl. Insay rɛgyula bɔtin grup dɛn, margin-left: -1pxdɛn kin yuz am fɔ stak di bɔda dɛn instead fɔ pul dɛn. Bɔt, marginnɔ de wok wit display: table-cell. As a rizulyt, dipen pan yu kɔstɔmayshɔn dɛn to Bootstrap, yu kin want fɔ pul ɔ ri-kɔla di bɔda dɛn.

IE8 ɛn bɔda dɛn

Intanɛt Ɛksplɔrɔ 8 nɔ de rɛnd bɔda dɛn pan bɔtin dɛn na wan bɔtin grup we jɔstifay, ilɛksɛf na on <a>ɔ <button>ɛlimɛnt dɛn. Fɔ mek yu ebul fɔ du dat, rap ɛni bɔtin wit ɔda wan .btn-group.

Si #12476 fɔ no mɔ.

Wit <a>di elemɛnt dɛn

Jɔs rap wan siriɔs .btns insay .btn-group.btn-group-justified.

<div class="btn-group btn-group-justified" role="group" aria-label="...">
  ...
</div>

Links we de wok lɛk bɔtin dɛn

If dɛn yuz di <a>ɛlimɛnt dɛn fɔ wok lɛk bɔtin dɛn – we de trig in-pej wok, pas fɔ go na ɔda dɔkyumɛnt ɔ sɛkshɔn insay di pej we de naw – dɛn fɔ gi dɛn bak wan we fit role="button".

Wit <button>di elemɛnt dɛn

Fɔ yuz jɔstifay bɔtin grup dɛn wit <button>ɛlimɛnt dɛn, yu fɔ rap ɛni bɔtin insay wan bɔtin grup . Bɔku pan di brawza dɛn nɔ de yuz wi CSS fayn fayn wan fɔ jɔstify di <button>ɛlimɛnt dɛn, bɔt bikɔs wi de sɔpɔt bɔtin drɔpdɔwn dɛn, wi kin wok arawnd dat.

<div class="btn-group btn-group-justified" role="group" aria-label="...">
  <div class="btn-group" role="group">
    <button type="button" class="btn btn-default">Left</button>
  </div>
  <div class="btn-group" role="group">
    <button type="button" class="btn btn-default">Middle</button>
  </div>
  <div class="btn-group" role="group">
    <button type="button" class="btn btn-default">Right</button>
  </div>
</div>

Di bɔtin dɛn we de drɔp

Yuz ɛni bɔtin fɔ trig wan drɔpdɔwn mɛnyu bay we yu put am insay wan .btn-groupɛn gi di rayt mɛnyu mak.

Dipɛnsin fɔ di plɔgin

Bɔtin drɔpdɔwn dɛn nid fɔ put di drɔpdɔwn plɔgin insay yu vɛshɔn fɔ Bootstrap.

Wan bɔtin we de drɔp dɔŋ

Tɔn wan bɔtin to drɔpdɔwn tɔgl wit sɔm bɛsik mak-ap chenj dɛn.

<!-- Single button -->
<div class="btn-group">
  <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
    Action <span class="caret"></span>
  </button>
  <ul class="dropdown-menu">
    <li><a href="#">Action</a></li>
    <li><a href="#">Another action</a></li>
    <li><a href="#">Something else here</a></li>
    <li role="separator" class="divider"></li>
    <li><a href="#">Separated link</a></li>
  </ul>
</div>

Split bɔtin dɛn we de drɔp dɔŋ

Semweso, mek split bɔtin drɔpdɔwn dɛn wit di sem mak chenj dɛn, jɔs wit wan sɛpret bɔtin.

<!-- Split button -->
<div class="btn-group">
  <button type="button" class="btn btn-danger">Action</button>
  <button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
    <span class="caret"></span>
    <span class="sr-only">Toggle Dropdown</span>
  </button>
  <ul class="dropdown-menu">
    <li><a href="#">Action</a></li>
    <li><a href="#">Another action</a></li>
    <li><a href="#">Something else here</a></li>
    <li role="separator" class="divider"></li>
    <li><a href="#">Separated link</a></li>
  </ul>
</div>

Sayz fɔ di sayz

Di bɔtin dɛn we de drɔp de wok wit bɔtin dɛn we gɛt ɔl kayn saiz.

<!-- Large button group -->
<div class="btn-group">
  <button class="btn btn-default btn-lg dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
    Large button <span class="caret"></span>
  </button>
  <ul class="dropdown-menu">
    ...
  </ul>
</div>

<!-- Small button group -->
<div class="btn-group">
  <button class="btn btn-default btn-sm dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
    Small button <span class="caret"></span>
  </button>
  <ul class="dropdown-menu">
    ...
  </ul>
</div>

<!-- Extra small button group -->
<div class="btn-group">
  <button class="btn btn-default btn-xs dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
    Extra small button <span class="caret"></span>
  </button>
  <ul class="dropdown-menu">
    ...
  </ul>
</div>

Dropup chenj we de apin

Trig drɔpdɔwn mɛnyu dɛn ɔp di ɛlimɛnt dɛn bay we yu ad .dropupto di mama ɔ papa.

<div class="btn-group dropup">
  <button type="button" class="btn btn-default">Dropup</button>
  <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
    <span class="caret"></span>
    <span class="sr-only">Toggle Dropdown</span>
  </button>
  <ul class="dropdown-menu">
    <!-- Dropdown menu links -->
  </ul>
</div>

Input grup dɛn

Ɛkstɛnd fɔm kɔntrol dɛn bay we yu ad tɛks ɔ bɔtin dɛn bifo, afta, ɔ na ɔl tu di say dɛn na ɛni tɛks-based <input>. Yuz .input-groupwit wan .input-group-addonɔ .input-group-btnfɔ prɛpen ɔ ad ɛlimɛnt dɛn to wan singl .form-control.

Tekstual <input>s nɔmɔ

Avɔyd fɔ yuz <select>ɛlimɛnt dɛn ya bikɔs dɛn nɔ go ebul fɔ ful-ɔp stayl na WɛbKit brawza dɛn.

Avɔyd fɔ yuz <textarea>ɛlimɛnt dɛn ya as dɛn rowsatribyut nɔ go rɛspɛkt insay sɔm kes dɛn.

Tultips & popovers in input grup dɛn nid spɛshal sɛtin

We yu de yuz tultip ɔ popover pan ɛlimɛnt dɛn insay wan .input-group, yu go gɛt fɔ spɛsifa di opshɔn container: 'body'fɔ avɔyd sayd ɛfɛkt dɛn we yu nɔ want (lɛk di ɛlimɛnt fɔ gro big ɛn/ɔ fɔ lɔs in rawnd kɔna dɛn we di tultip ɔ popover de trig).

Nɔ miks wit ɔda kɔmpɔnɛnt dɛn

Nɔ miks fɔm grup ɔ grid kɔlɔm klas dɛn dairekt wit input grup dɛn. Bifo dat, nɛst di input grup insay di fɔm grup ɔ di ɛlimɛnt we gɛt fɔ du wit di grid.

Ɔltɛm yu fɔ ad lɛbl dɛn

Di wan dɛn we de rid di skrin go gɛt prɔblɛm wit yu fɔm dɛn if yu nɔ put lɛbl fɔ ɛvri input. Fɔ dɛn input grup ya, mek shɔ se dɛn gi ɛni ɔda lɛbl ɔ funkshɔnaliti to ɛtɛknɔlɔji dɛn we de ɛp.

Di ɛksaktɔl tɛknik we dɛn go yuz ( <label>ɛlimɛnt dɛn we pɔsin kin si, <label>ɛlimɛnt dɛn we dɛn ayd we dɛn de yuz di .sr-onlyklas, ɔ yuz di aria-label, aria-labelledby, aria-describedby, titleɔ placeholderatribyut) ɛn us ɔda infɔmeshɔn dɛn go nid fɔ gi go difrɛn difrɛn wan bay di rayt kayn intafays widget we yu de impruv. Di ɛgzampul dɛn na dis pat de gi sɔm tin dɛn we dɛn dɔn tɔk bɔt, we gɛt fɔ du wit kes.

Besik ɛgzampul

Put wan ad-ɔn ɔ bɔtin na di tu say dɛn na wan input. Yu kin put wan bak na ɔl tu di say dɛn na wan input.

Wi nɔ de sɔpɔt bɔku ad-ɔn dɛn ( .input-group-addonɔ .input-group-btn) na wan say.

Wi nɔ de sɔpɔt bɔku fɔm-kɔntrol dɛn na wan input grup.

@

@ɛgzampul.com

$ .00 fɔ di wan dɛn we de

https://ɛgzampul.com/yuzman dɛn/
<div class="input-group">
  <span class="input-group-addon" id="basic-addon1">@</span>
  <input type="text" class="form-control" placeholder="Username" aria-describedby="basic-addon1">
</div>

<div class="input-group">
  <input type="text" class="form-control" placeholder="Recipient's username" aria-describedby="basic-addon2">
  <span class="input-group-addon" id="basic-addon2">@example.com</span>
</div>

<div class="input-group">
  <span class="input-group-addon">$</span>
  <input type="text" class="form-control" aria-label="Amount (to the nearest dollar)">
  <span class="input-group-addon">.00</span>
</div>

<label for="basic-url">Your vanity URL</label>
<div class="input-group">
  <span class="input-group-addon" id="basic-addon3">https://example.com/users/</span>
  <input type="text" class="form-control" id="basic-url" aria-describedby="basic-addon3">
</div>

Sayz fɔ di sayz

Ad di rilitiv fɔm sayzin klas dɛn to di .input-groupinsɛf ɛn di tin dɛn we de insay go ɔtomɛtik risayz—nɔ nid fɔ ripit di fɔm kɔntrol saiz klas dɛn pan ɛni ɛlimɛnt.

@

@

@
<div class="input-group input-group-lg">
  <span class="input-group-addon" id="sizing-addon1">@</span>
  <input type="text" class="form-control" placeholder="Username" aria-describedby="sizing-addon1">
</div>

<div class="input-group">
  <span class="input-group-addon" id="sizing-addon2">@</span>
  <input type="text" class="form-control" placeholder="Username" aria-describedby="sizing-addon2">
</div>

<div class="input-group input-group-sm">
  <span class="input-group-addon" id="sizing-addon3">@</span>
  <input type="text" class="form-control" placeholder="Username" aria-describedby="sizing-addon3">
</div>

Chɛkbɔks dɛn ɛn redio adɔn dɛn

Put ɛni chɛkbɔks ɔ redio opshɔn insay wan input grup in adɔn instead fɔ tɛks.

<div class="row">
  <div class="col-lg-6">
    <div class="input-group">
      <span class="input-group-addon">
        <input type="checkbox" aria-label="...">
      </span>
      <input type="text" class="form-control" aria-label="...">
    </div><!-- /input-group -->
  </div><!-- /.col-lg-6 -->
  <div class="col-lg-6">
    <div class="input-group">
      <span class="input-group-addon">
        <input type="radio" aria-label="...">
      </span>
      <input type="text" class="form-control" aria-label="...">
    </div><!-- /input-group -->
  </div><!-- /.col-lg-6 -->
</div><!-- /.row -->

Bɔtin adɔn dɛn

Bɔtin dɛn na input grup dɛn difrɛn smɔl ɛn dɛn nid wan ɛkstra lɛvul fɔ nest. Insted of .input-group-addon, yu go nid fɔ yuz .input-group-btnfɔ rap di bɔtin dɛn. Dis nid fɔ de bikɔs ɔf di difɔlt brawza stayl dɛn we dɛn nɔ go ebul fɔ ɔvalayz.

<div class="row">
  <div class="col-lg-6">
    <div class="input-group">
      <span class="input-group-btn">
        <button class="btn btn-default" type="button">Go!</button>
      </span>
      <input type="text" class="form-control" placeholder="Search for...">
    </div><!-- /input-group -->
  </div><!-- /.col-lg-6 -->
  <div class="col-lg-6">
    <div class="input-group">
      <input type="text" class="form-control" placeholder="Search for...">
      <span class="input-group-btn">
        <button class="btn btn-default" type="button">Go!</button>
      </span>
    </div><!-- /input-group -->
  </div><!-- /.col-lg-6 -->
</div><!-- /.row -->

Bɔtin dɛn we gɛt drɔp-dɔwn dɛn

<div class="row">
  <div class="col-lg-6">
    <div class="input-group">
      <div class="input-group-btn">
        <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Action <span class="caret"></span></button>
        <ul class="dropdown-menu">
          <li><a href="#">Action</a></li>
          <li><a href="#">Another action</a></li>
          <li><a href="#">Something else here</a></li>
          <li role="separator" class="divider"></li>
          <li><a href="#">Separated link</a></li>
        </ul>
      </div><!-- /btn-group -->
      <input type="text" class="form-control" aria-label="...">
    </div><!-- /input-group -->
  </div><!-- /.col-lg-6 -->
  <div class="col-lg-6">
    <div class="input-group">
      <input type="text" class="form-control" aria-label="...">
      <div class="input-group-btn">
        <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Action <span class="caret"></span></button>
        <ul class="dropdown-menu dropdown-menu-right">
          <li><a href="#">Action</a></li>
          <li><a href="#">Another action</a></li>
          <li><a href="#">Something else here</a></li>
          <li role="separator" class="divider"></li>
          <li><a href="#">Separated link</a></li>
        </ul>
      </div><!-- /btn-group -->
    </div><!-- /input-group -->
  </div><!-- /.col-lg-6 -->
</div><!-- /.row -->

Bɔtin dɛn we gɛt sɛgmɛnt

<div class="input-group">
  <div class="input-group-btn">
    <!-- Button and dropdown menu -->
  </div>
  <input type="text" class="form-control" aria-label="...">
</div>

<div class="input-group">
  <input type="text" class="form-control" aria-label="...">
  <div class="input-group-btn">
    <!-- Button and dropdown menu -->
  </div>
</div>

Bɔku bɔku bɔtin dɛn

Pan ɔl we yu kin jɔs gɛt wan ad-ɔn pan ɛni say, yu kin gɛt bɔku bɔtin dɛn insay wan .input-group-btn.

<div class="input-group">
  <div class="input-group-btn">
    <!-- Buttons -->
  </div>
  <input type="text" class="form-control" aria-label="...">
</div>

<div class="input-group">
  <input type="text" class="form-control" aria-label="...">
  <div class="input-group-btn">
    <!-- Buttons -->
  </div>
</div>

Navs fɔ di wan dɛn we de

Navs we de na Bootstrap dɔn sheb mak, stat wit di bays .navklas, ɛn bak shered stet dɛn. Swap modifya klas fɔ swich bitwin ɛni stayl.

Yuz navs fɔ tab panɛl dɛn nid JavaSkript tab dɛn plɔgin

Fɔ tab dɛn we gɛt tab dɛn eria dɛn, yu fɔ yuz di tab dɛn JavaSkript plɔgin . Di mak go nid bak ɔda roleɛn ARIA atribyut dɛn – si di plɔgin in ɛgzampul mak fɔ ɔda ditel dɛn.

Mek navs we dɛn yuz as nevigishɔn aksesbul

If yu de yuz navs fɔ gi wan nevigishɔn bar, mek shɔ se yu ad a role="navigation"to di mɔs lɔjik mama ɛn papa kɔntena fɔ di <ul>, ɔ rap wan <nav>ɛlimɛnt rawnd di wan ol nevigishɔn. Nɔ ad di wok to di <ul>sɛf, bikɔs dis go mek dɛn nɔ anɔys am as rial list bay ɛp tɛknɔlɔji dɛn.

Notis se di .nav-tabsklas nid di .navbays klas.

<ul class="nav nav-tabs">
  <li role="presentation" class="active"><a href="#">Home</a></li>
  <li role="presentation"><a href="#">Profile</a></li>
  <li role="presentation"><a href="#">Messages</a></li>
</ul>

Tek da sem HTML de, bɔt yuz .nav-pillsinsted:

<ul class="nav nav-pills">
  <li role="presentation" class="active"><a href="#">Home</a></li>
  <li role="presentation"><a href="#">Profile</a></li>
  <li role="presentation"><a href="#">Messages</a></li>
</ul>

Pils dɛnsɛf kin stak vertikal wan. Jɔs ad .nav-stacked.

<ul class="nav nav-pills nav-stacked">
  ...
</ul>

I izi fɔ mek tab ɔ pils ikwal wit dɛn mama ɛn papa na skrin dɛn we wayd pas 768px wit .nav-justified. Na smɔl skrin dɛn, dɛn kin stak di nav link dɛn.

Justified navbar nav links nɔ de sɔpɔt naw.

Safari ɛn rispɔnsiv jɔstifay navs

As of v9.1.2, Safari de sho wan bɔg we we yu chenj di sayz fɔ yu brɔwza ɔrizɔntal wan de mek yu gɛt mistek na di jɔstifay nav we dɛn kin klia we yu rifresh. Dis bɔg de sho bak na di jɔstifay nav ɛgzampul .

<ul class="nav nav-tabs nav-justified">
  ...
</ul>
<ul class="nav nav-pills nav-justified">
  ...
</ul>

Fɔ ɛni nav kɔmpɔnɛnt (tab ɔ pils), ad .disabledgrey link ɛn nɔ hova ifɛkt .

Link funkshɔnaliti nɔ impak

Dis klas go jɔs chenj di we aw di <a>'s de luk, nɔto di we aw i de wok. Yuz kɔstɔm JavaSkript fɔ disable link dɛn ya.

<ul class="nav nav-pills">
  ...
  <li role="presentation" class="disabled"><a href="#">Disabled link</a></li>
  ...
</ul>

Ad drɔpdɔwn mɛnyu dɛn wit smɔl ɛkstra HTML ɛn di drɔpdɔwn dɛn JavaSkript plɔgin .

Tab dɛn we gɛt drɔp-dɔwn dɛn

<ul class="nav nav-tabs">
  ...
  <li role="presentation" class="dropdown">
    <a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
      Dropdown <span class="caret"></span>
    </a>
    <ul class="dropdown-menu">
      ...
    </ul>
  </li>
  ...
</ul>

Pils wit dropdowns

<ul class="nav nav-pills">
  ...
  <li role="presentation" class="dropdown">
    <a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
      Dropdown <span class="caret"></span>
    </a>
    <ul class="dropdown-menu">
      ...
    </ul>
  </li>
  ...
</ul>

Navbar fɔ di wan dɛn we de

Navbar na rispɔnsiv mɛta kɔmpɔnɛnt dɛn we de wok as nevigishɔn hεda fɔ yu aplikeshɔn ɔ sayt. Dɛn kin bigin fɔ kol (ɛn dɛn kin chenj) na mobayl vishɔn dɛn ɛn dɛn kin bi ɔrizɔntal as di viupɔt wit we de de go ɔp.

Justified navbar nav links nɔ de sɔpɔt naw.

Di tin dɛn we de insay de bɔku bɔku wan

Bikɔs Bootstrap nɔ no ɔmɔs spɛs di kɔntinyu na yu navbar nid, yu kin rɔn insay prɔblɛm dɛn wit kɔntinyu fɔ rap insay sɛkɔn row. Fɔ sɔlv dis, yu kin:

  1. Ridyus di amɔnt ɔ di wit fɔ di navbar tin dɛn.
  2. Ayd sɔm navbar aytem dɛn na sɔm skrin saiz dɛn yuz rispɔnsiv yutiliti klas dɛn .
  3. Chenj di pɔynt we yu navbar de chenj bitwin kɔlaps ɛn ɔrizɔntal mɔd. Kastamayz di @grid-float-breakpointvɛriɔbul ɔ ad yu yon midia kwɛstyɔn.

I nid fɔ gɛt JavaSkript plɔgin

If dɛn nɔ yuz JavaSkript ɛn di say we yu de si di tin dɛn we de insay de smɔl so dat di navba go kol, i nɔ go pɔsibul fɔ mek yu ebul fɔ mek di navba big ɛn si di tin dɛn we de insay di .navbar-collapse.

Di rispɔnsiv navbar nid de insay yu vɛshɔn fɔ Bootstrap.

Chenj di kollaps mobayl navbar brekpoint

Di navbar de kolap insay in vertikal mobayl viu we di viupɔt smɔl pas @grid-float-breakpoint, ɛn i de ɛkspɛn insay in ɔrizɔntal nɔ-mobayl viu we di viupɔt at ɔl @grid-float-breakpointin wit. Adjɔst dis vɛriɔbul na di Less sɔs fɔ kɔntrol we di navbar de kɔlaps/ɛkspɛnd. Di difɔlt valyu na 768px(di smɔl "smɔl" ɔ "tablɛt" skrin).

Mek navbar dɛn we pɔsin kin ebul fɔ yuz

Mek shɔ se yu yuz wan <nav>ɛlimɛnt ɔ, if yu de yuz wan mɔ jenɛrik ɛlimɛnt lɛk a <div>, ad a role="navigation"to ɛvri navbar fɔ mek yu no klia wan se na landmak rijyɔn fɔ di wan dɛn we de yuz ɛp tɛknɔlɔji dɛn.

<nav class="navbar navbar-default">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#">Brand</a>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
        <li class="active"><a href="#">Link <span class="sr-only">(current)</span></a></li>
        <li><a href="#">Link</a></li>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li><a href="#">Action</a></li>
            <li><a href="#">Another action</a></li>
            <li><a href="#">Something else here</a></li>
            <li role="separator" class="divider"></li>
            <li><a href="#">Separated link</a></li>
            <li role="separator" class="divider"></li>
            <li><a href="#">One more separated link</a></li>
          </ul>
        </li>
      </ul>
      <form class="navbar-form navbar-left">
        <div class="form-group">
          <input type="text" class="form-control" placeholder="Search">
        </div>
        <button type="submit" class="btn btn-default">Submit</button>
      </form>
      <ul class="nav navbar-nav navbar-right">
        <li><a href="#">Link</a></li>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li><a href="#">Action</a></li>
            <li><a href="#">Another action</a></li>
            <li><a href="#">Something else here</a></li>
            <li role="separator" class="divider"></li>
            <li><a href="#">Separated link</a></li>
          </ul>
        </li>
      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>

Riples di navbar brand wit yu yon pikchɔ bay we yu chenj di tɛks fɔ wan <img>. Bikɔs di .navbar-brandgɛt in yon pad ɛn ayt, yu go nid fɔ ɔvalayz sɔm CSS dipen pan yu pikchɔ.

<nav class="navbar navbar-default">
  <div class="container-fluid">
    <div class="navbar-header">
      <a class="navbar-brand" href="#">
        <img alt="Brand" src="...">
      </a>
    </div>
  </div>
</nav>

Put fɔm kɔntinyu insay .navbar-formfɔ mek yu ebul fɔ vertikal alaynɛshɔn fayn ɛn fɔ biev we dɔn kol na smɔl viupɔt dɛn. Yuz di alaynɛshɔn opshɔn dɛn fɔ disayd usay i de insay di navbar kɔntinyu.

As a heads up, .navbar-formshere plenti of in kod wit .form-inlinevia mixin. Sɔm fɔm kɔntrol dɛn, lɛk input grup dɛn, kin nid fɔ sho fiks witd dɛn fayn fayn wan insay wan navbar.

<form class="navbar-form navbar-left" role="search">
  <div class="form-group">
    <input type="text" class="form-control" placeholder="Search">
  </div>
  <button type="submit" class="btn btn-default">Submit</button>
</form>

Mobayl divays caveats

Sɔm kɔvayt dɛn de bɔt fɔ yuz fɔm kɔntrol dɛn insay fiks ɛlimɛnt dɛn na mobayl divays dɛn. Si wi brawza sɔpɔt dɔkyumɛnt dɛn fɔ di ditel dɛn.

Ɔltɛm yu fɔ ad lɛbl dɛn

Di wan dɛn we de rid di skrin go gɛt prɔblɛm wit yu fɔm dɛn if yu nɔ put lɛbl fɔ ɛvri input. Fɔ dɛn inlayn fɔm dɛn ya, yu kin ayd di lɛbl dɛn we yu de yuz di .sr-onlyklas. Ɔda we dɛn de fɔ gi lɛbl fɔ ɛp tɛknɔlɔji dɛn, lɛk di aria-label, aria-labelledbyɔ titleatribyut. If nɔ pan dɛn tin ya nɔ de, di wan dɛn we de rid di skrin kin yuz di placeholderatribyut, if i de, bɔt notis se placeholderdɛn nɔ advays fɔ yuz am as ples fɔ ɔda we dɛn fɔ lɛbul.

Ad di .navbar-btnklas to <button>ɛlimɛnt dɛn we nɔ de na a <form>fɔ vertikal sɛnt dɛn na di navbar.

<button type="button" class="btn btn-default navbar-btn">Sign in</button>

Di we aw dɛn de yuz am fɔ di kɔntɛks

Lɛk di standad bɔtin klas dɛn , .navbar-btndɛn kin yuz am pan <a>ɛn <input>ɛlimɛnt dɛn. Bɔt, nɔto ɔl .navbar-btndi standad bɔtin klas dɛn fɔ yuz pan <a>ɛlimɛnt dɛn we de insay .navbar-nav.

Rap string dɛn fɔ tɛks insay wan ɛlimɛnt wit .navbar-text, bɔku tɛm na <p>tɛg fɔ mek yu gɛt di rayt lida ɛn kɔlɔ.

<p class="navbar-text">Signed in as Mark Otto</p>

Fɔ pipul dɛn we de yuz standad link dɛn we nɔ de insay di rɛgyula navbar nevigishɔn kɔmpɔnɛnt, yuz di .navbar-linkklas fɔ ad di rayt kɔlɔ dɛn fɔ di difɔlt ɛn invas navbar opshɔn dɛn.

<p class="navbar-text navbar-right">Signed in as <a href="#" class="navbar-link">Mark Otto</a></p>

Align nav link, fɔm, bɔtin, ɔ tɛks, yuz di .navbar-leftɔ .navbar-rightyutiliti klas dɛn. Ɔl tu di klas dɛn go ad wan CSS flot na di say we dɛn dɔn sho. Fɔ ɛgzampul, fɔ alaynɛd ​​nav link dɛn, put dɛn na wan sɛpret <ul>wit di rispektiv yutiliti klas we dɛn aplay.

Dɛn klas ya na mixin-ed vɛshɔn dɛn fɔ .pull-leftɛn .pull-right, bɔt dɛn skɔp dɛn to midia kwɛstyɔn dɛn fɔ izi fɔ handle navbar kɔmpɔnɛnt dɛn akɔdin to divays saiz dɛn.

Rayt alaynɛshɔn bɔku bɔku kɔmpɔnɛnt dɛn

Navbars naw gɛt limit wit bɔku .navbar-rightklas dɛn. Fɔ mek di kɔntinyu fɔ spes fayn fayn wan, wi de yuz nɛgitiv margin pan di las .navbar-rightɛlimɛnt. We bɔku ɛlimɛnt dɛn de we de yuz da klas de, dɛn margin ya nɔ de wok lɛk aw dɛn bin want fɔ wok.

Wi go rivisit dis we wi kin rirayt da komponent de na v4.

Ad .navbar-fixed-topɛn inklud wan .containerɔ .container-fluidto sɛnta ɛn pad navbar kɔntinyu.

<nav class="navbar navbar-default navbar-fixed-top">
  <div class="container">
    ...
  </div>
</nav>

Bodi padding nid fɔ de

Di fiks navbar go ɔvalayz yu ɔda tin dɛn, pas yu ad paddingam ɔp di <body>. Tray yu yon valyu dɛn ɔ yuz wi smɔl smɔl tin dɛn we de dɔŋ ya. Tip: Bay difɔlt, di navbar na 50px ay.

body { padding-top: 70px; }

Mek shɔ se yu put dis afta di kɔr Bootstrap CSS.

Ad .navbar-fixed-bottomɛn inklud wan .containerɔ .container-fluidto sɛnta ɛn pad navbar kɔntinyu.

<nav class="navbar navbar-default navbar-fixed-bottom">
  <div class="container">
    ...
  </div>
</nav>

Bodi padding nid fɔ de

Di fiks navbar go ɔvalayz yu ɔda kɔntinyu, pas yu ad paddingto di bɔt ɔf di <body>. Tray yu yon valyu dɛn ɔ yuz wi smɔl smɔl tin dɛn we de dɔŋ ya. Tip: Bay difɔlt, di navbar na 50px ay.

body { padding-bottom: 70px; }

Mek shɔ se yu put dis afta di kɔr Bootstrap CSS.

Krio wan ful-wid navbar we de skrol go wit di pej bay we yu ad .navbar-static-topɛn put wan .containerɔ .container-fluidto sɛnt ɛn pad navbar kɔntinyu.

Nɔ lɛk di .navbar-fixed-*klas dɛn, yu nɔ nid fɔ chenj ɛni pad na di body.

<nav class="navbar navbar-default navbar-static-top">
  <div class="container">
    ...
  </div>
</nav>

Modify di luk fɔ di navbar bay we yu ad .navbar-inverse.

<nav class="navbar navbar-inverse">
  ...
</nav>

Di tin dɛn we dɛn kin yuz fɔ mek bred

Sho usay di pej de naw insay wan aylayt we de sho usay di pej de naw.

Separatɔ dɛn kin ad ɔtomɛtik wan insay CSS tru :beforeɛn content.

<ol class="breadcrumb">
  <li><a href="#">Home</a></li>
  <li><a href="#">Library</a></li>
  <li class="active">Data</li>
</ol>

Pej dɛn we dɛn rayt

Gi pej link fɔ yu sayt ɔ ap wit di mɔlti-pej pej kɔmpɔnɛnt, ɔ di simpul pej ɔda we .

Difɔlt pejineshɔn

Simpul pejineshɔn we dɛn inspɛkt frɔm Rdio, fayn fɔ ap ɛn sɔch rizɔlt dɛn. Di big blɔk at fɔ mis, i izi fɔ skel, ɛn i de gi big say dɛn fɔ klik.

<nav aria-label="Page navigation">
  <ul class="pagination">
    <li>
      <a href="#" aria-label="Previous">
        <span aria-hidden="true">&laquo;</span>
      </a>
    </li>
    <li><a href="#">1</a></li>
    <li><a href="#">2</a></li>
    <li><a href="#">3</a></li>
    <li><a href="#">4</a></li>
    <li><a href="#">5</a></li>
    <li>
      <a href="#" aria-label="Next">
        <span aria-hidden="true">&raquo;</span>
      </a>
    </li>
  </ul>
</nav>

Lebul di pejin kɔmpɔnɛnt

Di pejin kɔmpɔnɛnt fɔ rap insay wan <nav>ɛlimɛnt fɔ no am as nevigishɔn sɛkshɔn fɔ skrin rida dɛn ɛn ɔda ɛtɛknɔlɔji dɛn we de ɛp. Apat frɔm dat, bikɔs i go mɔs bi se wan pej gɛt mɔ pas wan pan dɛn kayn nevigishɔn sɛkshɔn dɛn de ɔlrɛdi (lɛk di praymari nevigishɔn na di hεda, ɔ wan saydba nevigishɔn), i fayn fɔ gi wan diskrɔtif aria-labelfɔ di <nav>we de sho di rizin we mek i de. Fɔ ɛgzampul, if dɛn yuz di pej pat fɔ go bitwin wan sɛt fɔ di tin dɛn we dɛn dɔn fɛn, wan rayt lɛbl kin bi aria-label="Search results pages".

Disabled ɛn aktif stet dɛn

Link dɛn kin kɔstɔmayt fɔ difrɛn tin dɛn. Yuz .disabledfɔ link dɛn we yu nɔ go ebul fɔ klik ɛn .activefɔ sho di pej we yu de yuz naw.

<nav aria-label="...">
  <ul class="pagination">
    <li class="disabled"><a href="#" aria-label="Previous"><span aria-hidden="true">&laquo;</span></a></li>
    <li class="active"><a href="#">1 <span class="sr-only">(current)</span></a></li>
    ...
  </ul>
</nav>

Wi kin advays yu fɔ swap aut aktif ɔ disabled ankɔ dɛn fɔ <span>, ɔ lɛf di ankɔ insay di kes fɔ di fɔs/nɛks aro dɛn, fɔ pul di klik funkshɔnaliti dɛn we yu de kip di stayl dɛn we yu bin want fɔ yuz.

<nav aria-label="...">
  <ul class="pagination">
    <li class="disabled">
      <span>
        <span aria-hidden="true">&laquo;</span>
      </span>
    </li>
    <li class="active">
      <span>1 <span class="sr-only">(current)</span></span>
    </li>
    ...
  </ul>
</nav>

Sayz fɔ di sayz

Fans big ɔ smɔl pejineshɔn? Ad .pagination-lgɔ .pagination-smfɔ ɔda saiz dɛn.

<nav aria-label="..."><ul class="pagination pagination-lg">...</ul></nav>
<nav aria-label="..."><ul class="pagination">...</ul></nav>
<nav aria-label="..."><ul class="pagination pagination-sm">...</ul></nav>

Peja we de na di pej

Kwik bifo ɛn nɛks link fɔ simpul pej implimɛnt dɛn wit layt mak ɛn stayl dɛn. I fayn fɔ simpul sayt dɛn lɛk blɔk ɔ magazin.

Difɔlt ɛgzampul

Bay difɔlt, di pej de sɛnt di link dɛn.

<nav aria-label="...">
  <ul class="pager">
    <li><a href="#">Previous</a></li>
    <li><a href="#">Next</a></li>
  </ul>
</nav>

Ɔda we de fɔ du dat, yu kin alaynɛd ​​ɛni link to di sayd dɛn:

<nav aria-label="...">
  <ul class="pager">
    <li class="previous"><a href="#"><span aria-hidden="true">&larr;</span> Older</a></li>
    <li class="next"><a href="#">Newer <span aria-hidden="true">&rarr;</span></a></li>
  </ul>
</nav>

Opshɔnal disabled stet

Peja link dɛn de yuz bak di jenɛral .disabledyutiliti klas frɔm di pejeshɔn.

<nav aria-label="...">
  <ul class="pager">
    <li class="previous disabled"><a href="#"><span aria-hidden="true">&larr;</span> Older</a></li>
    <li class="next"><a href="#">Newer <span aria-hidden="true">&rarr;</span></a></li>
  </ul>
</nav>

Lebul dɛn

Ɛgzampul

Ɛgzampul we gɛt di taytul Nyu

Ɛgzampul we gɛt di taytul Nyu

Ɛgzampul we gɛt di taytul Nyu

Ɛgzampul we gɛt di taytul Nyu

Ɛgzampul we gɛt di taytul Nyu
Ɛgzampul we gɛt di taytul Nyu
<h3>Example heading <span class="label label-default">New</span></h3>

Di difrɛn difrɛn tin dɛn we de

Ad ɛni wan pan di modifya klas dɛn we wi dɔn tɔk bɔt dɔŋ ya fɔ chenj di we aw wan lɛbl de luk.

Difɔlt Praymari Sakses Infɔmeshɔn Wɔnin Denja
<span class="label label-default">Default</span>
<span class="label label-primary">Primary</span>
<span class="label label-success">Success</span>
<span class="label label-info">Info</span>
<span class="label label-warning">Warning</span>
<span class="label label-danger">Danger</span>

Yu gɛt bɔku bɔku lɛbl dɛn?

Rɛnda prɔblɛm kin apin we yu gɛt bɔku bɔku inlayn lɛbl dɛn insay wan smɔl kɔntena, ɛn ɛni wan pan dɛn gɛt in yon inline-blockɛlimɛnt (lɛk aykɔn). Di we aw fɔ du dis na fɔ sɛt display: inline-block;. Fɔ kɔntɛks ɛn ɛgzampul, luk #13219 .

Badge dɛn we dɛn kin yuz

I izi fɔ aylayt nyu ɔ tin dɛn we yu nɔ rid bay we yu ad a <span class="badge">to link dɛn, Bootstrap navs, ɛn ɔda tin dɛn.

Inbɔks fɔ di Baybul42 we de sho aw fɔ du

<a href="#">Inbox <span class="badge">42</span></a>

<button class="btn btn-primary" type="button">
  Messages <span class="badge">4</span>
</button>

Self we de fɔdɔm

We no nyu tin nɔ de ɔ we dɛn nɔ rid yet, badge dɛn go jɔs kolap (via CSS in :emptysɛlɛktɔ) if no kɔntinyu nɔ de insay.

Krɔs-brauza kɔmpitibliti

Badges nɔ go self kollaps na Internet Explorer 8 bikɔs i nɔ gɛt sɔpɔt fɔ di :emptysɛlɛktɔ.

Adapt to aktif nav stet dɛn

Bilt-in stayl dɛn de inklud fɔ put badge dɛn na aktif stet dɛn na pil nevigishɔn dɛn.

<ul class="nav nav-pills" role="tablist">
  <li role="presentation" class="active"><a href="#">Home <span class="badge">42</span></a></li>
  <li role="presentation"><a href="#">Profile</a></li>
  <li role="presentation"><a href="#">Messages <span class="badge">3</span></a></li>
</ul>

Jumbotron we dɛn kɔl Jumbotron

Wan layt, fleksibul kɔmpɔnɛnt we kin opshɔn fɔ ɛkstɛnd di wan ol viupɔt fɔ sho di men tin dɛn na yu sayt.

Halo, wɔl!

Dis na simpul hiro yunit, wan simpul jumbotron-stayl kɔmpɔnɛnt fɔ kɔl ɛkstra atɛnshɔn to fichu kɔntinyu ɔ infɔmeshɔn.

Lan mɔ bɔt dis

<div class="jumbotron">
  <h1>Hello, world!</h1>
  <p>...</p>
  <p><a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a></p>
</div>

Fɔ mek di jumbotron ful wit, ɛn we nɔ gɛt rawnd kɔna, put am na do ɔl di .containers ɛn insted ad wan .containerinsay.

<div class="jumbotron">
  <div class="container">
    ...
  </div>
</div>

Di pej we de na di pej

Wan simpul shel fɔ wan h1fɔ apɔpriet spɛs aut ɛn sɛgmɛnt sɛkshɔn dɛn fɔ kɔntinyu na wan pej. I kin yuz di h1's difɔlt smallɛlimɛnt, ɛn bak mɔs ɔda kɔmpɔnɛnt dɛn (wit ɔda stayl dɛn).

<div class="page-header">
  <h1>Example page header <small>Subtext for header</small></h1>
</div>

Di smɔl smɔl pikchɔ dɛn

Ɛkstend Bootstrap in grid sistem wit di thumbnail kɔmpɔnɛnt fɔ mek i izi fɔ sho grid dɛn we gɛt pikchɔ dɛn, vidio dɛn, tɛks, ɛn ɔda tin dɛn.

If yu de luk fɔ prɛzɛntɛnshɔn we tan lɛk Pinterest fɔ smɔl pikchɔ dɛn we gɛt difrɛn ayt ɛn/ɔ wit, yu go nid fɔ yuz tɔd-pati plɔgin lɛk Masonry , Isotope , ɔ Salvattore .

Difɔlt ɛgzampul

Bay difɔlt, dɛn mek Bootstrap in smɔl pikchɔ dɛn fɔ sho pikchɔ dɛn we gɛt link wit smɔl mak we dɛn nid.

<div class="row">
  <div class="col-xs-6 col-md-3">
    <a href="#" class="thumbnail">
      <img src="..." alt="...">
    </a>
  </div>
  ...
</div>

Kɔstɔm kɔntinyu

Wit smɔl ɛkstra mak, i pɔsibul fɔ ad ɛni kayn HTML kɔntinyu lɛk ɛd, paregraf, ɔ bɔtin dɛn insay smɔl pikchɔ dɛn.

100%x200 fɔ di wan dɛn

Lebul fɔ di smɔl pikchɔ dɛn

Kras jɔsto odio, dapibus asid fasilisis in, egestas eget quam. Donec id elit non mi porta gravida na eget metus. Nullam id dolor id nibh ultrisis vehikula ut id elit.

Bɔtin Bɔtin

100%x200 fɔ di wan dɛn

Lebul fɔ di smɔl pikchɔ dɛn

Kras jɔsto odio, dapibus asid fasilisis in, egestas eget quam. Donec id elit non mi porta gravida na eget metus. Nullam id dolor id nibh ultrisis vehikula ut id elit.

Bɔtin Bɔtin

100%x200 fɔ di wan dɛn

Lebul fɔ di smɔl pikchɔ dɛn

Kras jɔsto odio, dapibus asid fasilisis in, egestas eget quam. Donec id elit non mi porta gravida na eget metus. Nullam id dolor id nibh ultrisis vehikula ut id elit.

Bɔtin Bɔtin

<div class="row">
  <div class="col-sm-6 col-md-4">
    <div class="thumbnail">
      <img src="..." alt="...">
      <div class="caption">
        <h3>Thumbnail label</h3>
        <p>...</p>
        <p><a href="#" class="btn btn-primary" role="button">Button</a> <a href="#" class="btn btn-default" role="button">Button</a></p>
      </div>
    </div>
  </div>
</div>

Alɛrt dɛn

Gi kɔntɛkstual fidbak mɛsej fɔ tipik yuza akshɔn dɛn wit di anful alɛt mɛsej dɛn we de ɛn we kin chenj.

Ɛgzampul dɛn

Rap ɛni tɛks ɛn wan opshɔnal dismis bɔtin insay .alertɛn wan pan di 4 kɔntɛkstual klas dɛn (ɛgz., .alert-success) fɔ besik alɛt mɛsej dɛn.

No difɔlt klas nɔ de

Alɛt dɛn nɔ gɛt difɔlt klas dɛn, na bays ɛn modifya klas dɛn nɔmɔ. Wan difɔlt grey alɛt nɔ de mek tumɔs sɛns, so yu nid fɔ spɛsifa wan tayp via kɔntɛkstual klas. Pik frɔm sakses, info, wɔnin, ɔ denja.

<div class="alert alert-success" role="alert">...</div>
<div class="alert alert-info" role="alert">...</div>
<div class="alert alert-warning" role="alert">...</div>
<div class="alert alert-danger" role="alert">...</div>

Di alɛt dɛn we dɛn kin dismis

Bil pan ɛni alɛt bay we yu ad wan opshɔnal .alert-dismissibleɛn klos bɔtin.

I nid fɔ gɛt JavaSkript alɛt plɔgin

Fɔ mek yu ebul fɔ wok fayn fayn wan, we yu nɔ go ebul fɔ dismis, yu fɔ yuz di alɛt dɛn JavaSkript plɔgin .

<div class="alert alert-warning alert-dismissible" role="alert">
  <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  <strong>Warning!</strong> Better check yourself, you're not looking too good.
</div>

Mek shɔ se dɛn de biev fayn akɔdin to ɔl di divays dɛn

Mek shɔ se yu yuz di <button>ɛlimɛnt wit di data-dismiss="alert"data atribyut.

Yuz di .alert-linkyutiliti klas fɔ gi link dɛn we gɛt kɔlɔ we de mach kwik kwik wan insay ɛni alɛt.

<div class="alert alert-success" role="alert">
  <a href="#" class="alert-link">...</a>
</div>
<div class="alert alert-info" role="alert">
  <a href="#" class="alert-link">...</a>
</div>
<div class="alert alert-warning" role="alert">
  <a href="#" class="alert-link">...</a>
</div>
<div class="alert alert-danger" role="alert">
  <a href="#" class="alert-link">...</a>
</div>

Progres bar dɛn

Gi ɔp-to-dɛt fidbak bɔt di prɔgrɛs fɔ wan wokflɔ ɔ akshɔn wit simpul yet fleksibul prɔgrɛs bar dɛn.

Krɔs-brauza kɔmpitibliti

Progrɛs bar dɛn de yuz CSS3 transishɔn ɛn animashɔn dɛn fɔ ajɔst sɔm pan dɛn ifɛkt dɛn. Dɛn tin ya nɔ de sɔpɔt na Intanɛt Ɛksplɔrɔ 9 ɛn dɔŋ ya ɔ di ol wan dɛn fɔ Fayafaks. Opera 12 nɔ de sɔpɔt animashɔn dɛn.

Kɔntinɛnt Sikyuriti Polisi (CSP) kɔmpitibliti

If yu wɛbsayt gɛt Kɔntinɛnt Sikyuriti Polisi (CSP) we nɔ de alaw style-src 'unsafe-inline', dat min se yu nɔ go ebul fɔ yuz inlayn styleatribyut dɛn fɔ sɛt di prɔgrɛs bar wit lɛk aw dɛn sho na wi ɛgzampul dɛn we de dɔŋ ya. Ɔda we dɛn fɔ sɛt di wit dɛn we go kɔmpit wit strikt CSP dɛn na fɔ yuz smɔl kɔstɔm JavaSkript (we de sɛt element.style.width) ɔ fɔ yuz kɔstɔm CSS klas dɛn.

Besik ɛgzampul

Difɔlt prɔgrɛs bar.

60% Kɔmplit
<div class="progress">
  <div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;">
    <span class="sr-only">60% Complete</span>
  </div>
</div>

Wit di lebul

Rimov di <span>wit .sr-onlyklas frɔm insay di prɔgrɛs bar fɔ sho wan pasɛnt we yu kin si.

60% na di .
<div class="progress">
  <div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;">
    60%
  </div>
</div>

Fɔ mek shɔ se di lɛbl tɛks kɔntinyu fɔ rid ivin fɔ smɔl pasɛnt, tink bɔt fɔ ad a min-widthto di prɔgrɛs bar.

0% na di .
2% na di .
<div class="progress">
  <div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="min-width: 2em;">
    0%
  </div>
</div>
<div class="progress">
  <div class="progress-bar" role="progressbar" aria-valuenow="2" aria-valuemin="0" aria-valuemax="100" style="min-width: 2em; width: 2%;">
    2%
  </div>
</div>

Di ɔda we dɛn we dɛn kin yuz fɔ tɔk bɔt di kɔntɛks

Progrɛs bar dɛn de yuz sɔm pan di sem bɔtin ɛn alɛt klas dɛn fɔ stayl dɛn we nɔ de chenj.

40% Komplit (sakses) .
20% Kɔmplit
60% Kɔmplit (wɔnin) .
80% Komplit (denja) .
<div class="progress">
  <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
    <span class="sr-only">40% Complete (success)</span>
  </div>
</div>
<div class="progress">
  <div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 20%">
    <span class="sr-only">20% Complete</span>
  </div>
</div>
<div class="progress">
  <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%">
    <span class="sr-only">60% Complete (warning)</span>
  </div>
</div>
<div class="progress">
  <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%">
    <span class="sr-only">80% Complete (danger)</span>
  </div>
</div>

Striped we gɛt strɛp

Yuz wan gradient fɔ mek wan strɛp ifɛkt. Nɔ de na IE9 ɛn dɔŋ ya.

40% Komplit (sakses) .
20% Kɔmplit
60% Kɔmplit (wɔnin) .
80% Komplit (denja) .
<div class="progress">
  <div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
    <span class="sr-only">40% Complete (success)</span>
  </div>
</div>
<div class="progress">
  <div class="progress-bar progress-bar-info progress-bar-striped" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 20%">
    <span class="sr-only">20% Complete</span>
  </div>
</div>
<div class="progress">
  <div class="progress-bar progress-bar-warning progress-bar-striped" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%">
    <span class="sr-only">60% Complete (warning)</span>
  </div>
</div>
<div class="progress">
  <div class="progress-bar progress-bar-danger progress-bar-striped" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%">
    <span class="sr-only">80% Complete (danger)</span>
  </div>
</div>

Animashɔn we dɛn mek

Add .activeto .progress-bar-stripedfɔ animate di strɛp dɛn rayt to lɛft. Nɔ de na IE9 ɛn dɔŋ ya.

45% Kɔmplit
<div class="progress">
  <div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 45%">
    <span class="sr-only">45% Complete</span>
  </div>
</div>

Dɛn dɔn stak am

Put bɔku bɔku bar dɛn insay di sem .progressfɔ stak dɛn.

35% Kɔmplit (sakses) .
20% Kɔmplit (wɔnin) .
10% Kɔmplit (denja) .
<div class="progress">
  <div class="progress-bar progress-bar-success" style="width: 35%">
    <span class="sr-only">35% Complete (success)</span>
  </div>
  <div class="progress-bar progress-bar-warning progress-bar-striped" style="width: 20%">
    <span class="sr-only">20% Complete (warning)</span>
  </div>
  <div class="progress-bar progress-bar-danger" style="width: 10%">
    <span class="sr-only">10% Complete (danger)</span>
  </div>
</div>

Midia ɔbjɛkt

Abstrakt ɔbjɛkt stayl fɔ bil difrɛn kayn kɔmpɔnɛnt dɛn (lɛk blɔk kɔmɛnt, Twit, ɛn ɔda tin dɛn) we gɛt pikchɔ we dɛn alaynɛd ​​na di lɛft ɔ rayt nia di tɛkstual kɔntinyu.

Difɔlt midia

Di difɔlt midia de sho wan midia ɔbjɛkt (imej dɛn, vidio, odio) na di lɛft ɔ rayt say na wan kɔntinyu blɔk.

Midia edlayn

Kras sidon amet nibh libero, in gravida nulla. Nulla vel metus scelerisk ante sollisitudin komodo. Kras purus odio, vestibulum in vulputate na, tempus viverra turpis. Fusce kondimɛnt nunc ac nisi vulputate fringila. Donec lacinia congue felis na di faucibus.

Midia edlayn

Kras sidon amet nibh libero, in gravida nulla. Nulla vel metus scelerisk ante sollisitudin komodo. Kras purus odio, vestibulum in vulputate na, tempus viverra turpis. Fusce kondimɛnt nunc ac nisi vulputate fringila. Donec lacinia congue felis na di faucibus.

Nested midia edlayn

Kras sidon amet nibh libero, in gravida nulla. Nulla vel metus scelerisk ante sollisitudin komodo. Kras purus odio, vestibulum in vulputate na, tempus viverra turpis. Fusce kondimɛnt nunc ac nisi vulputate fringila. Donec lacinia congue felis na di faucibus.

Midia edlayn

Kras sidon amet nibh libero, in gravida nulla. Nulla vel metus scelerisk ante sollisitudin komodo. Kras purus odio, vestibulum in vulputate na, tempus viverra turpis.

Midia edlayn

Kras sidon amet nibh libero, in gravida nulla. Nulla vel metus scelerisk ante sollisitudin komodo. Kras purus odio, vestibulum in vulputate na, tempus viverra turpis.
<div class="media">
  <div class="media-left">
    <a href="#">
      <img class="media-object" src="..." alt="...">
    </a>
  </div>
  <div class="media-body">
    <h4 class="media-heading">Media heading</h4>
    ...
  </div>
</div>

Di klas dɛm .pull-leftɛn .pull-rightbak de ɛn dɛn bin de yuz am bifo as pat pan di midia kɔmpɔnɛnt, bɔt dɛn dɔn deprɛkt fɔ da yus de as fɔ v3.3.0. Dɛn na lɛk .media-leftɛn .media-right, pas nɔmɔ we .media-rightdɛn fɔ put afta di .media-bodyinsay di html.

Midia alaynɛshɔn

Di pikchɔ dɛn ɔ ɔda midia dɛn kin alaynɛd ​​ɔp, midul, ɔ dɔŋ. Di difɔlt na di ɔp alaynɛshɔn.

Top alaynɛt midia

Kras sidon amet nibh libero, in gravida nulla. Nulla vel metus scelerisk ante sollisitudin komodo. Kras purus odio, vestibulum in vulputate na, tempus viverra turpis. Fusce kondimɛnt nunc ac nisi vulputate fringila. Donec lacinia congue felis na di faucibus.

Donec sed odio dui. Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus ɛn magnis dis we de bɔn pikin, nascetur ridiculus mus.

Midul alaynɛt midia

Kras sidon amet nibh libero, in gravida nulla. Nulla vel metus scelerisk ante sollisitudin komodo. Kras purus odio, vestibulum in vulputate na, tempus viverra turpis. Fusce kondimɛnt nunc ac nisi vulputate fringila. Donec lacinia congue felis na di faucibus.

Donec sed odio dui. Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus ɛn magnis dis we de bɔn pikin, nascetur ridiculus mus.

Bottom alaynɛt midia

Kras sidon amet nibh libero, in gravida nulla. Nulla vel metus scelerisk ante sollisitudin komodo. Kras purus odio, vestibulum in vulputate na, tempus viverra turpis. Fusce kondimɛnt nunc ac nisi vulputate fringila. Donec lacinia congue felis na di faucibus.

Donec sed odio dui. Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus ɛn magnis dis we de bɔn pikin, nascetur ridiculus mus.

<div class="media">
  <div class="media-left media-middle">
    <a href="#">
      <img class="media-object" src="..." alt="...">
    </a>
  </div>
  <div class="media-body">
    <h4 class="media-heading">Middle aligned media</h4>
    ...
  </div>
</div>

Lis fɔ di midia

Wit smɔl ɛkstra mak, yu kin yuz midia insay list (yuzful fɔ kɔmɛnt trɛd ɔ atikul list).

  • Midia edlayn

    Kras sidon amet nibh libero, in gravida nulla. Nulla vel metus scelerisk ante sollisitudin komodo. Kras purus odio, vestibulum in vulputate na, tempus viverra turpis.

    Nested midia edlayn

    Kras sidon amet nibh libero, in gravida nulla. Nulla vel metus scelerisk ante sollisitudin komodo. Kras purus odio, vestibulum in vulputate na, tempus viverra turpis.

    Nested midia edlayn

    Kras sidon amet nibh libero, in gravida nulla. Nulla vel metus scelerisk ante sollisitudin komodo. Kras purus odio, vestibulum in vulputate na, tempus viverra turpis.

    Nested midia edlayn

    Kras sidon amet nibh libero, in gravida nulla. Nulla vel metus scelerisk ante sollisitudin komodo. Kras purus odio, vestibulum in vulputate na, tempus viverra turpis.
<ul class="media-list">
  <li class="media">
    <div class="media-left">
      <a href="#">
        <img class="media-object" src="..." alt="...">
      </a>
    </div>
    <div class="media-body">
      <h4 class="media-heading">Media heading</h4>
      ...
    </div>
  </li>
</ul>

Lista di grup

List grup na wan fleksibul ɛn pawaful kɔmpɔnɛnt fɔ sho nɔto jɔs simpul list dɛn fɔ ɛlimɛnt dɛn, bɔt kɔmpleks wan dɛn wit kɔstɔm kɔntinyu.

Besik ɛgzampul

Di list grup we impɔtant pas ɔl na jɔs wan list we nɔ ɔda wit list aytem dɛn, ɛn di rayt klas dɛn. Bil pan am wit di opshɔn dɛn we de kam biɛn, ɔ yu yon CSS as nid de.

  • Kras jɔsto odio
  • Dapibus ac fasilisis in
  • Morbi leo risus
  • Porta ac konsectetur wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan
  • Vestibulum na di eros
<ul class="list-group">
  <li class="list-group-item">Cras justo odio</li>
  <li class="list-group-item">Dapibus ac facilisis in</li>
  <li class="list-group-item">Morbi leo risus</li>
  <li class="list-group-item">Porta ac consectetur ac</li>
  <li class="list-group-item">Vestibulum at eros</li>
</ul>

Badge dɛn we dɛn kin yuz

Ad di badge dɛn kɔmpɔnɛnt to ɛni list grup aytem ɛn i go ɔtomɛtik de na di rayt say.

  • 14 we de tɔk bɔtKras jɔsto odio
  • 2. Di wan dɛn we deDapibus ac fasilisis in
  • 1. Di wan dɛn we deMorbi leo risus
<ul class="list-group">
  <li class="list-group-item">
    <span class="badge">14</span>
    Cras justo odio
  </li>
</ul>

Tin dɛn we gɛt link

Linkify list grup aytem dɛn bay we yu yuz ankɔ tag dɛn instead ɔf list aytem dɛn (dat min bak se na mama ɔ papa <div>instead ɔf wan <ul>). Nɔ nid fɔ wan wan mama ɛn papa dɛn rawnd ɛni ɛlimɛnt.

<div class="list-group">
  <a href="#" class="list-group-item active">
    Cras justo odio
  </a>
  <a href="#" class="list-group-item">Dapibus ac facilisis in</a>
  <a href="#" class="list-group-item">Morbi leo risus</a>
  <a href="#" class="list-group-item">Porta ac consectetur ac</a>
  <a href="#" class="list-group-item">Vestibulum at eros</a>
</div>

Di tin dɛn we de na di bɔtin

List grup aytem dɛn kin bi bɔtin dɛn instead ɔf list aytem dɛn (dat min bak se na mama ɔ papa <div>instead ɔf wan <ul>). Nɔ nid fɔ wan wan mama ɛn papa dɛn rawnd ɛni ɛlimɛnt. Nɔ yuz di standad .btnklas dɛn ya.

<div class="list-group">
  <button type="button" class="list-group-item">Cras justo odio</button>
  <button type="button" class="list-group-item">Dapibus ac facilisis in</button>
  <button type="button" class="list-group-item">Morbi leo risus</button>
  <button type="button" class="list-group-item">Porta ac consectetur ac</button>
  <button type="button" class="list-group-item">Vestibulum at eros</button>
</div>

Di tin dɛn we dɛn dɔn disable

Add .disabledto a .list-group-itemfɔ grey am aut fɔ mek i tan lɛk se i nɔ ebul fɔ du am.

<div class="list-group">
  <a href="#" class="list-group-item disabled">
    Cras justo odio
  </a>
  <a href="#" class="list-group-item">Dapibus ac facilisis in</a>
  <a href="#" class="list-group-item">Morbi leo risus</a>
  <a href="#" class="list-group-item">Porta ac consectetur ac</a>
  <a href="#" class="list-group-item">Vestibulum at eros</a>
</div>

Klas dɛn we de tɔk bɔt di kɔntɛks

Yuz kɔntɛkstual klas fɔ stayl list aytem dɛn, difɔlt ɔ link. Dɔn bak, i gɛt .activestet.

  • Dapibus ac fasilisis in
  • Kras sidon amet nibh libero
  • Porta ac konsectetur wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan
  • Vestibulum na di eros
<ul class="list-group">
  <li class="list-group-item list-group-item-success">Dapibus ac facilisis in</li>
  <li class="list-group-item list-group-item-info">Cras sit amet nibh libero</li>
  <li class="list-group-item list-group-item-warning">Porta ac consectetur ac</li>
  <li class="list-group-item list-group-item-danger">Vestibulum at eros</li>
</ul>
<div class="list-group">
  <a href="#" class="list-group-item list-group-item-success">Dapibus ac facilisis in</a>
  <a href="#" class="list-group-item list-group-item-info">Cras sit amet nibh libero</a>
  <a href="#" class="list-group-item list-group-item-warning">Porta ac consectetur ac</a>
  <a href="#" class="list-group-item list-group-item-danger">Vestibulum at eros</a>
</div>

Kɔstɔm kɔntinyu

Ad klos to ɛni HTML insay, ivin fɔ link list grup dɛn lɛk di wan we de dɔŋ ya.

<div class="list-group">
  <a href="#" class="list-group-item active">
    <h4 class="list-group-item-heading">List group item heading</h4>
    <p class="list-group-item-text">...</p>
  </a>
</div>

Panɛl dɛn

Pan ɔl we i nɔ kin nid ɔltɛm, sɔntɛnde yu nid fɔ put yu DOM insay bɔks. Fɔ dɛn sityueshɔn dɛn de, tray di panɛl kɔmpɔnɛnt.

Besik ɛgzampul

Bay difɔlt, ɔl wetin de .paneldu na fɔ aplay sɔm besik bɔda ɛn pad fɔ gɛt sɔm kɔntinyu.

Besik panɛl ɛgzampul
<div class="panel panel-default">
  <div class="panel-body">
    Basic panel example
  </div>
</div>

Panel wit edlayn

I izi fɔ ad wan ed kɔntena to yu panɛl wit .panel-heading. Yu kin put ɛni wan bak <h1>- <h6>wit .panel-titleklas fɔ ad edlayn we dɛn dɔn stayl bifo tɛm. Bɔt di font saiz dɛn fɔ <h1>- <h6>de ɔvalayz bay .panel-heading.

Fɔ mek yu ebul fɔ kɔlɔ di link fayn fayn wan, mek shɔ se yu put link dɛn na di edlayn dɛn insay .panel-title.

Panel edlayn we nɔ gɛt taytul
Di tin dɛn we de insay di panɛl

Taytul fɔ di panɛl

Di tin dɛn we de insay di panɛl
<div class="panel panel-default">
  <div class="panel-heading">Panel heading without title</div>
  <div class="panel-body">
    Panel content
  </div>
</div>

<div class="panel panel-default">
  <div class="panel-heading">
    <h3 class="panel-title">Panel title</h3>
  </div>
  <div class="panel-body">
    Panel content
  </div>
</div>

Rap bɔtin dɛn ɔ sɛkɔndari tɛks insay .panel-footer. Notis se panɛl fut dɛn nɔ de inhɛrit kɔlɔ ɛn bɔda dɛn we yu de yuz kɔntɛkstual chenj dɛn bikɔs dɛn nɔ min fɔ de na di fɔgrɔn.

Di tin dɛn we de insay di panɛl
<div class="panel panel-default">
  <div class="panel-body">
    Panel content
  </div>
  <div class="panel-footer">Panel footer</div>
</div>

Di ɔda we dɛn we dɛn kin yuz fɔ tɔk bɔt di kɔntɛks

Lɛk ɔda kɔmpɔnɛnt dɛn, izi fɔ mek wan panɛl gɛt mɔ minin to wan patikyula kɔntɛks bay we yu ad ɛni wan pan di kɔntɛkstual stet klas dɛn.

Taytul fɔ di panɛl

Di tin dɛn we de insay di panɛl

Taytul fɔ di panɛl

Di tin dɛn we de insay di panɛl

Taytul fɔ di panɛl

Di tin dɛn we de insay di panɛl

Taytul fɔ di panɛl

Di tin dɛn we de insay di panɛl

Taytul fɔ di panɛl

Di tin dɛn we de insay di panɛl
<div class="panel panel-primary">...</div>
<div class="panel panel-success">...</div>
<div class="panel panel-info">...</div>
<div class="panel panel-warning">...</div>
<div class="panel panel-danger">...</div>

Wit tebul dɛn

Ad ɛni wan we nɔ gɛt bɔda .tableinsay wan panɛl fɔ mek yu gɛt dizayn we nɔ gɛt wan bɔt. If .panel-body, wi kin ad ɛkstra bɔda na di ɔp pat na di tebul fɔ mek dɛn separet.

Panel edlayn

Sɔm difɔlt panɛl kɔntinyu ya. Nulla vitae elit libero, we na wan pharetra augu. Aenean lacinia bibendum we nɔ gɛt wan kɔnsɛkt. Aenean yu leo ​​quam. Pɛlɛntesk ɔrnare sem lasinia kwam venɛnatis vestibulum. Nullam id dolor id nibh ultrisis vehikula ut id elit.

# Di wan dɛn we de Fɔs nem Las nem Yuzɛn nem
1. Di wan dɛn we de Mak Ɔto bin de @mdo na @mdo
2. Di wan dɛn we de Jekɔb Tɔntɔn @bɔmp
3. Di wan dɛn we de Lari bin de tɔk di Bɔd @twitter na di twitter
<div class="panel panel-default">
  <!-- Default panel contents -->
  <div class="panel-heading">Panel heading</div>
  <div class="panel-body">
    <p>...</p>
  </div>

  <!-- Table -->
  <table class="table">
    ...
  </table>
</div>

If panɛl bɔdi nɔ de, di kɔmpɔnɛnt de muf frɔm panɛl hεda to tebul we nɔ gɛt ɛnitin fɔ ambɔg am.

Panel edlayn
# Di wan dɛn we de Fɔs nem Las nem Yuzɛn nem
1. Di wan dɛn we de Mak Ɔto bin de @mdo na @mdo
2. Di wan dɛn we de Jekɔb Tɔntɔn @bɔmp
3. Di wan dɛn we de Lari bin de tɔk di Bɔd @twitter na di twitter
<div class="panel panel-default">
  <!-- Default panel contents -->
  <div class="panel-heading">Panel heading</div>

  <!-- Table -->
  <table class="table">
    ...
  </table>
</div>

Wit list grup dɛn

I izi fɔ put ful-wid list grup dɛn insay ɛni panɛl.

Panel edlayn

Sɔm difɔlt panɛl kɔntinyu ya. Nulla vitae elit libero, we na wan pharetra augu. Aenean lacinia bibendum we nɔ gɛt wan kɔnsɛkt. Aenean yu leo ​​quam. Pɛlɛntesk ɔrnare sem lasinia kwam venɛnatis vestibulum. Nullam id dolor id nibh ultrisis vehikula ut id elit.

  • Kras jɔsto odio
  • Dapibus ac fasilisis in
  • Morbi leo risus
  • Porta ac konsectetur wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan wan
  • Vestibulum na di eros
<div class="panel panel-default">
  <!-- Default panel contents -->
  <div class="panel-heading">Panel heading</div>
  <div class="panel-body">
    <p>...</p>
  </div>

  <!-- List group -->
  <ul class="list-group">
    <li class="list-group-item">Cras justo odio</li>
    <li class="list-group-item">Dapibus ac facilisis in</li>
    <li class="list-group-item">Morbi leo risus</li>
    <li class="list-group-item">Porta ac consectetur ac</li>
    <li class="list-group-item">Vestibulum at eros</li>
  </ul>
</div>

Ɛmbed we de ansa

Alaw brawza dɛn fɔ no di dimɛnshɔn dɛn fɔ di vidio ɔ slayd sho bay di wit we dɛn gɛt blɔk we de insay bay we dɛn mek wan intrinsik rɛtɛshɔn we go skel fayn fayn wan pan ɛni divays.

Dɛn kin yuz lɔ dɛn dairekt wan fɔ <iframe>, <embed>, <video>, ɛn <object>ɛlimɛnt dɛn; opshɔnal yuz wan ɛksplisit dessɛndant klas .embed-responsive-itemwe yu want fɔ mach di stayl fɔ ɔda atribyut dɛn.

Pro-Tip fɔ di wan dɛn! Yu nɔ nid fɔ inklud frameborder="0"insay yu <iframe>s as wi de ɔvalayz dat fɔ yu.

<!-- 16:9 aspect ratio -->
<div class="embed-responsive embed-responsive-16by9">
  <iframe class="embed-responsive-item" src="..."></iframe>
</div>

<!-- 4:3 aspect ratio -->
<div class="embed-responsive embed-responsive-4by3">
  <iframe class="embed-responsive-item" src="..."></iframe>
</div>

Wɛls

Difɔlt fayn fayn wan

Yuz di wɛl as simpul ifɛkt pan wan ɛlimɛnt fɔ gi am insɛt ifɛkt.

Luk, a de insay wan wɛl!
<div class="well">...</div>

Klas dɛn we yu kin pik

Kontrol padding ɛn rawnd kɔna dɛn wit tu opshɔnal modifya klas dɛn.

Luk, a de insay wan big wɛl!
<div class="well well-lg">...</div>
Luk, a de insay wan smɔl wɛl!
<div class="well well-sm">...</div>