Component hrang hrangte

Bootstrap-ah hian reusable component dozens zet dah a ni a, hei hian navigation, alerts, popovers leh thil dang tam tak a pe thei a ni.

Button group hrang hrang te

Button group hmangin button tam tak chu composite component pakhat angin inzawm khawm rawh. Anni chu series of <a>or <button>elements hmangin siam rawh.

Thil tih dan tha ber ber te

Button group leh toolbar hman dan tur a hnuaia kaihhruainate hi kan rawt a ni:

  • Button group pakhatah element inang hmang fo ang che, <a>emaw <button>.
  • Button group khatah button rawng hrang hrang mix suh.
  • Text bakah emaw, a aiah emaw icon hmang la, mahse a remchan dan angin alt leh title text te dah tel ngei ang che.

Related Button group dropdown nei (a hnuaia en rawh) te chu a hranin koh chhuah tur a ni a, thil tih tumna lantir nan dropdown caret dah fo tur a ni.

Default entirnan

HTML hian anchor tag button hmanga siam standard button group a zawn dan chu hetiang hi a ni:

  1. <div class = "btn-pang" > tih hi a ni
  2. A rilru a buai em em a, a rilru a hah em em bawk a . 1 </ button >
  3. A rilru a buai em em a, a rilru a hah em em bawk a . 2 </ button >
  4. A rilru a buai em em a, a rilru a hah em em bawk a . 3 </ button >
  5. </div> tih a ni

Toolbar entirnan

Complex components tam zawk atan sets of <div class="btn-group">into a combine rawh.<div class="btn-toolbar">

  1. <div class = "btn-a hmanrua" >
  2. <div class = "btn-pang" > tih hi a ni
  3. ...
  4. </div> tih a ni
  5. </div> tih a ni

Checkbox leh radio flavor te pawh a awm bawk

Button group-te chu radio angin an thawk thei bawk a, chutah chuan button pakhat chauh a active thei a, checkbox angin a thawk thei bawk a, chutah chuan button engzat pawh a active thei bawk. Chumi atan chuan Javascript docs chu en rawh .

Javascript chu la rawh »

Button group hrang hrangah dropdown a awm

Lu a ti sang a! Dropdown nei button te chu rendering tha tak neih theih nan .btn-groupa chhungah anmahni inkhung hran vek tur a ni..btn-toolbar

Button a rawn tla thla thin

Entirna markup

Button group ang bawkin kan markup hian button markup pangngai a hmang a, mahse style tihthianghlim nan leh Bootstrap dropdown jQuery plugin support turin additions tlemte a awm bawk.

  1. <div class = "btn-pang" > tih hi a ni
  2. <a class = "btn dropdown-toggle" data-toggle = "a hnuaia mi ang hian" href = "#" >
  3. Thiltih
  4. < span class = "caret" tih a ni a, a hlawhtlinna chu a hlawhtlinna a ni
  5. </a> tih a ni
  6. <ul class = "a hnuaia mi ang hian" >
  7. <!-- dropdown menu link te chu -->
  8. </ul> tih a ni
  9. </div> tih a ni

Button size zawng zawng nen a thawk thei

Button dropdown hian eng size pawh a thawk thei. i button size te chu .btn-large, .btn-small, emaw .btn-mini.

Javascript a ngai a ni

Button dropdown-ah chuan Bootstrap dropdown plugin chu a thawk thei ang.

Thil engemaw takah chuan—mobile ang bawkin—dropdown menu-te chu viewport pawnah a inzar pharh ang. Alignment chu manual emaw custom javascript hmangin emaw i resolve a ngai a ni.


Split button a rawn lang ang

A tlangpui leh entirnan

Button group style leh markup hmangin awlsam takin split button kan siam thei ang. Split buttons ah hian vei lamah standard action a awm a, dinglamah dropdown toggle a awm a, contextual links a awm bawk.

Size hrang hrang

