Bays CSS fɔ di Baybul

Fɔndamɛnt HTML ɛlimɛnt dɛn we dɛn stayl ɛn ɛnhans wit klas dɛn we dɛn kin ɛkstɛnd.

Hed dɛn de ɔp! Dɛn doks ya na fɔ v2.3.2, we nɔ ɔfishal sɔpɔt igen. Chek di laytst vɛshɔn fɔ Bootstrap!

Di edlayn dɛn

Ɔl di HTML edlayn dɛn, <h1>tru <h6>de.

h1. Di edlayn 1

h2. Di edlayn 2

h3. Di edlayn 3

h4. Di edlayn 4

h5. Di edlayn 5
h6. Di edlayn 6

Bɔdi kɔpi

Bootstrap in glob ɔl difɔlt font-sizena 14px , wit wan line-heightwe na 20px . Dɛn kin yuz dis fɔ di <body>ɛn ɔl di paregraf dɛn. Apat frɔm dat, <p>(paragraf dɛn) kin gɛt wan bɔt margin we na af pan dɛn layn-ayt (10px bay difɔlt).

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. Nullam id dolor id nibh ultrisis vehikula.

Cum sociis natoque penatibus ɛn magnis dis we de bɔn pikin, nascetur ridiculus mus. Donec ullamcorper nulla non metus ɔktɔ fringila. Duis mollis, est non komodo luktus, nisi erat porttitor ligula, eget lasinia odio sem nec elit. Donec ullamcorper nulla non metus ɔktɔ fringila.

Maecenas sed diam eget risus varius blandit sidɔm amet nɔ magna. Donec id elit non mi porta gravida na eget metus. Duis mollis, est non komodo luktus, nisi erat porttitor ligula, eget lasinia odio sem nec elit.

<p> ... </p> fɔ di wan dɛn we de

Lid bɔdi kɔpi

Mek wan paregraf difrɛn bay we yu ad .lead.

Vivamus sagittis lakus vel augu laoreet rutrum faucibus dolor ɔkta. Duis mollis, est we nɔto kɔmɔdo luktɔs.

<p klas = "lid" > ... </p> 

Dɛn bil am wit Less

Di taypografik skel na bays pan tu LESS vɛriɔbul dɛn insay vɛriɔbul dɛn.less : @baseFontSizeɛn @baseLineHeight. Di fɔs wan na di bays font-sayz we dɛn yuz ɔlsay ɛn di sɛkɔn wan na di bays layn-ayt. Wi de yuz dɛn vɛriɔbul dɛn de ɛn sɔm simpul mats fɔ mek di margin, padding, ɛn layn-ayt dɛn fɔ ɔl wi tayp ɛn mɔ. Kastamayz dɛn ɛn Bootstrap de adap.


Atɛnshɔn pan

Mek yus to HTML in difɔlt ɛmpɛshmɛnt tɛg dɛn wit laytwɛt stayl dɛn.

<small>

Fɔ de-ɛmpɛshi inlayn ɔ blɔk dɛn fɔ tɛks, yuz di smɔl tag.

Dis layn fɔ di tɛks dɛn min fɔ trit am lɛk fayn print.

<p> <small> Dis layn fɔ tɛks min fɔ trit am lɛk fayn print. </smɛl> </p>
  

Gɛt maynd

Fɔ ɛksplen wan smɔl tɛks wit wan font-weit we ebi.

Di smɔl pat pan di tɛks we de dɔŋ ya de sho as bold tɛks .

<strong> dɛn rɛnd am lɛk bold tɛks </strong>

Italik dɛn we dɛn rayt

Fɔ ɛksplen wan smɔl tɛks wit italiks.

Di smɔl pat pan di tɛks we de dɔŋ ya de sho lɛk tɛks we dɛn rayt italiks .

<em> dɛn rɛnd am lɛk tɛks we dɛn rayt italiks </em>

Hed dɛn de ɔp!Fil fri fɔ yuz <b>ɛn <i>insay HTML5. <b>na fɔ aylayt wɔd ɔ frɛz dɛn we nɔ de gi ɔda impɔtants we <i>na fɔ vɔys, tɛknikal wɔd dɛn, ɛn ɔda tin dɛn.

Alaynɛshɔn klas dɛn

I izi fɔ rialayn tɛks to kɔmpɔnɛnt dɛn wit tɛks alaynɛshɔn klas dɛn.

Tekst we de alaynɛd ​​na di lɛft.

Di tɛks we dɛn alaynɛd ​​na di sɛnta.

Tekst we dɛn alaynɛd ​​rayt.

  1. <p klas = "tɛks-lɛft" > Left alaynɛt tɛks. </p>we de sho aw fɔ du dat
  2. <p class = "text-center" > Sɛnta alaynɛt tɛks. </p>we de sho aw fɔ du dat
  3. <p class = "text-right" > Rayt alaynɛt tɛks. </p>we de sho aw fɔ du dat

Ɛmpɛshimɛnt klas dɛn

Kɔnvɛy minin tru kɔlɔ wit wan anful ɛmpɛshimɛnt yutiliti klas dɛm.

Fusce dapibus, tellus ac cursus komodo, tortor mauris nibh.

Etiam porta sem malesuada magna mollis yusmod.

Donec ullamcorper nulla non metus ɔktɔ fringila.

Aenean yu leo ​​quam. Pellentesque ornare na di sem lacinia kwam venenatis.

Duis mollis, est nɔ komodo luktɔs, nisi erat pɔtitɔ ligula.

  1. <p klas = "muted" > Fusce dapibus, tellus ak kɔs kɔmɔdo, tortor mauris nibh. </p>we de sho aw fɔ du dat
  2. <p klas = "tɛks-wɔnin" > Etiam porta sem malesuada magna mollis euismod. </p>we de sho aw fɔ du dat
  3. <p klas = "tɛks-ɛrɔd" > Donec ullamcorper nula nɔ mɛtus ɔkta fringila. </p>we de sho aw fɔ du dat
  4. <p klas = "tɛks-info" > Aenean yu leo ​​quam. Pɛlɛntesk ɔnare sem lacinia kwam venɛnatis. </p>we de sho aw fɔ du dat
  5. <p klas = "tɛks-sakses" > Duis mollis, est nɔ kɔmodo lɔktɔs, nisi erat pɔtitɔ ligula. </p>we de sho aw fɔ du dat

Di tin dɛn we dɛn kin yuz fɔ shɔt

Stylized implimentishɔn fɔ HTML in <abbr>ɛlimɛnt fɔ abrevieshɔn ɛn akɔdin fɔ sho di ɛkspanda vɛshɔn pan hova. Abbrevieshɔn dɛn we gɛt titleatribyut gɛt layt dɔt bɔt bɔda ɛn ɛp kɔsa we yu de hova, we de gi ɔda kɔntɛks we yu de hova.

<abbr>

Fɔ ɛkspanda tɛks pan lɔng hova fɔ wan abrevieshɔn, put di titleatribyut.

Wan shɔt we fɔ di wɔd atribyut na attr .

<abbr taytul = "atribyut" > atr </abbr> 

<abbr class="initialism">

Ad .initialismto wan abrevieshɔn fɔ wan smɔl font-sayz.

HTML na di bes tin sins slais bred.

<abbr title = "HaypaTɛks Mak-ap Langwej" klas = "initialism" > HTML </abbr>  

Adrɛs dɛn

Prɛzɛnt kɔntakt infɔmeshɔn fɔ di gret gret granpa we de nia yu ɔ di wan ol bɔdi fɔ wok.

<address>

Priziv fɔmat bay we yu dɔn ɔl di layn dɛn wit <br>.