Extra button classes .btn-mini, .btn-small, emaw .btn-largesizing atan hmang rawh.

  1. <div class = "btn-pang" > tih hi a ni
  2. ...
  3. <ul class = "dropdown-menu atanga chhuak tur" >
  4. <!-- dropdown menu link te chu -->
  5. </ul> tih a ni
  6. </div> tih a ni

Entirna markup

Button dropdown pangngai chu kan tizau a, button action pahnihna kan pe a, chu chu dropdown trigger hran anga thawk a ni.

  1. <div class = "btn-pang" > tih hi a ni
  2. <button class = "btn" > Thiltih </button> tih a ni
  3. <button class = "btn atanga chhuak" data-toggle = "a tlak thlak" >
  4. < span class = "caret" tih a ni a, a hlawhtlinna chu a hlawhtlinna a ni
  5. </button> tih a ni
  6. <ul class = "a hnuaia mi ang hian" >
  7. <!-- dropdown menu link te chu -->
  8. </ul> tih a ni
  9. </div> tih a ni

Dropup menu te a awm bawk

Dropdown menu te pawh a hnuai atanga a chung lam atanga toggle theih a ni a, chu chu immediate parent ah class pakhat dah belh theih a .dropdown-menuni bawk. A kalna tur chu a flip ang a .caret, menu ngei pawh a reposition ang a, chunglam atanga hnuai lam atanga a hnuai lam atanga a chung lam pan lovin a kal ang.

  1. <div class = "btn-group atanga chhuak" >
  2. < button class = "btn" > A chhuah dawn chuan a chhuak leh ta a
  3. <button class = "btn atanga chhuak" data-toggle = "a tlak thlak" >
  4. < span class = "caret" tih a ni a, a hlawhtlinna chu a hlawhtlinna a ni
  5. </button> tih a ni
  6. <ul class = "a hnuaia mi ang hian" >
  7. <!-- dropdown menu link te chu -->
  8. </ul> tih a ni
  9. </div> tih a ni

Multicon-a phek hrang hranga pagination

Engtikah nge hman tur

Ultra simplistic leh minimally styled pagination chu Rdio atanga inspired a ni a, apps leh search results atan a tha hle. Block lian tak hi miss harsa tak a ni a, awlsam taka scalable a ni a, click area lian tak tak a pe bawk.

Stateful page link te pawh a awm bawk

Link te hi customizable a ni a, class dik tak nen dinhmun engemaw zatah a thawk thei bawk. .disabledlink click theih loh leh .activetuna page awm mek tan.

Alignment pawh a inthlak danglam thei

Pagination link alignment thlak danglam turin optional class pahnih zinga pakhat tal dah belh rawh: .pagination-centeredleh .pagination-right.

Entirna te

Default pagination component hi a flexible a, variation hrang hrangah a thawk thei bawk.

Markup a ni

Wrapped in a <div>, pagination chu a <ul>.

  1. <div class = "pagination" > tih hi a ni
  2. <ul> tih a ni
  3. <li><a href = "#" > Hmanlai </a></li>
  4. <li class = "active" > tih a ni
  5. <a href = "#" > 1 </a> tih hi a ni
  6. </li> tih a ni
  7. A rilru a buai em em a, a rilru a hah em em bawk a. 2 </a> < /li >
  8. A rilru a buai em em a, a rilru a hah em em bawk a. 3 </a> < /li >
  9. A rilru a buai em em a, a rilru a hah em em bawk a. 4 </a> < /li >
  10. <li><a href = "#" > A dawt leh tur </a></li>
  11. </ul> tih a ni
  12. </div> tih a ni

Pager Link hmasa leh lo awm tur rang tak tak hmuh theih nan

Pager chungchang

Pager component hi pagination implementation awlsam tak tak, light markup leh style lighter zawk neia link set a ni. Blog emaw magazine emaw ang chi site awlsam tak tak tan chuan a tha hle.

Optional disabled state a ni

Pager link te hian .disabledpagination atanga general class an hmang bawk.

Default entirnan