795
Folsom Ave, Suit 600
San Fransisko, CA 94107
P: (123) 456-7890
Ful Nem
fɔs.last@ɛgzampul.com
  1. <adrɛs>
  2. <strong> Twita, Ink. </strong><br>
  3. 795 folsom ave, suite 600 <br>
  4. San Fransisko, CA 94107 <br>
  5. <abbr taytul = "Fɔn" > P: </abbr> (123) 456-7890
  6. </adrɛs>
  7.  
  8. <adrɛs>
  9. <strong> Ful Nem </strong><br>
  10. <a href = "mailto:#" > fɔs.las@ɛgzampul.kɔm </a>
  11. </adrɛs>

Blɔkkɔt dɛn

Fɔ kot blɔk dɛn fɔ kɔntinyu frɔm ɔda sɔs insay yu dɔkyumɛnt.

Difɔlt blɔkkɔt

Rap <blockquote>rawnd ɛni HTML as di kot. Fɔ stret kot dɛn wi kin advays fɔ mek wan <p>.

Lorem ipsum dolor sidon amet, konsektetur adipissing elit. Intaj posuere erat wan ante.

  1. <blɔkkɔt>
  2. <p> Lorem ipsum dolor sidɔm amet, kɔnsɛktɛtur adipisin ɛlit. Intaj posuere erat wan ante. </p>we de sho aw fɔ du dat
  3. </blɔkkɔt>

Blɔkkɔt opshɔn dɛn

Stayl ɛn kɔntinyu chenj fɔ simpul chenj dɛn na wan standad blɔkkɔt.

Fɔ gi nem to wan sɔs

Ad <small>tag fɔ no di say we dɛn pul am. Rap di nem fɔ di sɔs wok insay <cite>.

Lorem ipsum dolor sidon amet, konsektetur adipissing elit. Intaj posuere erat wan ante.

Sɔmbɔdi we gɛt nem na Sos Taytul
  1. <blɔkkɔt>
  2. <p> Lorem ipsum dolor sidɔm amet, kɔnsɛktɛtur adipisin ɛlit. Intaj posuere erat wan ante. </p>we de sho aw fɔ du dat
  3. <small> Sɔmbɔdi we gɛt nem <cite title = "Sɔs Taytul" > Sɔs Taytul </cite></small>
  4. </blɔkkɔt>

Ɔda displei dɛn

Yuz .pull-rightfɔ wan blɔkkɔt we de flɔt, we de alaynɛd ​​rayt.

Lorem ipsum dolor sidon amet, konsektetur adipissing elit. Intaj posuere erat wan ante.

Sɔmbɔdi we gɛt nem na Sos Taytul
  1. <blɔkkɔt klas = "pul-rayt" >
  2. ...
  3. </blɔkkɔt>

List dɛn

Nɔ ɔda ɔda tin dɛn

Wan list fɔ di tin dɛn we di ɔda nɔ impɔtant klia wan.

  • Lorem ipsum dolor sidon amet
  • Konsectetur adipiscing elit we de na di bɔdi
  • Integer molestie lorem na massa
  • Fasilisis in prɛtiɔm nisl alikɛt
  • Nulla volutpat alikɔm velit
    • Fasɛl iakulis nɛk
    • Purus sodales di wan dɛn we de bɔn
    • Vestibulum laoreet pɔtitɔr sem
    • A tristik libero volutpat na
  • Faucibus porta lakus fringila vel
  • Aenean sidon amet erat nunc
  • Eget porttitor lorem we yu de du
  1. <ul> fɔ di wan dɛn we de
  2. <li> ... </li> fɔ di wan dɛn we de
  3. </ul> fɔ di wan dɛn we de

Dɛn dɔn ɔda am

Wan list fɔ di tin dɛn we di ɔda impɔtant klia wan.

  1. Lorem ipsum dolor sidon amet
  2. Konsectetur adipiscing elit we de na di bɔdi
  3. Integer molestie lorem na massa
  4. Fasilisis in prɛtiɔm nisl alikɛt
  5. Nulla volutpat alikɔm velit
  6. Faucibus porta lakus fringila vel
  7. Aenean sidon amet erat nunc
  8. Eget porttitor lorem we yu de du
  1. <ol> fɔ di wan dɛn we de
  2. <li> ... </li> fɔ di wan dɛn we de
  3. </ol>we de sho aw fɔ du dat

Nɔ stayl

Rimov di difɔlt list-styleɛn lɛft pad pan di tin dɛn we de na di list (pikin dɛn nɔmɔ).

  • Lorem ipsum dolor sidon amet
  • Konsectetur adipiscing elit we de na di bɔdi
  • Integer molestie lorem na massa
  • Fasilisis in prɛtiɔm nisl alikɛt
  • Nulla volutpat alikɔm velit
    • Fasɛl iakulis nɛk
    • Purus sodales di wan dɛn we de bɔn
    • Vestibulum laoreet pɔtitɔr sem
    • A tristik libero volutpat na
  • Faucibus porta lakus fringila vel
  • Aenean sidon amet erat nunc
  • Eget porttitor lorem we yu de du
  1. <ul klas = "nɔ stayl" >
  2. <li> ... </li> fɔ di wan dɛn we de
  3. </ul> fɔ di wan dɛn we de

Inlayn

Put ɔl di list tin dɛn na wan layn wit inline-blockɛn sɔm layt pad.

  • Lorem ipsum we de na di wɔl
  • Faselɔs iakulis we de na di bɔdi
  • Nulla volutpat fɔ di wan dɛn we de
  1. <ul klas = "inlayn" >
  2. <li> ... </li> fɔ di wan dɛn we de
  3. </ul> fɔ di wan dɛn we de

Tɔk bɔt

Wan list fɔ di wɔd dɛn wit di diskripshɔn dɛn we gɛt fɔ du wit dɛn.

Diskripshɔn list dɛn
Wan diskripshɔn list fayn fɔ difayn wɔd dɛn.
Yuismod bin de
Vestibulum id ligula porta felis yuismod semper eget lasinia odio sem nec elit.
Donec id elit non mi porta gravida na eget metus.
Malesuada we de na di wɔl
Etiam porta sem malesuada magna mollis yusmod.
  1. <dl> fɔ di wan dɛn we de
  2. <dt> ... </dt> fɔ di wan dɛn we de
  3. <dd> ... </dd> fɔ di wan dɛn we de
  4. </dl> fɔ di wan dɛn we de

Ɔrizɔntal diskripshɔn

Mek tɛm ɛn diskripshɔn dɛn na <dl>layn ɔp sayd-to-sayd.

Diskripshɔn list dɛn
Wan diskripshɔn list fayn fɔ difayn wɔd dɛn.
Yuismod bin de
Vestibulum id ligula porta felis yuismod semper eget lasinia odio sem nec elit.
Donec id elit non mi porta gravida na eget metus.
Malesuada we de na di wɔl
Etiam porta sem malesuada magna mollis yusmod.
Felis euismod semper eget lasinia
Fusce dapibus, tellus ac cursus commodo, tortor mauris kondimɛnt nibh, ut fɛmintɔm massa jɔs sidɔm amet risus.
  1. <dl klas = "dl-ɔrizɔntal" >
  2. <dt> ... </dt> fɔ di wan dɛn we de
  3. <dd> ... </dd> fɔ di wan dɛn we de
  4. </dl> fɔ di wan dɛn we de

Hed dɛn de ɔp!Ɔrizɔntal diskripshɔn list dɛn go kɔt tɛm dɛn we tu lɔng fɔ fit insay di lɛft kɔlɔm fiks text-overflow. Insay smɔl smɔl viupɔt dɛn, dɛn go chenj to di difɔlt layout we dɛn dɔn stak.

Inlayn

Rap inlayn snipet dɛn fɔ kɔd wit <code>.

Fɔ ɛgzampul, <section>dɛn fɔ rap am as inlayn.
  1. ɛgzampul , <kɔd> & lt ; sekshɔn & gt ;</ kɔd > fɔ rap lɛk inlayn .

Besik blɔk

Yuz <pre>fɔ bɔku layn dɛn fɔ kɔd. Mek shɔ se yu rɔnawe pan ɛni angul brakɛt na di kɔd fɔ mek yu rɛnd fayn fayn wan.

<p>Sampul tɛks ya...</p>
  1. <prɛ>
  2. <p>Sampul tɛks ya...</p>
  3. </pre> fɔ di wan dɛn we de

Hed dɛn de ɔp!Mek shɔ se yu kip kɔd insay <pre>tag dɛn as klos to di lɛft as yu ebul; i go rɛnd ɔl di tab dɛn.

Yu kin opshɔnali ad di .pre-scrollableklas we go sɛt maks-ayt fɔ 350px ɛn gi wan y-aks skrolba.

Difɔlt stayl dɛn

Fɔ di bɛsis stayl—layt pad ɛn jɔs ɔrizɔntal divayda dɛn—ad di bays klas .tableto ɛni <table>.

# 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 @twita na di twitter
  1. <tebul klas = "tebul" >
  2. ...
  3. </tebul>

Klas dɛn we yu kin pik

Ad ɛni wan pan di klas dɛn we de dɔŋ ya to di .tablebays klas.

.table-striped

Ad zebra-striping to ɛni tebul row insay di <tbody>via di :nth-childCSS sɛlɛktɔ (nɔ de na IE7-8).

# 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 @twita na di twitter
  1. <tebul klas = "tebul tebul-strip" >
  2. ...
  3. </tebul>

.table-bordered

Ad bɔda dɛn ɛn kɔna dɛn we gɛt rawnd to di tebul.

# 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
Mak Ɔto bin de @gɛtbɔtstrap
2. Di wan dɛn we de Jekɔb Tɔntɔn @bɔmp
3. Di wan dɛn we de Larry di Bɔd @twita na di twitter
  1. <tebul klas = "tebul-bɔda" >
  2. ...
  3. </tebul>

.table-hover

Enable wan hover stet pan tebul rows insay wan <tbody>.

# 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 Larry di Bɔd @twita na di twitter
  1. <tebul klas = "tebul tebul-hova" >
  2. ...
  3. </tebul>

.table-condensed

Mek tebul dɛn kɔmpakt mɔ bay we i de kɔt sɛl pad insay af.

# 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 Larry di Bɔd @twita na di twitter
  1. <tebul klas = "tebul tebul-kɔndɛns" >
  2. ...
  3. </tebul>

Opshɔnal row klas dɛn

Yuz kɔntɛkstual klas fɔ kala tebul rɔw dɛn.

Klas Tɔk bɔt
.success I de sho se pɔsin dɔn du sɔntin fayn ɔ i dɔn du gud tin.
.error I de sho se dɛn du sɔntin we denja ɔ we go mek dɛn du bad tin.
.warning I de sho se dɛn gɛt wɔnin we go nid fɔ pe atɛnshɔn.
.info Yuz am as ɔda we fɔ di difɔlt stayl dɛn.
# Di wan dɛn we de Sɔntin Peyment we dɛn tek Pozishɔn
1. Di wan dɛn we de TB - Ɛvri mɔnt 01/04/2012 bin de Dɔn gri
2. Di wan dɛn we de TB - Ɛvri mɔnt 02/04/2012 bin de Dɛn nɔ gri fɔ tek am
3. Di wan dɛn we de TB - Ɛvri mɔnt 03/04/2012 bin de De wet
4. Di wan dɛn we de TB - Ɛvri mɔnt 04/04/2012 bin de Kɔl insay fɔ kɔnfɔm
  1. ...
  2. < tr klas = "sakses" >
  3. <td> 1 < /td> fɔ di wan dɛn we de
  4. <td>TB - Ɛvri mɔnt</ td >
  5. <td> 01 / 04 / 2012 < /td>
  6. <td>Dɛn dɔn gri fɔ</ td >
  7. </ tr > we de na di wɔl
  8. ...

Sɔpɔt tebul mak-ap

Lista fɔ di tebul HTML ɛlimɛnt dɛn we dɛn sɔpɔt ɛn aw dɛn fɔ yuz dɛn.

Pent Tɔk bɔt
<table> Wrapping element fɔ sho data insay wan tebul fɔmat
<thead> Kɔntinɛnt ɛlimɛnt fɔ tebul hεda rɔw dɛn ( <tr>) fɔ lɛbul tebul kɔlɔm dɛn
<tbody> Kɔntinɛnt ɛlimɛnt fɔ tebul rɔw dɛn ( <tr>) na di bɔdi fɔ di tebul
<tr> Kɔntinɛnt ɛlimɛnt fɔ wan sɛt fɔ tebul sɛl dɛn ( <td>ɔ <th>) we de apia na wan rɔw
<td> Difɔlt tebul sɛl
<th> Speshal tebul sɛl fɔ kɔlɔm (ɔ row, dipen pan skɔp ɛn ples) lɛbl dɛn
<caption> Diskripshɔn ɔ sɔma fɔ wetin di tebul gɛt, mɔ fɔ di wan dɛn we de rid di skrin
  1. <tebul>
  2. <kapshɔn> ... </kapshɔn>
  3. <di ed>
  4. <tr> fɔ di wan dɛn we de
  5. <th> ... </th> fɔ di wan dɛn we de
  6. <th> ... </th> fɔ di wan dɛn we de
  7. </tr>we de sho aw fɔ du dat
  8. </thead> fɔ di wan dɛn we de
  9. <tbɔdi>
  10. <tr> fɔ di wan dɛn we de
  11. <td> ... </td> fɔ di wan dɛn we de
  12. <td> ... </td> fɔ di wan dɛn we de
  13. </tr>we de sho aw fɔ du dat
  14. </tbɔdi>
  15. </tebul>

Difɔlt stayl dɛn

Individyual fɔm kɔntrol dɛn de gɛt stayl, bɔt witout ɛni rikwayd bays klas pan di <form>ɔ big chenj dɛn na mak. Rizult in stak, lɛft-alayn lɛbl dɛn ɔp fɔm kɔntrol dɛn.

Soso stori Ɛgzampul blɔk-lɛvel ɛp tɛks ya.
  1. <fɔm>
  2. <fild sɛt>
  3. <lɛjɛnd> Lɛjɛnd </lɛjɛnd>
  4. <lɛbul> Lebul nem </label>
  5. <input type = "text" pleshɔlda = "Tayp sɔntin..." >
  6. <span class = "help-block" > Ɛgzampul blɔk-lɛvel ɛp tɛks ya. </span> fɔ di wan dɛn we de
  7. <lɛbul klas = "chɛkbɔks" >
  8. <input type = "checkbox" > Chɛk mi aut
  9. </label> fɔ di wan dɛn we de
  10. <bɔtin tayp = "sɔbmit" klas = "btn" > Sɔbmit </bɔtin>
  11. </fild sɛt>
  12. </fɔm>

Layout dɛn we yu kin pik

Inklud wit Bootstrap na tri opshɔnal fɔm layout fɔ kɔmɔn yus kes dɛn.

Fɔm fɔ fɛn tin dɛn

Ad .form-searchto di fɔm ɛn .search-queryto di <input>fɔ wan ɛkstra-raun tɛks input.

  1. <fɔm klas = "fɔm-sɔch" >
  2. <input tayp = "tɛks" klas = "input-midiɔm sɔch-kwɛstyɔn" >
  3. <bɔtin tayp = "sɔbmit" klas = "btn" > Sɔch </bɔtin>
  4. </fɔm>

Fɔm we de insay di layn