Default-ah chuan pager hian link a center a.

  1. < ul class = "pager" tih hi a ni
  2. <li> tih a ni
  3. <a href = "#" > Hmanlai </a>
  4. </li> tih a ni
  5. <li> tih a ni
  6. <a href = "#" > A dawt leh tur </a>
  7. </li> tih a ni
  8. </ul> tih a ni

Link te chu aligned a ni

A dang pawhin link tin chu a sir lamah i align thei bawk:

  1. < ul class = "pager" tih hi a ni
  2. <li class = "a hma lam" >
  3. A rilru a buai em em a, a rilru a hah em em bawk a. <a href = "#" > Kum upa zawk </a>
  4. </li> tih a ni
  5. <li class = "a dawt leh tur" >
  6. <a href = "#" > A thar zawk → </a> tih a ni
  7. </li> tih a ni
  8. </ul> tih a ni
Labels te pawh a awm Markup a ni
Hlawhchhamna <span class="label">Default</span>
Hlawhtling <span class="label label-success">Success</span>
Vaulawkna <span class="label label-warning">Warning</span>
Pawimawh <span class="label label-important">Important</span>
Info <span class="label label-info">Info</span>
Inverse a ni <span class="label label-inverse">Inverse</span>

Lam

Badge hi indicator emaw count chi khat emaw entir nan component te tak te, awlsam tak a ni. Mail.app ang chi email client-ah emaw, mobile app-ah emaw push notification atan an awm tlangpui.

Class awm thei te

Hming Entirna Markup a ni
Hlawhchhamna 1. a ni <span class="badge">1</span>
Hlawhtling 2. 2. <span class="badge badge-success">2</span>
Vaulawkna 4. 4. <span class="badge badge-warning">4</span>
Pawimawh 6. 6. <span class="badge badge-important">6</span>
Info 8. A ni <span class="badge badge-info">8</span>
Inverse a ni 10 a ni <span class="badge badge-inverse">10</span>

Hero unit a ni

Bootstrap hian i site-a content pholanna tur hero unit an tih component lightweight, flexible tak a pe a. Marketing leh content tamna site-ah te a thawk tha hle.

Markup a ni

divI content chu like so -in wrap rawh :

  1. <div class = "mi huaisen-unit" > tih hi a ni
  2. <h1> Thupui </h1> tih a ni
  3. <p> Tagline hmangin </p> tih a ni
  4. <p> tih a ni
  5. <a class = "btn btn-a bul tanna btn-a lian" >
  6. Hriat belh rawh
  7. </a> tih a ni
  8. </p> tih a ni
  9. </div> tih a ni

Hello, khawvel!

Hei hi hero unit awlsam tak a ni a, featured content emaw information emaw ngaihven belh zelna tur jumbotron-style component awlsam tak a ni.

Hriat belh rawh

Page header a ni

h1Page pakhata thu awmte chu a remchan dan anga space out leh segment turin shell awlsam tak a ni. A h1's default small, element bakah component dang tam zawk (style dang nen) a hmang thei bawk.

  1. <div class = "phek-a thupui" >
  2. <h1> Entirna phek header </h1>
  3. </div> tih a ni

Thumbnail hmasa ber a ni

Default-ah chuan Bootstrap-a thumbnail te hi linked images te chu markup mamawh tlem ber hmanga pholan theih tura siam a ni.

A customizable hle bawk

Extra markup tlem tal hmangin HTML content chi hrang hrang heading, paragraph, button te chu thumbnail-ah dah theih a ni.

  • Thumbnail label a ni

    A rilru a hah lutuk chuan a rilru a buai em em a, a rilru a hah lutuk chuan a rilru a buai em em bawk a. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida chu eget metus ah a awm a. Nullam id dolor id nibh ultricies lirthei ut id elit.

    Thiltih Thiltih

  • Thumbnail label a ni

    A rilru a hah lutuk chuan a rilru a buai em em a, a rilru a hah lutuk chuan a rilru a buai em em bawk a. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida chu eget metus ah a awm a. Nullam id dolor id nibh ultricies lirthei ut id elit.

    Thiltih Thiltih

Engvangin nge thumbnail hman

Thumbnail ( .media-grida hma chuan v1.4 thleng) hi thlalak emaw video emaw grid, image search result, retail products, portfolio leh thil dang tam tak atan a tha hle. Link emaw static content emaw pawh a ni thei.

Markup awlsam tak, flexible tak a ni

Thumbnail markup hi a awlsam hle— element ulengzat pawh neia awm chu a mamawh vek a ni. liSuper flexible a ni bawk a, i content wrap theihna tur markup tlemte chauh hmangin content chi hrang hrang pawh a phalsak bawk.

Grid column size hrang hrang a hmang thin

A tawp berah chuan thumbnails component hian grid system class awmsa—like .span2or .span3—thumbnail dimension control nan a hmang a.

A markup chu

Sawi tawh ang khan thumbnail atana markup mamawh chu a light leh straightforward a ni. Linked images te default setup chu hetiang hian kan rawn tarlang e :

  1. <ul class = "thumbnail te" > tih a ni
  2. <li class = "span3" > tih a ni
  3. <a href = "#" class = "thumbnail" > tih a ni
  4. <img src = "A hmunhma hi a dik lo a ni" alt = "" >
  5. </a> tih a ni
  6. </li> tih a ni
  7. ...
  8. </ul> tih a ni

Thumbnail-a custom HTML content atan chuan markup chu a danglam deuh thin. Khawi hmunah pawh block level content phalsak turin kan swap the <a>for a <div>like so:

  1. <ul class = "thumbnail te" > tih a ni
  2. <li class = "span3" > tih a ni
  3. <div class = "thumbnail" > tih hi a ni
  4. <img src = "A hmunhma hi a dik lo a ni" alt = "" >
  5. <h5> Thumbnail label </h5> tih a ni
  6. <p> Thumbnail caption chu hetah hian... </p>
  7. </div> tih a ni
  8. </li> tih a ni
  9. ...
  10. </ul> tih a ni

Entirna tam zawk

I duhthlan tur zawng zawng chu grid class hrang hrang i neih theihte hmangin explore rawh. Size hrang hrang pawh mix leh match theih a ni bawk.

Default a rit lo hle

Base class ziah thar leh a ni

.alertBootstrap 2 hmang hian base class kan ti awlsam a: .alert-message. Markup mamawh tlem ber pawh kan tihtlem bawk—no <p>hi default-in a ngai a, outer chauh a <div>ni.

Alert message pakhat chauh a awm

Code tlem zawk nei component chhe thei lo zawk atan chuan block alerts, padding tam zawk nena rawn kal message leh typically text tam zawk awmna differentiating look chu kan paih chhuak ta a ni. Class pawh a inthlak tawh a .alert-block.


Javascript nen a kal tha hle

Bootstrap hian jQuery plugin ropui tak a keng tel a, chu chuan alert message a support a, dismissing pawh a awlsamin a ti awlsam hle.

Plugin chu la rawh »

Entirna alerts te

I message leh optional close icon chu div ah simple class hmangin wrap rawh.

Vaulawkna! Best check yo self, i hmel a tha lutuk lo.
  1. <div class = "a hriattir" >
  2. <button class = "khar" data-dismiss = "alert" > × </button> tih a ni
  3. <strong> Vaukhânna! </strong> Best check yo self, i hmel a tha lutuk lo.
  4. </div> tih a ni

Lu a ti sang a! iOS device-ah chuan href="#"alert paih chhuahna atan an mamawh a ni. Anchor close icons atana data attribute te pawh telh ngei ngei tur a ni. A dang pawhin <button>data attribute nei element i hmang thei bawk a, chu chu kan docs atan tih kan thlang a ni. , i hman hunah chuan <button>i dah tel tur a ni a, type="button"chuti lo chuan i form-te chu i thehlut lo thei bawk.