Ad .form-inlinefɔ lɛbl dɛn we alaynɛd ​​na di lɛft ɛn inlayn-blɔk kɔntrol dɛn fɔ wan kɔmpakt layout.

  1. <fɔm klas = "fɔm-inlayn" >
  2. <input tayp = "tɛks" klas = "input-smɔl" pleshɔlda = "Imel" >
  3. <input tayp = "paswɔd" klas = "input-smɔl" pleshɔlda = "Paswɔd" >
  4. <lɛbul klas = "chɛkbɔks" >
  5. <input type = "checkbox" > Mɛmba mi
  6. </label> fɔ di wan dɛn we de
  7. <bɔtin tayp = "sɔbmit" klas = "btn" > Sayn insay </bɔtin>
  8. </fɔm>

Ɔrizɔntal fɔm

Rayt alayn di lɛbl dɛn ɛn flot dɛn na di lɛft fɔ mek dɛn apia na di sem layn we di kɔntrol dɛn de. I nid fɔ mek dɛn chenj di mak ɔp pas ɔl frɔm wan difɔlt fɔm:

  • Ad .form-horizontalto di fɔm
  • Rap lɛbl ɛn kɔntrol dɛn insay.control-group
  • Ad .control-labelto di lɛbl
  • Rap ɛni kɔntrol we gɛt fɔ du wit am insay .controlsfɔ mek dɛn alaynɛt fayn fayn wan
  1. <fɔm klas = "fɔm-ɔrizɔntal" >
  2. <div klas = "kɔntrol-grup" >
  3. <lɛbul klas = "kɔntrol-lɛbul" = "inputImel" > Imel </label>
  4. <div klas = "kɔntrol dɛn" >
  5. <input tayp = "tɛks" id = "inputImel" pleshɔlda = "Imel" >
  6. </div> fɔ di wan dɛn we de
  7. </div> fɔ di wan dɛn we de
  8. <div klas = "kɔntrol-grup" >
  9. <lɛbul klas = "kɔntrol-lɛbul" = "inputPaswɔd" > Paswɔd </label>
  10. <div klas = "kɔntrol dɛn" >
  11. <input tayp = "paswɔd" id = "inputPaswɔd" pleshɔlda = "Paswɔd" >
  12. </div> fɔ di wan dɛn we de
  13. </div> fɔ di wan dɛn we de
  14. <div klas = "kɔntrol-grup" >
  15. <div klas = "kɔntrol dɛn" >
  16. <lɛbul klas = "chɛkbɔks" >
  17. <input type = "checkbox" > Mɛmba mi
  18. </label> fɔ di wan dɛn we de
  19. <bɔtin tayp = "sɔbmit" klas = "btn" > Sayn insay </bɔtin>
  20. </div> fɔ di wan dɛn we de
  21. </div> fɔ di wan dɛn we de
  22. </fɔm>

Sɔpɔt fɔm kɔntrol dɛn

Ɛgzampul dɛn fɔ standad fɔm kɔntrol dɛn we dɛn sɔpɔt insay wan ɛgzampul fɔm layout.

Di tin dɛn we dɛn kin put insay

Mɔs kɔmɔn fɔm kɔntrol, tɛks-bɛs input fil dɛn. Inklud sɔpɔt fɔ ɔl di kayn HTML5 dɛn: tɛks, paswɔd, de tɛm, de tɛm-lɔkal, de, mɔnt, tɛm, wik, nɔmba, imel, url, sɔch, tel, ɛn kɔlɔ.

Rikways fɔ yuz wan spɛsifikɛd typeɔltɛm.

  1. <input tayp = "tɛks" pleshɔlda = "Tɛks input" >

Teks eria

Fɔm kɔntrol we de sɔpɔt bɔku layn dɛn na tɛks. Chenj rowsatribyut as nid de.

  1. <tɛkseria row dɛn = "3" ></tɛkseria>

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

Chɛkbɔks na fɔ pik wan ɔ sɔm opshɔn dɛn na wan list we redio dɛn na fɔ pik wan opshɔn frɔm bɔku pan dɛn.

Difɔlt (we dɛn dɔn stak) .


  1. <lɛbul klas = "chɛkbɔks" >
  2. <input tayp = "chɛkbɔks" valyu = "" >
  3. Opshɔn wan na dis ɛn dat—mek shɔ se yu put wetin mek i fayn
  4. </label> fɔ di wan dɛn we de
  5.  
  6. <lɛbul klas = "redio" >
  7. <input tayp = "redio" nem = "opshɔnRedio" id = "opshɔnRedio1" valyu = "opshɔn1" chɛk >
  8. Opshɔn wan na dis ɛn dat—mek shɔ se yu put wetin mek i fayn
  9. </label> fɔ di wan dɛn we de
  10. <lɛbul klas = "redio" >
  11. <input tayp = "redio" nem = "opshɔn dɛnRedio dɛn" id = "opshɔn dɛnRedio dɛn2" valyu = "opshɔn2" >
  12. Opshɔn tu kin bi ɔda tin ɛn we yu pik am i go pul opshɔn wan
  13. </label> fɔ di wan dɛn we de

Inlayn chɛkbɔks dɛn

Ad di .inlineklas to wan siriɔs chɛkbɔks ɔ redio fɔ mek di kɔntrol dɛn apia na di sem layn.

  1. <lɛbul klas = "chɛkbɔks inlayn" >
  2. <input tayp = "chɛkbɔks" id = "inlaynChɛkbɔks1" valyu = "opshɔn1" > 1
  3. </label> fɔ di wan dɛn we de
  4. <lɛbul klas = "chɛkbɔks inlayn" >
  5. <input tayp = "chɛkbɔks" id = "inlaynChɛkbɔks2" valyu = "opshɔn2" > 2
  6. </label> fɔ di wan dɛn we de
  7. <lɛbul klas = "chɛkbɔks inlayn" >
  8. <input tayp = "chɛkbɔks" id = "inlaynChɛkbɔks3" valyu = "opshɔn3" > 3
  9. </label> fɔ di wan dɛn we de

Di wan dɛn we de pik

Yuz di difɔlt opshɔn ɔ spɛsifa a multiple="multiple"fɔ sho bɔku opshɔn dɛn wan tɛm.


  1. <sɛlekt>
  2. <opshɔn> 1 </opshɔn>
  3. <opshɔn> 2 </opshɔn>
  4. <opshɔn> 3 </opshɔn>
  5. <opshɔn> 4 </opshɔn>
  6. <opshɔn> 5 </opshɔn>
  7. </sɛlekt>
  8.  
  9. <sɛlekt bɔku bɔku = "bɔku bɔku" >
  10. <opshɔn> 1 </opshɔn>
  11. <opshɔn> 2 </opshɔn>
  12. <opshɔn> 3 </opshɔn>
  13. <opshɔn> 4 </opshɔn>
  14. <opshɔn> 5 </opshɔn>
  15. </sɛlekt>

Fɔ ɛkstɛnd fɔm kɔntrol dɛn

Ad pan di brawza kɔntrol dɛn we dɔn de, Bootstrap gɛt ɔda yusful fɔm kɔmpɔnɛnt dɛn.

Input dɛn we dɛn dɔn pripen ɛn we dɛn dɔn ad

Ad tɛks ɔ bɔtin dɛn bifo ɔ afta ɛnitin we dɛn rayt wit tɛks. Du notis se selectdɛn nɔ de sɔpɔt ɛlimɛnt dɛn ya.

Difɔlt opshɔn dɛn

Rap an .add-onɛn an inputwit wan pan tu klas dɛn fɔ pripɛnd ɔ ad tɛks to wan input.

@

.00 fɔ di wan dɛn we de
  1. <div klas = "input-prɛpɛnd" >
  2. <span klas = "ad-ɔn" > @ </span>
  3. <input klas = "span2" id = "prependedInput" tayp = "tɛks" pleshɔlda = "Yuznem" >
  4. </div> fɔ di wan dɛn we de
  5. <div klas = "input-apɛnd" >
  6. <input klas = "span2" id = "apendInput" tayp = "tɛks" >
  7. <span klas = "ad-ɔn" > .00 </span>
  8. </div> fɔ di wan dɛn we de

Dɛn dɔn jɔyn dɛn togɛda

Yuz ɔl tu di klas dɛn ɛn tu instans dɛn fɔ .add-onfɔ pripɛnd ɛn ad wan input.

$ .00 fɔ di wan dɛn we de
  1. <div klas = "input-prɛpɛnd input-apɛnd" >
  2. <span klas = "ad-ɔn" > $ </span>
  3. <input klas = "span2" id = "apɛndPrɛpɛndInput" tayp = "tɛks" >
  4. <span klas = "ad-ɔn" > .00 </span>
  5. </div> fɔ di wan dɛn we de

Bɔtin dɛn instead fɔ teks

Insted of a <span>wit tɛks, yuz a .btnfɔ ataya wan bɔtin (ɔ tu) to wan input.

  1. <div klas = "input-apɛnd" >
  2. <input klas = "span2" id = "apɛndInputBɔtin" tayp = "tɛks" >
  3. <bɔtin klas = "btn" tayp = "bɔt" > Go! </bɔtin>
  4. </div> fɔ di wan dɛn we de
  1. <div klas = "input-apɛnd" >
  2. <input klas = "span2" id = "apɛndInputBɔtin dɛn" tayp = "tɛks" >
  3. <bɔtin klas = "btn" tayp = "bɔtin" > Sɔch </bɔtin>
  4. <bɔtin klas = "btn" tayp = "bɔt" > Opshɔn dɛn </bɔtin>
  5. </div> fɔ di wan dɛn we de

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

  1. <div klas = "input-apɛnd" >
  2. <input klas = "span2" id = "apɛndDrɔpdɔwnBɔtin" tayp = "tɛks" >
  3. <div klas = "btn-grup" >
  4. <bɔtin klas = "btn drɔpdɔwn-tɔgl" data-tɔgl = "drɔpdɔwn" >
  5. Du
  6. <span klas = "kɛrɛt" ></span>
  7. </bɔtin>
  8. <ul klas = "drɔpdɔwn-mɛnyu" >
  9. ...
  10. </ul> fɔ di wan dɛn we de
  11. </div> fɔ di wan dɛn we de
  12. </div> fɔ di wan dɛn we de
  1. <div klas = "input-prɛpɛnd" >
  2. <div klas = "btn-grup" >
  3. <bɔtin klas = "btn drɔpdɔwn-tɔgl" data-tɔgl = "drɔpdɔwn" >
  4. Du
  5. <span klas = "kɛrɛt" ></span>
  6. </bɔtin>
  7. <ul klas = "drɔpdɔwn-mɛnyu" >
  8. ...
  9. </ul> fɔ di wan dɛn we de
  10. </div> fɔ di wan dɛn we de
  11. <input klas = "span2" id = "prɛpendedDrɔpdɔwnBɔtin" tayp = "tɛks" >
  12. </div> fɔ di wan dɛn we de
  1. <div klas = "input-prɛpɛnd input-apɛnd" >
  2. <div klas = "btn-grup" >
  3. <bɔtin klas = "btn drɔpdɔwn-tɔgl" data-tɔgl = "drɔpdɔwn" >
  4. Du
  5. <span klas = "kɛrɛt" ></span>
  6. </bɔtin>
  7. <ul klas = "drɔpdɔwn-mɛnyu" >
  8. ...
  9. </ul> fɔ di wan dɛn we de
  10. </div> fɔ di wan dɛn we de
  11. <input klas = "span2" id = "apendPrependedDropdownButton" tayp = "tɛks" >
  12. <div klas = "btn-grup" >
  13. <bɔtin klas = "btn drɔpdɔwn-tɔgl" data-tɔgl = "drɔpdɔwn" >
  14. Du
  15. <span klas = "kɛrɛt" ></span>
  16. </bɔtin>
  17. <ul klas = "drɔpdɔwn-mɛnyu" >
  18. ...
  19. </ul> fɔ di wan dɛn we de
  20. </div> fɔ di wan dɛn we de
  21. </div> fɔ di wan dɛn we de

Segmɛnt drɔpdɔwn grup dɛn

  1. <fɔm>
  2. <div klas = "input-prɛpɛnd" >
  3. <div klas = "btn-grup" > ... </div>
  4. <input tayp = "tɛks" >
  5. </div> fɔ di wan dɛn we de
  6. <div klas = "input-apɛnd" >
  7. <input tayp = "tɛks" >
  8. <div klas = "btn-grup" > ... </div>
  9. </div> fɔ di wan dɛn we de
  10. </fɔm>

Fɔm fɔ fɛn tin dɛn

  1. <fɔm klas = "fɔm-sɔch" >
  2. <div klas = "input-apɛnd" >
  3. <input tayp = "tɛks" klas = "span2 sɔch-kwɛstyɔn" >
  4. <bɔtin tayp = "sɔbmit" klas = "btn" > Sɔch </bɔtin>
  5. </div> fɔ di wan dɛn we de
  6. <div klas = "input-prɛpɛnd" >
  7. <bɔtin tayp = "sɔbmit" klas = "btn" > Sɔch </bɔtin>
  8. <input tayp = "tɛks" klas = "span2 sɔch-kwɛstyɔn" >
  9. </div> fɔ di wan dɛn we de
  10. </fɔm>

Kɔntrol di sayz we dɛn de mek

Yuz rilitiv saiz klas dɛn lɛk .input-largeɔ mach yu input dɛn to di grid kɔlɔm saiz dɛn we de yuz .span*klas dɛn.

Blɔk lɛvɛl input dɛn

Mek ɛni <input>ɔ <textarea>ɛlimɛnt biev lɛk blɔk lɛvɛl ɛlimɛnt.

  1. <input klas = "input-blɔk-lɛvɛl" tayp = "tɛks" pleshɔlda = ".input-blɔk-lɛvɛl" >

Rilativ saiz we dɛn de yuz

  1. <input klas = "input-mini" tayp = "tɛks" pleshɔlda = ".input-mini" >
  2. <input klas = "input-smɔl" tayp = "tɛks" pleshɔlda = ".input-smɔl" >
  3. <input klas = "input-mɛdiɔm" tayp = "tɛks" pleshɔlda = ".input-mɛdiɔm" >
  4. <input klas = "input-big" tayp = "tɛks" pleshɔlda = ".input-big" >
  5. <input klas = "input-xlarge" tayp = "tɛks" pleshɔlda = ".input-xlarge" >
  6. <input klas = "input-xxbig" tayp = "tɛks" pleshɔlda = ".input-xxbig" >

Hed dɛn de ɔp!Insay di fiuja vɛshɔn dɛn, wi go de chenj di we aw dɛn de yuz dɛn rilitiv input klas dɛn ya fɔ mek dɛn mach wi bɔtin saiz dɛn. Fɔ ɛgzampul, .input-largego mek di padding ɛn font-sayz fɔ wan input go ɔp.

Grid saiz fɔ sizin

Yuz .span1to .span12fɔ input dɛn we de mach di sem saiz dɛn fɔ di grid kɔlɔm dɛn.

  1. <input klas = "span1" tayp = "tɛks" pleshɔlda = ".span1" >
  2. <input klas = "span2" tayp = "tɛks" pleshɔlda = ".span2" >
  3. <input klas = "span3" tayp = "tɛks" pleshɔlda = ".span3" >
  4. <sɛlekt klas = "span1" >
  5. ...
  6. </sɛlekt>
  7. <sɛlekt klas = "span2" >
  8. ...
  9. </sɛlekt>
  10. <sɛlekt klas = "span3" >
  11. ...
  12. </sɛlekt>