Standard alert message chu awlsam takin optional class pahnih hmangin extend rawh: .alert-blockpadding leh text control tam zawk atan leh .alert-headingheading inmil tur atan.

Vaulawkna!

Best check yo self, i hmel a tha lutuk lo. Nulla vitae elit libero tih hi a ni a, a man pawh a tlawm hle. A rilru a hah lutuk chuan a rilru a buai em em a, a rilru a hah lutuk chuan a rilru a buai em em bawk a. vel scelerisque nisl consectetur et.

  1. <div class = "alert-block hriattirna" >
  2. <a class = "khar" data-dismiss = "alert" href = "#" > × </a>
  3. <h4 class = "alert-heading" > Vaukhânna! </h4> tih a ni
  4. Best check yo self, i ni lo...
  5. </div> tih a ni

Contextual alternatives Alert pakhat awmzia thlak danglam turin optional class te dah belh rawh

Thil tihsual emaw hlauhawm emaw

Aw snap! Thil tlemte thlak la, submit leh tum leh rawh.
  1. <div class = "alert-a tihsual hriattirna" >
  2. ...
  3. </div> tih a ni

Hlawhtling

I ti tha e! He alert message pawimawh tak hi hlawhtling takin i chhiar a ni.
  1. <div class = "alert-hlawhtlinna" >
  2. ...
  3. </div> tih a ni

Hriattirna

Lu a ti sang a! He alert hian i ngaihven a ngai a, mahse super important a ni lo.
  1. <div class = "alert-info hriattirna" >
  2. ...
  3. </div> tih a ni

Entirna leh markup te

Bulthut

Default progress bar ah chuan vertical gradient a awm a.

  1. <div class = "hmasawnna" >
  2. <div class = "bar" tih a ni.
  3. style = " zau zawng : 60 %; " ></div>
  4. </div> tih a ni

Striped a ni

Gradient hmangin striped effect a siam (IE awm lo).

  1. <div class = "hmasawnna hmasawnna-striped" >
  2. <div class = "bar" tih a ni.
  3. style = " zau zawng : 20 %; " ></div>
  4. </div> tih a ni

Animated a ni

Striped entirnan a la a, a animate (IE awm lo).

  1. <div class = "hmasawnna hmasawnna-striped."
  2. active" > tih a ni
  3. <div class = "bar" tih a ni.
  4. style = " zau zawng : 40 %; " ></div>
  5. </div> tih a ni

Options leh browser support te pawh a awm bawk

Additional rawng pawh a awm bawk

Progress bar-ah hian style inang lo tak tak siam nan button leh alert class inang thenkhat an hmang thin.

Striped bar a awm bawk

Solid color ang bawkin striped progress bar hrang hrang kan nei bawk.

Nungchang

Progress bars hian CSS3 transition an hmang a, chuvangin javascript hmanga width dynamically i adjust chuan smooth takin a resize ang.

.activeClass i hman chuan i .progress-stripedprogress bars te hian stripe te chu veilam atanga dinglam thlengin a animate ang.

Browser hmanga support theih a ni

Progress bar-ah hian CSS3 gradient, transition, leh animation te hmangin an effect zawng zawng an hmu vek a. Heng features te hi IE7-9 emaw Firefox version hlui zawkah chuan a support lo.

Opera leh IE hian tun dinhmunah animation an support lo.

Wells a ni

Element pakhata inset effect pe turin well chu simple effect angin hmang ang che.

En teh, tuikhuah chhungah ka awm a!
  1. <div class = "a tha" > tih hi a ni
  2. ...
  3. </div> tih a ni

Icon kha khar rawh

Modal leh alerts ang chi content dismiss nan generic close icon hmang ang che.

  1. <button class = "khar" > × </button> tih a ni

iOS devices ah hian anchor i hman duh chuan click events atan href="#" a ngai a ni.

  1. <a class = "khar" href = "#" > × </a> tih a ni