Fɔ bɔku grid input dɛn fɔ wan layn, yuz di .controls-rowmodifya klas fɔ di rayt spɛshal . I de flot di input dɛn fɔ kɔlaps wayt-spɛs, sɛt di rayt margin dɛn, ɛn klia di flot.

  1. <div klas = "kɔntrol dɛn" >
  2. <input klas = "span5" tayp = "tɛks" pleshɔlda = ".span5" >
  3. </div> fɔ di wan dɛn we de
  4. <div klas = "kɔntrol kɔntrol-rɔw" >
  5. <input klas = "span4" tayp = "tɛks" pleshɔlda = ".span4" >
  6. <input klas = "span1" tayp = "tɛks" pleshɔlda = ".span1" >
  7. </div> fɔ di wan dɛn we de
  8. ...

Input dɛn we nɔ go ebul fɔ ɛdit

Prɛzɛnt data insay wan fɔm we nɔ go ɛdit we yu nɔ yuz aktual fɔm mak.

Sɔm dɛn valyu ya
  1. <span klas = "input-xlarge uneditable-input" > Sɔm valyu ya </span>

Fɔm akshɔn dɛn

Ɛnd wan fɔm wit wan grup fɔ akshɔn dɛn (bɔtin dɛn). We dɛn put am insay wan .form-actions, di bɔtin dɛn go ɔtomɛtik indent fɔ layn wit di fɔm kɔntrol dɛn.

  1. <div klas = "fɔm-akshɔn dɛn" >
  2. <bɔtin tayp = "sɔbmit" klas = "btn btn-praymari" > Sev chenj dɛn </bɔtin>
  3. <bɔtin tayp = "bɔtin" klas = "btn" > Kansel </bɔtin>
  4. </div> fɔ di wan dɛn we de

Ɛp tɛks

Inlayn ɛn blɔk lɛvɛl sɔpɔt fɔ ɛp tɛks we de apia rawnd fɔm kɔntrol dɛn.

Inlayn ɛp

Inlayn ɛp tɛks
  1. <input tayp = "tɛks" ><span klas = "ɛp-inlayn" > Inlayn ɛp tɛks </span>

Blɔk ɛp

Wan lɔng blɔk fɔ ɛp tɛks we de brok pan nyu layn ɛn we kin go pas wan layn.
  1. <input type = "text" ><span class = "help-block" > Wan lɔng blɔk fɔ ɛp tɛks we de brok pan nyu layn ɛn kin go bifo wan layn. </span> fɔ di wan dɛn we de

Fɔm kɔntrol stet dɛn

Gi fidbak to di wan dɛn we de yuz am ɔ di wan dɛn we de kam fɛn dɛn wit di bɛsis fidbak stet dɛn bɔt di fɔm kɔntrol ɛn di lɛbl dɛn.

Input fɔs fɔs

Wi de pul di difɔlt outlinestayl dɛn na sɔm fɔm kɔntrol dɛn ɛn aplay a box-shadowinsay in ples fɔ :focus.

  1. <input klas = "input-xlarge" id = "fokusInput" tayp = "tɛks" valyu = "Dis na fɔs..." >

Invalid input dɛn we nɔ rayt

Stayl input dɛn via difɔlt brawza funkshɔnaliti wit :invalid. Spɛsify a type, ad di requiredatribyut if di fil nɔto opshɔnal, ɛn (if i apɔynt) spɛsifa wan pattern.

Dis nɔ de insay di vɛshɔn dɛn fɔ Intanɛt Ɛksplɔrɔ 7-9 bikɔs dɛn nɔ gɛt sɔpɔt fɔ CSS pseudo sɛlɛktɔ dɛn.

  1. <input klas = "span3" tayp = "imel" nid fɔ de >

Input dɛn we nɔ ebul fɔ wok

Ad di disabledatribyut pan wan input fɔ mek di yuza nɔ input ɛn trig wan smɔl difrɛn luk.

  1. <input klas = "input-xlarge" id = "disabledInput" tayp = "tɛks" pleshɔlda = "Disabled input ya..." disabled >

Validɛshɔn stet dɛn

Bootstrap inklud validɛshɔn stayl fɔ mistek, wɔnin, infɔmeshɔn, ɛn sakrifays mɛsej dɛn. Fɔ yuz, ad di klas we fit to di tin dɛn we de rawnd .control-group.

Sɔntɛm sɔntin bin apin we nɔ rayt
Duya kɔrɛkt di mistek
Yuznem na tek
Woohoo!
  1. <div klas = "kɔntrol-grup wɔnin" >
  2. <lebul klas = "kɔntrol-lɛbul" = "inputWarning" > Input wit wɔnin </label>
  3. <div klas = "kɔntrol dɛn" >
  4. <input tayp = "tɛks" id = "inputWɔnin" >
  5. <span class = "help-inline" > Sɔntin kin dɔn go rɔng </span>
  6. </div> fɔ di wan dɛn we de
  7. </div> fɔ di wan dɛn we de
  8.  
  9. <div klas = "kɔntrol-grup mistek" >
  10. <lebul klas = "kɔntrol-lɛbul" = "inputError" > Input wit mistek </label>
  11. <div klas = "kɔntrol dɛn" >
  12. <input tayp = "tɛks" id = "inputErɔd" >
  13. <span class = "help-inline" > Duya kɔrɛkt di mistek </span>
  14. </div> fɔ di wan dɛn we de
  15. </div> fɔ di wan dɛn we de
  16.  
  17. <div klas = "kɔntrol-grup info" >
  18. <lɛbul klas = "kɔntrol-lɛbul" = "inputInfo" > Input wit infɔmeshɔn </label>
  19. <div klas = "kɔntrol dɛn" >
  20. <input tayp = "tɛks" id = "inputInfo" >
  21. <span class = "help-inline" > Yuz nem dɔn ɔlrɛdi tek </span>
  22. </div> fɔ di wan dɛn we de
  23. </div> fɔ di wan dɛn we de
  24.  
  25. <div klas = "kɔntrol-grup sakses" >
  26. <lebul klas = "kɔntrol-lɛbul" = "inputSukses" > Input wit sakses </label>
  27. <div klas = "kɔntrol dɛn" >
  28. <input tayp = "tɛks" id = "inputSakses" >
  29. <span klas = "ɛp-inlayn" > Woohoo! </span> fɔ di wan dɛn we de
  30. </div> fɔ di wan dɛn we de
  31. </div> fɔ di wan dɛn we de

Difɔlt bɔtin dɛn

Yu kin yuz bɔtin stayl dɛn fɔ ɛnitin we dɛn yuz di .btnklas. Bɔt, tipikli yu go want fɔ yuz dɛn wan ya to ɔl <a>ɛn <button>ɛlimɛnt dɛn fɔ di bɛst rɛnda.

Bɔtin klas="" Tɔk bɔt
btn Standart grey button wit gradient
btn btn-primary I de gi ɛkstra vijual wet ɛn i de sho di men akshɔn insay wan sɛt fɔ bɔtin dɛn
btn btn-info Yuz am as ɔda we fɔ di difɔlt stayl dɛn
btn btn-success I de sho se pɔsin dɔn du sɔntin fayn ɔ i dɔn du gud tin
btn btn-warning I de sho se dɛn fɔ tek tɛm wit dis akshɔn
btn btn-danger I de sho se dɛn du sɔntin we denja ɔ we go mek dɛn du bad tin
btn btn-inverse Alternate dak grey bɔtin, nɔ tay to sɛmantik akshɔn ɔ yuz
btn btn-link Di ɛmpɛshmɛnt bɔt wan bɔtin bay we yu mek i tan lɛk link we yu de kip di we aw di bɔtin de biev

Krɔs brawza kɔmpatibiliti

IE9 nɔ de krop bakgrɔn grɛdiɛnt pan rawnd kɔna, so wi de pul am. Rilayt, IE9 de jankifies disabled buttonelements, rεndεr tεks grey wit wan nasty tεks-shadow we wi nכ kin fiks.

Di sayz dɛn fɔ di bɔtin dɛn

Fans big ɔ smɔl bɔtin dɛn? Ad .btn-large, .btn-small, ɔ .btn-minifɔ ɔda saiz dɛn.

  1. <p> fɔ di wan dɛn we de
  2. <bɔtin klas = "btn btn-big btn-praymari" tayp = "bɔtin" > Big bɔtin </bɔtin>
  3. <bɔtin klas = "btn btn-big" tayp = "bɔt" > Big bɔtin </bɔtin>
  4. </p>we de sho aw fɔ du dat
  5. <p> fɔ di wan dɛn we de
  6. <bɔtin klas = "btn btn-praymari" tayp = "bɔt" > Difɔlt bɔtin </bɔtin>
  7. <bɔtin klas = "btn" tayp = "bɔtin" > Difɔlt bɔtin </bɔtin>
  8. </p>we de sho aw fɔ du dat
  9. <p> fɔ di wan dɛn we de
  10. <bɔtin klas = "btn btn-smɔl btn-praymari" tayp = "bɔt" > Smɔl bɔtin </bɔtin>
  11. <bɔtin klas = "btn btn-smɔl" tayp = "bɔt" > Smɔl bɔtin </bɔtin>
  12. </p>we de sho aw fɔ du dat
  13. <p> fɔ di wan dɛn we de
  14. <bɔtin klas = "btn btn-mini btn-praymari" tayp = "bɔt" > Mini bɔtin </bɔtin>
  15. <bɔtin klas = "btn btn-mini" tayp = "bɔt" > Mini bɔtin </bɔtin>
  16. </p>we de sho aw fɔ du dat

Krio blɔk lɛvɛl bɔtin dɛn—di wan dɛn we de span di ful wit fɔ wan mama ɔ papa—bay we yu ad .btn-block.

  1. <bɔt klas = "btn btn-big btn-blɔk btn-praymari" tayp = "bɔt" > Blɔk lɛvɛl bɔtin </bɔt>
  2. <bɔtin klas = "btn btn-big btn-blɔk" tayp = "bɔt" > Blɔk lɛvɛl bɔtin </bɔt>

Disabled stet

Mek di bɔtin dɛn luk lɛk se dɛn nɔ go ebul fɔ klik bay we yu de fad dɛn bak 50%.

Ankɔr ɛlimɛnt

Ad di .disabledklas to di <a>bɔtin dɛn.

Praymari link fɔ di wan dɛn we de Link

  1. <a href = "#" klas = "btn btn-big btn-praymari disabled" > Praymari link </a>
  2. <a href = "#" klas = "btn btn-big disabled" > Link </a>

Hed dɛn de ɔp!Wi de yuz .disabledas yutiliti klas ya, we fiba di kɔmɔn .activeklas, so dɛn nɔ nid fɔ gɛt prɛfiks. Dɔn bak, dis klas na fɔ aesthetic nɔmɔ; yu fɔ yuz kɔstɔm JavaSkript fɔ disable link dɛn ya.

Elemɛnt fɔ di bɔtin

Ad di disabledatribyut to di <button>bɔtin dɛn.

  1. <bɔtin tayp = "bɔtin" klas = "btn btn-big btn-praymari disabled" disabled = "disabled" > Praymari bɔtin </button>
  2. <bɔtin tayp = "bɔtin" klas = "btn btn-big" disabled > Bɔtin </bɔtin>

Wan klas, bɔku bɔku tag dɛn

Yuz di .btnklas pan wan <a>, <button>, ɔ <input>ɛlimɛnt.

Link
  1. <a klas = "btn" href = "" > Link </a>
  2. <bɔtin klas = "btn" tayp = "sɔbmit" > Bɔtin </bɔtin>
  3. <input klas = "btn". tayp = "bɔtin" valyu = "Input" >
  4. <input klas = "btn". tayp = "sɔbmit" valyu = "Sɔbmit" >

As di bɛst we fɔ du tin, tray fɔ mek di ɛlimɛnt mach fɔ yu kɔntɛks fɔ mek shɔ se di krɔs-brawza rɛnda mach. If yu gɛt input, yuz wan <input type="submit">fɔ yu bɔtin.

Ad klas dɛn to wan <img>ɛlimɛnt fɔ mek i izi fɔ stayl pikchɔ dɛn na ɛni prɔjek.

140x140 na di pikchɔ 140x140 na di pikchɔ 140x140 na di pikchɔ
  1. <img src = fɔ di wan dɛn we de "..." klas = "img-raun" >
  2. <img src = fɔ di wan dɛn we de "..." klas = "img-sɛklɔ" >
  3. <img src = "..." di wan dɛn we de na di wɔl. klas = "img-polaroyd" >

Hed dɛn de ɔp! .img-roundedɛn .img-circlenɔ de wok na IE7-8 bikɔs dɛn nɔ gɛt border-radiussɔpɔt.

Ikon glif dɛn

140 aykɔn dɛn we de insay sprite fɔm, we de insay dak grey (difɔlt) ɛn wayt, we Glyphicons gi .

  • aykɔn-glas
  • aykɔn-myuzik
  • aykɔn-sɔch
  • aykɔn-ɛnvilɔp
  • aykɔn-at
  • aykɔn-sta
  • aykɔn-sta-ɛmti
  • aykɔn-yuz
  • aykɔn-fim
  • aykɔn-th-big
  • aykɔn-th
  • aykɔn-th-list
  • aykɔn-ok
  • aykɔn-rimov
  • aykɔn-zum-in
  • aykɔn-zum-ɔut
  • aykɔn-ɔf
  • aykɔn-sayn
  • aykɔn-kɔg
  • aykɔn-trash
  • aykɔn-os
  • aykɔn-fayl
  • aykɔn-taym
  • aykɔn-road
  • aykɔn-dɔwnlod-alt
  • aykɔn-dɔwnlod
  • aykɔn-ɔplod
  • aykɔn-inbɔks
  • aykɔn-ple-sɛklɔ
  • aykɔn-ripit
  • aykɔn-rifresh
  • aykɔn-list-alt
  • aykɔn-lɔk
  • aykɔn-flag
  • aykɔn-ɛdfɔn dɛn
  • aykɔn-volyum-ɔf
  • aykɔn-volyum-dɔwn
  • aykɔn-volyum-ɔp
  • aykɔn-qrkɔd
  • aykɔn-bakɔd
  • aykɔn-tɛg
  • aykɔn-tɛg dɛn
  • aykɔn-buk
  • aykɔn-bukmak
  • aykɔn-print
  • aykɔn-kamɛra
  • aykɔn-font
  • aykɔn-bɔld
  • aykɔn-italik
  • aykɔn-tɛks-ayt
  • aykɔn-tɛks-wid
  • aykɔn-alayn-lɛft
  • aykɔn-alayn-sɛnt
  • aykɔn-alayn-rayt
  • aykɔn-alayn-jɔstifay
  • aykɔn-list
  • aykɔn-indent-lɛft
  • aykɔn-indent-rayt
  • aykɔn-festaym-vidio
  • aykɔn-pikchɔ
  • aykɔn-pensil
  • aykɔn-map-mak
  • aykɔn-adjɔst
  • aykɔn-tint
  • aykɔn-ɛdit
  • aykɔn-shɛri
  • aykɔn-chɛk
  • aykɔn-muv
  • aykɔn-stɛp-bakwɔd
  • aykɔn-fast-bakwɔd
  • aykɔn-bakwɔd
  • aykɔn-play
  • aykɔn-pɔz
  • aykɔn-stɔp
  • aykɔn-fɔwad
  • aykɔn-fast-fɔwad
  • aykɔn-stɛp-fɔwad
  • aykɔn-ɛjɛkt
  • aykɔn-shɛvrɔn-lɛft
  • aykɔn-chɛvrɔn-rayt
  • aykɔn-plɔs-sayn
  • aykɔn-mayns-sayn
  • aykɔn-rimov-sayn
  • aykɔn-ok-sayn
  • aykɔn-kwɛstyɔn-sayn
  • aykɔn-info-sayn
  • aykɔn-skrin sho
  • aykɔn-rimov-sɛklɔ
  • aykɔn-ok-sɛklɔ
  • aykɔn-ban-sɛklɔ
  • aykɔn-aro-lɛft
  • aykɔn-aro-rayt
  • aykɔn-aro-ɔp
  • aykɔn-aro-dɔwn
  • aykɔn-shɛri-alt
  • aykɔn-sayz-ful
  • aykɔn-sayz-smɔl
  • aykɔn-plɔs
  • aykɔn-maynɔs
  • aykɔn-asterisk
  • aykɔn-ɛksklamashɔn-sayn
  • aykɔn-gift
  • aykɔn-lif
  • aykɔn-faya
  • aykɔn-ay-opin
  • aykɔn-ay-klos
  • aykɔn-wɔnin-sayn
  • aykɔn-plɛyn
  • aykɔn-kalɛnda
  • aykɔn-random
  • aykɔn-kɔmɛnt
  • aykɔn-magnet
  • aykɔn-chɛvrɔn-ɔp
  • aykɔn-shɛvrɔn-dɔwn
  • aykɔn-ritwit
  • aykɔn-shopin-kat
  • aykɔn-fɔlda-klos
  • aykɔn-fɔlda-opin
  • aykɔn-sayz-vɛtikal
  • aykɔn-sayz-ɔrizɔntal
  • aykɔn-hdd
  • aykɔn-bulhɔn
  • aykɔn-bɛl
  • aykɔn-sɛtifiket
  • aykɔn-tumb dɛn-ɔp
  • aykɔn-tumbs-dɔwn
  • aykɔn-an-rayt
  • aykɔn-an-lɛft
  • aykɔn-an-ɔp
  • aykɔn-an-dɔwn
  • aykɔn-sɛklɔ-aro-rayt
  • aykɔn-sɛklɔ-aro-lɛft
  • aykɔn-sɛklɔ-aro-ɔp
  • aykɔn-sɛklɔ-aro-dɔwn
  • aykɔn-glɔb
  • aykɔn-rɛnch
  • aykɔn-task dɛn
  • aykɔn-filta
  • aykɔn-brifkɛs
  • aykɔn-fulskrin

Glyphicons atribiushɔn fɔ di wan dɛn we de

Glyphicons Halflings nɔmal wan nɔ de fɔ fri, bɔt wan arenjmɛnt bitwin Bootstrap ɛn di Glyphicons krieta dɛn dɔn mek dis pɔsibul we nɔ gɛt ɛni kɔst fɔ yu as divɛlɔpa dɛn. As tɛnki, wi de aks yu fɔ put wan opshɔnal link bak to Glyphicons ɛnitɛm we i prɛktikal.


Aw fɔ yuz am

Ɔl di aykɔn dɛn nid fɔ gɛt <i>tɛg we gɛt wan patikyula klas, we dɛn put fɔs wit icon-. Fɔ yuz am, put di kɔd we de dɔŋ ya jɔs lɛk ɛnisay:

  1. <i klas = "aykɔn-sɔch" </i>

Stayl dɛn de bak fɔ invayt (wayt) aykɔn dɛn, we dɛn mek rɛdi wit wan ɛkstra klas. Wi go spɛshal ɛnfɔs dis klas pan hova ɛn aktif stet fɔ nav ɛn drɔpdɔwn link dɛn.

  1. <i klas = "aykɔn-sɔch aykɔn-wayt" ></i>

Hed dɛn de ɔp!We yu de yuz nia string dɛn we gɛt tɛks, lɛk bɔtin ɔ nav link dɛn, mek shɔ se yu lɛf ples afta di <i>tɛg fɔ mek yu ebul fɔ spes fayn fayn wan.


Aykɔn ɛ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.

Bɔtin dɛn

Bɔtin grup na wan bɔtin tulba
  1. <div klas = "btn-tulba" >
  2. <div klas = "btn-grup" >
  3. <a klas = "btn" href = "#" ><i klas = "aykɔn-alayn-lɛft" ></i></a>
  4. <a klas = "btn" href = "#" ><i klas = "aykɔn-alayn-sɛnta" ></i></a>
  5. <a klas = "btn" href = "#" ><i klas = "aykɔn-alayn-rayt" ></i></a>
  6. <a klas = "btn" href = "#" ><i klas = "aykɔn-alayn-jɔstifay" ></i></a>
  7. </div> fɔ di wan dɛn we de
  8. </div> fɔ di wan dɛn we de
Drɔpdɔwn insay wan bɔtin grup
  1. <div klas = "btn-grup" >
  2. <a klas = "btn btn-praymari" href = "#" ><i klas = "aykɔn-yuz aykɔn-wayt" ></i> Yuz </a>
  3. <a klas = "btn btn-praymari drɔpdɔwn-tɔgl" data-tɔgl = "drɔpdɔwn" href = "#" ><span klas = "kɛret" ></span></a>
  4. <ul klas = "drɔpdɔwn-mɛnyu" >
  5. <li><a href = "#" ><i klas = "aykɔn-pensil" </i> Ɛdit </a></li>
  6. <li><a href = "#" ><i klas = "aykɔn-trash" </i> Dilit </a></li>
  7. <li><a href = "#" ><i klas = "aykɔn-ban-sɛklɔ" ></i> Ban </a></li>
  8. <li klas = "divayda" </li>
  9. <li><a href = "#" ><i klas = "a" </i> Mek admin </a></li>
  10. </ul> fɔ di wan dɛn we de
  11. </div> fɔ di wan dɛn we de
Di sayz dɛn fɔ di bɔtin dɛn
  1. <a klas = "btn btn-big" href = "#" ><i klas = "aykɔn-sta" ></i> Sta </a>
  2. <a klas = "btn btn-smɔl" href = "#" ><i klas = "aykɔn-sta" ></i> Sta </a>
  3. <a klas = "btn btn-mini" href = "#" ><i klas = "aykɔn-sta" ></i> Sta </a>

Navigashɔn fɔ go

  1. <ul klas = "nav nav-list" >
  2. <li klas = "aktiv" ><a href = "#" ><i klas = "aykɔn-os aykɔn-wayt" </i> Os </a></li>
  3. <li><a href = "#" ><i klas = "aykɔn-buk" </i> Laybri </a></li>
  4. <li><a href = "#" ><i klas = "aykɔn-pensil" </i> Aplikeshɔn dɛn </a></li>
  5. <li><a href = "#" ><i klas = "a" </i> Mis </a></li>
  6. </ul> fɔ di wan dɛn we de

Fɔm fil dɛn

  1. <div klas = "kɔntrol-grup" >
  2. <lebul klas = "kɔntrol-lɛbul" = "inputIcon" > Imel adrɛs </label>
  3. <div klas = "kɔntrol dɛn" >
  4. <div klas = "input-prɛpɛnd" >
  5. <span klas = "ad-ɔn" ><i klas = "aykɔn-ɛnvɔlɔp" ></i></span>
  6. <input klas = "span2" id = "inputIkɔn" tayp = "tɛks" >
  7. </div> fɔ di wan dɛn we de
  8. </div> fɔ di wan dɛn we de
  9. </div> fɔ di wan dɛn we de