Isiseko se-CSS

Izinto ezisisiseko zeHTML zenziwe zaza zaphuculwa ngeeklasi ezandisiweyo.

Iintloko phezulu! La maxwebhu ngawe-v2.3.2, engasaxhaswanga ngokusemthethweni. Jonga inguqulelo yamva nje yeBootstrap!

Izihloko

<h1>Zonke izihloko ze - HTML, <h6>ziyafumaneka.

h1. Isihloko 1

h2. Isihloko 2

h3. Isihloko 3

h4. Isihloko 4

h5. Isihloko 5
h6. Isihloko 6

Ikopi yomzimba

Ukungagqibekanga kweBootstrap yehlabathi yifont-size 14px , ene line-height20px . Oku kusetyenziselwa kuyo yonke imihlathi. Ukongeza, (imihlathi) ifumana umda osezantsi wesiqingatha sobude bomgca wabo (10px ngokungagqibekanga).<body><p>

Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.

Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Kwenziwe ullamcorper nulla non metus auctor fringilla. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Kwenziwe ullamcorper nulla non metus auctor fringilla.

Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.

<p> ... </p>

Ikopi yomzimba okhokelayo

Yenza umhlathi ugqame ngokongeza .lead.

Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.

<p iklasi = "inkokeli" > ... </p> 

Yakhiwe ngeNcinci

Isikali sokuchwetheza sisekelwe kwizinto ezimbini eziguquguqukayo EZINGAPHANTSI kwizinto eziguquguqukayo.Ngaphantsi : @baseFontSizekwaye @baseLineHeight. Eyokuqala sisiseko sobukhulu befonti esetyenziswa kuyo yonke indawo kwaye eyesibini bubude bomgca wesiseko. Sisebenzisa ezo ziguquguqukayo kunye nezibalo ezilula ukwenza imida, iipadi, kunye nokuphakama kwemigca yalo lonke uhlobo lwethu nokunye. Yenza ngokwezifiso kunye ne-Bootstrap iqhelanisa.


Ugxininiso

Sebenzisa iithegi ze-HTML zogxininiso olungagqibekanga ezinezimbo ezikhaphukhaphu.

<small>

Ukungagxininisi kumgca okanye iibhloko zombhalo, sebenzisa ithegi encinci.

Lo mgca wokubhaliweyo wenzelwe ukuphathwa njengoshicilelo olucolekileyo.

<p> <encinci> Lo mgca wokubhaliweyo wenzelwe ukuphathwa njengoshicilelo oluhle. </ encinci> </p>
  

Engqindilili

Ukugxininisa i-snippet yesicatshulwa esinobunzima befonti enzima.

Isiqwengana esilandelayo sokubhaliweyo sinikezelwa njengombhalo ongqindilili .

<strong> inikezelwe njengombhalo ongqindilili </strong>

akekeliswe sithi

Ukugxininisa isiqwengana sokubhaliweyo okukekeleyo.

Esi siqwengana silandelayo sokubhaliweyo sinikezelwa njengombhalo okekeleyo .

<em> inikezelwe njengombhalo okekeleyo </em>

Iintloko phezulu!Zive ukhululekile ukusebenzisa <b>nakwi <i>-HTML5. <b>yenzelwe ukuqaqambisa amagama okanye amabinzana ngaphandle kokudlulisela ukubaluleka okongeziweyo ngelixa <i>ubukhulu becala iselizwi, amagama obugcisa, njl.

Iiklasi zokulungelelanisa

Ukulungelelanisa isicatshulwa ngokulula kumacandelo aneeklasi zolungelelwaniso lokubhaliweyo.

Umbhalo olungelelaniswe ekhohlo.

Isiqendu esilungelelaniswe embindini.

Isiqendu esilungelelaniswe ekunene.

  1. <p class = "text-left" > Umbhalo olungelelaniswe ekhohlo. </p>
  2. <p class = "text-center" > Isicatshulwa esilungelelaniswe embindini. </p>
  3. <p class = "text-right" > umbhalo olungelelaniswe ekunene. </p>

Iiklasi zokugxininisa

Ukuhambisa intsingiselo ngombala ngeqela leeklasi eziluncedo zogxininiso.

Fusce dapibus, tellus ac cursus commodo, tor mauris nibh.

Etiam porta sem malesuada magna mollis euismod.

Kwenziwe ullamcorper nulla non metus auctor fringilla.

Aenean eu leo ​​quam. Pellentesque ornare sem lacinia quam venenatis.

Duis mollis, est non commodo luctus, nisi erat porttitor ligula.

  1. <p iklasi = "ithulisiwe" > Fusce dapibus, tellus ac cursus commodo, tor mauris nibh. </p>
  2. <p class = "text-warning" > Etiam porta sem malesuada magna mollis euismod. </p>
  3. <p iklasi = "impazamo yombhalo" > Donec ullamcorper nulla non metus auctor fringilla. </p>
  4. <p class = "text-info" > Aenean eu leo ​​quam. Pellentesque ornare sem lacinia quam venenatis. </p>
  5. <p class = "text-success" > Duis mollis, est non commodo luctus, nisi erat porttitor ligula. </p>

Ushunqulelo

Uzalisekiso olucwangcisiweyo lwesiqalelo se-HTML <abbr>kwizifinyezo kunye nee-akhronimi ukubonisa uguqulelo olwandisiweyo kwi-hover. Ushunqulelo olunophawu titleloyelelwano lunomda osezantsi onamachaphaza akhanyayo kunye nekhesa yoncedo kwi-hover, ebonelela ngomongo owongezelelweyo kwi-hover.

<abbr>

Kumbhalo owandisiweyo kwihove ende yesifinyezo, quka titleuphawu loyelelwano.

Isishunqulelo segama loyelelwano sithi attr .

<abbr isihloko = "uphawu" > attr </abbr> 

<abbr class="initialism">

Yongeza .initialismkwisifinyezo sefonti encinci kancinane.

I- HTML yeyona nto ilungileyo ukusukela kwisonka esisikiweyo.

<abbr title = "ULwimi lokuLawulwa kwe-HyperText" iklasi = "i-initialism" > HTML </abbr>  

Iidilesi

Bonisa iinkcukacha zoqhagamshelwano zoyena khokho ukufutshane okanye wonke umsebenzi.

<address>

Gcina ukufomatha ngokuphelisa yonke imigca nge <br>.

Twitter, Inc.
795 Folsom Ave, Suite 600
San Francisco, CA 94107
P: (123) 456-7890
Igama elipheleleyo
[email protected]
  1. <idilesi>
  2. <strong> Twitter, Inc. </strong><br>
  3. 795 Folsom Ave, Suite 600 <br>
  4. San Francisco, CA 94107 <br>
  5. <abbr isihloko = "Ifowuni" > P: </abbr> (123) 456-7890
  6. </ idilesi>
  7.  
  8. <idilesi>
  9. <strong> Igama elipheleleyo </strong><br>
  10. <a href = "imeyileto:#" > [email protected] </a>
  11. </ idilesi>

Iingcaphuno zebhloko

Ukucaphula iibhloko zomxholo komnye umthombo ngaphakathi koxwebhu lwakho.

I-blockquote ehlala ikho

Gquba <blockquote>malunga nayo nayiphi na i- HTML njengesicatshulwa. Kwiingcaphuno ezithe ngqo sicebisa ukuba a <p>.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. I-integer posuere erat ante.

  1. <blockquote>
  2. <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. I-integer posuere erat ante. </p>
  3. </blockquote>

Iinketho zeBlockquote

Isitayela kunye noshintsho lomxholo kwiinguqu ezilula kwi-blockquote eqhelekileyo.

Ukuchaza umthombo

Yongeza <small>ithegi yokuchonga umthombo. Gquba igama lomthombo womsebenzi kwi <cite>.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. I-integer posuere erat ante.

Umntu odumileyo kwiSihloko soMthombo
  1. <blockquote>
  2. <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. I-integer posuere erat ante. </p>
  3. <encinci> Umntu odumileyo <cite isihloko = "Isihloko somthombo" > Isihloko soMthombo </cite></small>
  4. </blockquote>

Enye imiboniso

Sebenzisa .pull-rightibhloko edadayo, elungelelaniswe ekunene.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. I-integer posuere erat ante.

Umntu odumileyo kwiSihloko soMthombo
  1. <blockquote class = "tsala-ekunene" >
  2. ...
  3. </blockquote>

Uluhlu

Ayiodolwanga

Uluhlu lwezinto apho umyalelo awubalulekanga ngokucacileyo .

  • Lorem ipsum dolor sit amet
  • Consectetur adipiscing elit
  • Integer molestie lorem kunye ne-massa
  • I-Facilisis kwi-pretium nisl aliquet
  • Nulla volutpat aliquam velit
    • Phasellus iaculis neque
    • I-Purus sodales ultricies
    • Vestibulum laoreet porttitor sem
    • Ac tristique libero volutpat at
  • I-Faucibus porta lacus fringilla vel
  • Aenean sit amet erat nunc
  • Eget porttitor lorem
  1. <ul>
  2. <li> ... </ li>
  3. </ul>

Iodolwe

Uluhlu lwezinto apho ulandelelwano lubaluleke kakhulu.

  1. Lorem ipsum dolor sit amet
  2. Consectetur adipiscing elit
  3. Integer molestie lorem kunye ne-massa
  4. I-Facilisis kwi-pretium nisl aliquet
  5. Nulla volutpat aliquam velit
  6. I-Faucibus porta lacus fringilla vel
  7. Aenean sit amet erat nunc
  8. Eget porttitor lorem
  1. <ol>
  2. <li> ... </ li>
  3. </ ol>

Ayifakwanga isimbo

Susa i- list-stylepadding engagqibekanga kunye nesekhohlo kwizinto zoluhlu (abantwana abasondeleyo kuphela).

  • Lorem ipsum dolor sit amet
  • Consectetur adipiscing elit
  • Integer molestie lorem kunye ne-massa
  • I-Facilisis kwi-pretium nisl aliquet
  • Nulla volutpat aliquam velit
    • Phasellus iaculis neque
    • I-Purus sodales ultricies
    • Vestibulum laoreet porttitor sem
    • Ac tristique libero volutpat at
  • I-Faucibus porta lacus fringilla vel
  • Aenean sit amet erat nunc
  • Eget porttitor lorem
  1. <ul class = "unstyled" >
  2. <li> ... </ li>
  3. </ul>

Nomgca

Beka zonke izinto zoluhlu kumgca omnye kunye inline-blockne-padding ekhanyayo.

  • Lorem ipsum
  • Phasellus iaculis
  • Nulla volutpat
  1. <ul iklasi = "inline" >
  2. <li> ... </ li>
  3. </ul>

Inkcazo

Uluhlu lwamagama aneenkcazo ezinxulumene nawo.

Uluhlu lweenkcazelo
Uluhlu lwenkcazo lufanelekile ukuchaza amagama.
Euismod
Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.
Donec id elit non mi porta gravida at eget metus.
Malesuada porta
Etiam porta sem malesuada magna mollis euismod.
  1. <dl>
  2. <dt> ... </ dt>
  3. <dd> ... </ dd>
  4. </dl>

Inkcazo ethe tye

Yenza imigaqo kunye neenkcazo <dl>ngokulandelelana kwicala elinye.

Uluhlu lweenkcazelo
Uluhlu lwenkcazo lufanelekile ukuchaza amagama.
Euismod
Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.
Donec id elit non mi porta gravida at eget metus.
Malesuada porta
Etiam porta sem malesuada magna mollis euismod.
Felis euismod semper eget lacinia
Fusce dapibus, tellus ac cursus commodo, tor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
  1. <dl iklasi = "dl-horizontal" >
  2. <dt> ... </ dt>
  3. <dd> ... </ dd>
  4. </dl>

Iintloko phezulu!Uluhlu lwenkcazo ethe tye luya kucutha amagama amade kakhulu ukuba angangena kuluhlu lwasekhohlo text-overflow. Kwiindawo zokujonga ezimxinwa, ziya kutshintshela kuyilo olupakishweyo olungagqibekanga.

Nomgca

Songa iziqwengana zekhowudi nge <code>.

Umzekelo, <section>kufuneka isongwe njengomgca.
  1. Umzekelo , < ikhowudi> & lt ; icandelo & gt ;</ ikhowudi > kufuneka isongelwe njenge -inline .

Ibhloko esisiseko

Sebenzisa <pre>kwimigca emininzi yekhowudi. Qiniseka ukuba ubaleka naziphi na izibiyeli ze-engile kwikhowudi yonikezelo olufanelekileyo.

<p>Isampuli yombhalo apha...</p>
  1. <pre>
  2. <p>Umzekelo wokubhaliweyo apha...</p>
  3. </pre>

Iintloko phezulu!Qinisekisa ukugcina ikhowudi ngaphakathi <pre>kweethegi ngokusondeleyo ekhohlo kangangoko; iyakwenza zonke iithebhu.

Unokukhetha ukongeza .pre-scrollableiklasi eya kuseka ubude bobude obuyi-350px kwaye ibonelele nge-y-axis scrollbar.

Izimbo ezihlala zikhona

Kwi-styling esisiseko-i-padding ekhanyayo kunye ne-horizontal dividers kuphela-yongeza iklasi yesiseko .tablekuyo nayiphi na <table>.

# Igama lokuqala Ifani Igama lomsebenzisi
1 Phawula Otto @mdo
2 uYakobi Thornton @fat
3 Larry intaka @twitter
  1. < iklasi yetafile = "itafile" >
  2. </ table>

Iiklasi ozikhethelayo

Yongeza nayiphi na kwezi klasi zilandelayo kwiklasi .tableyesiseko.

.table-striped

Yongeza i-zebra-striping nakuwuphi na umqolo wetafile ngaphakathi kwe <tbody>CSS :nth-childumkhethi (awufumaneki kwi-IE7-8).

# Igama lokuqala Ifani Igama lomsebenzisi
1 Phawula Otto @mdo
2 uYakobi Thornton @fat
3 Larry intaka @twitter
  1. < iklasi yetafile = "itafile-imigca yetafile" >
  2. </ table>

.table-bordered

Yongeza imida kunye neekona ezijikelezileyo kwitafile.

# Igama lokuqala Ifani Igama lomsebenzisi
1 Phawula Otto @mdo
Phawula Otto @getbootstrap
2 uYakobi Thornton @fat
3 Larry intaka @twitter
  1. < iklasi yetafile = "itafile yetafile-umda" >
  2. </ table>

.table-hover

Yenza imo yokushukuma kwimiqolo yetafile ngaphakathi kwe <tbody>.

# Igama lokuqala Ifani Igama lomsebenzisi
1 Phawula Otto @mdo
2 uYakobi Thornton @fat
3 Larry intaka @twitter
  1. < iklasi yetafile = "itafile yetafile-hover" >
  2. </ table>

.table-condensed

Yenza iitafile zihlangane ngakumbi ngokusika i-cell padding kwisiqingatha.

# Igama lokuqala Ifani Igama lomsebenzisi
1 Phawula Otto @mdo
2 uYakobi Thornton @fat
3 Larry intaka @twitter
  1. < iklasi yetafile = "itafile yetafile-icondensed" >
  2. </ table>

Iiklasi zomqolo ozikhethelayo

Sebenzisa iiklasi zomxholo ukufaka imibala kwimigca yetafile.

Iklasi Inkcazo
.success Ibonisa isenzo esiyimpumelelo okanye esilungileyo.
.error Ibonisa isenzo esinobungozi okanye esinokuthi sibe sibi.
.warning Ibonisa isilumkiso esinokufuna ukuhoywa.
.info Isetyenziswa njengenye indlela kwizimbo ezingagqibekanga.
# Imveliso Intlawulo ethathiweyo Ubume
1 I-TB - Ngenyanga 01/04/2012 Ivunyiwe
2 I-TB - Ngenyanga 02/04/2012 Yaliwe
3 I-TB - Ngenyanga 03/04/2012 Ilindile
4 I-TB - Ngenyanga 04/04/2012 Fowuna ukuze uqinisekise
  1. ...
  2. < tr class = "impumelelo" >
  3. <td> 1 < /td>
  4. <td>TB - Ngenyanga</ td >
  5. <td> 01 / 04 / 2012 < /td>
  6. <td>Ivunyiwe</ td >
  7. </ tr >
  8. ...

Uphawulo lwetafile oluxhaswayo

Uluhlu lwezinto ezixhaswayo zetafile yeHTML kunye nendlela ekufuneka zisetyenziswe ngayo.

Ithegi Inkcazo
<table> Isiqalelo sokusonga sokubonisa idatha kwifomathi yetheyibhuli
<thead> Isiqulatho sesiqalelo semigca yeheader yetheyibhile ( <tr>) ukuleyibhelisha kwimiqolo yetafile
<tbody> Isiqulatho sesiqalelo semiqolo yetafile ( <tr>) kumzimba wetheyibhile
<tr> Isiqulatho sesiqalelo seseti yeeseli zetafile ( <td>okanye <th>) evela kumqolo omnye
<td> Iseli yetafile ehlala ikho
<th> Iseli yetafile ekhethekileyo yekholamu (okanye umqolo, ngokuxhomekeke kububanzi kunye nokubekwa) iilebhile
<caption> Inkcazo okanye isishwankathelo sezinto ezigcinwe yitheyibhile, ngakumbi ziluncedo kubafundi besikrini
  1. <itheyibhile>
  2. <caption> ... </caption>
  3. <intloko>
  4. <tr>
  5. <th> ... </th>
  6. <th> ... </th>
  7. </tr>
  8. </ intloko>
  9. <iqela>
  10. <tr>
  11. <td> ... </td>
  12. <td> ... </td>
  13. </tr>
  14. </ umzimba>
  15. </ table>

Izimbo ezihlala zikhona

Ulawulo lwefomu yomntu ngamnye lufumana isimbo, kodwa ngaphandle koluhlu olusisiseko olufunekayo <form>okanye utshintsho olukhulu kuphawulo. Iziphumo zipakishwe, iilebhile ezilungelelaniswe ekhohlo phezu kolawulo lweefom.

Intsomi Umzekelo wokubhaliweyo koncedo lwenqanaba lebhloko apha.
  1. <ifomu>
  2. <iseti yendawo>
  3. <legend> Ilivo </legend>
  4. <ileyibhile> Igama leleyibhile </ ileyibheli>
  5. <input type = "text" isibambi- ndawo = "Chwetheza into..." >
  6. <span class = "help-block" > Umzekelo wokubhaliweyo koncedo lwebhloko apha. </ span>
  7. < iklasi yeleyibhile = "ibhokisi yokukhangela" >
  8. <input type = "checkbox" > Ndijonge
  9. </ ileyibhile>
  10. < uhlobo lweqhosha = "submit " class = "btn" > Ngenisa </ iqhosha>
  11. </ iseti yendawo>
  12. </ ifom>

Uyilo olukhethwayo

Ibandakanywe neBootstrap zintathu iifom ozikhethelayo zoyilo kwiimeko zokusetyenziswa okuqhelekileyo.

Khangela ifomu

Yongeza .form-searchkwifom nakwi .search-query- <input>ukwenzela igalelo lombhalo olongezelelweyo.

  1. < iklasi yefom = "ifomu-ukukhangela" >
  2. <input type = "text" class = "input-medium search-query" >
  3. < uhlobo lweqhosha = "submit " class = "btn" > Khangela </ iqhosha>
  4. </ ifom>

Ifom engaphakathi

Yongeza .form-inlineiilebhile ezilungelelaniswe ekhohlo kunye nolawulo lwebhloko engaphakathi kuyilo oludityanisiweyo.

  1. <ifom yeklasi = "ifom-inline" >
  2. <input type = "text" class = "input-small" placeholder = "I-imeyile" >
  3. <input type = "password" class = "input-small" placeholder = "Password" >
  4. < iklasi yeleyibhile = "ibhokisi yokukhangela" >
  5. <input type = "checkbox" > Ndikhumbule
  6. </ ileyibhile>
  7. < uhlobo lweqhosha = "submit " class = "btn" > Sayina </ iqhosha>
  8. </ ifom>

Ifom ethe tye

Lungelelanisa ekunene iilebhile kwaye uzidadalise ekhohlo ukuze uzenze zivele kumgca omnye njengolawulo. Ifuna olona tshintsho lophawulo lusuka kwifomu emiyo:

  • Yongeza .form-horizontalkwifom
  • Songa iilebhile kunye nolawulo.control-group
  • Yongeza .control-labelkwileyibhile
  • Qhoboshela kulo naluphi na ulawulo olunxulumeneyo .controlsukulungiselela ulungelelwaniso olululo
  1. < iklasi yefom = "ifom-horizontal" >
  2. <div class = "control-group" >
  3. <label class = "control-label" for = "inputEmail" > I- imeyile </label>
  4. <div class = "controls" >
  5. <input type = "text" id = "inputEmail" isibambi- ndawo = "I-imeyile" >
  6. </ div>
  7. </ div>
  8. <div class = "control-group" >
  9. < iklasi yeleyibhile = "control-label" for = "inputPassword" > Igama lokugqitha </label>
  10. <div class = "controls" >
  11. <input type = "password" id = "inputPassword" placeholder = " Password" >
  12. </ div>
  13. </ div>
  14. <div class = "control-group" >
  15. <div class = "controls" >
  16. < iklasi yeleyibhile = "ibhokisi yokukhangela" >
  17. <input type = "checkbox" > Ndikhumbule
  18. </ ileyibhile>
  19. < uhlobo lweqhosha = "submit " class = "btn" > Sayina </ iqhosha>
  20. </ div>
  21. </ div>
  22. </ ifom>

Ulawulo lweefomu ezixhaswayo

Imizekelo yolawulo lweefom eziqhelekileyo ezixhaswa kuyilo lwefom yomzekelo.

Igalelo

Uninzi lwefomu yolawulo oluxhaphakileyo, imimandla yokufaka esekwe ngokubhaliweyo. Ibandakanya inkxaso yazo zonke iintlobo ze-HTML5: umbhalo, igama lokugqitha, ixesha, ixesha lendawo, umhla, inyanga, ixesha, iveki, inombolo, i-imeyile, url, ukukhangela, umnxeba, kunye nombala.

Ifuna ukusetyenziswa okuxeliweyo typengamaxesha onke.

  1. <input type = "text" placeholder = "Igalelo lombhalo" >

Textarea

Ulawulo lwefom oluxhasa imigca emininzi yokubhaliweyo. Guqula rowsuphawu xa kuyimfuneko.

  1. <textarea rows = "3" ></textarea>

Iibhokisi zokutshekisha kunye noonomathotholo

Iibhokisi zokujonga zezokukhetha enye okanye iinketho ezininzi kuluhlu ngelixa oonomathotholo bezokukhetha ukhetho olunye kwabaninzi.

Okuhlala kukho (kupakishwe)


  1. < iklasi yeleyibhile = "ibhokisi yokukhangela" >
  2. <input type = "checkbox" value = "" >
  3. Ukhetho lokuqala yile kwaye leya-qiniseka ukuba ubandakanya ukuba kutheni ilungile
  4. </ ileyibhile>
  5.  
  6. < iklasi yelebhile = "irediyo" >
  7. <input type = "radio" name = "optionsRadios" id = "optionsRadios1" value = "option1" ikhangelwe >
  8. Ukhetho lokuqala yile kwaye leya-qiniseka ukuba ubandakanya ukuba kutheni ilungile
  9. </ ileyibhile>
  10. < iklasi yelebhile = "irediyo" >
  11. <input type = "radio" name = "optionsRadios" id = "optionsRadios2" value = "option2" >
  12. Ukhetho lwesibini lunokuba yenye into kwaye ukuyikhetha kuya kuyeka ukukhetha enye
  13. </ ileyibhile>

Iibhokisi zokujonga ngaphakathi

Yongeza .inlineiklasi kuluhlu lweebhokisi zokukhangela okanye iirediyo zolawulo zivela kumgca omnye.

  1. < iklasi yeleyibhile = "ibhokisi yokukhangela emgceni" >
  2. <input type = "checkbox" id = "inlineCheckbox1" value = "option1" > 1
  3. </ ileyibhile>
  4. < iklasi yeleyibhile = "ibhokisi yokukhangela emgceni" >
  5. <input type = "checkbox" id = "inlineCheckbox2" value = "option2" > 2
  6. </ ileyibhile>
  7. < iklasi yeleyibhile = "ibhokisi yokukhangela emgceni" >
  8. <input type = "checkbox" id = "inlineCheckbox3" value = "option3" > 3
  9. </ ileyibhile>

Ikhetha

Sebenzisa inketho emiselweyo okanye uchaze u- multiple="multiple"a ukubonisa iinketho ezininzi ngaxeshanye.


  1. <khetha>
  2. <ukhetho> 1 </ ukhetho>
  3. <ukhetho> 2 </option>
  4. <ukhetho> 3 </ ukhetho>
  5. <ukhetho> 4 </ ukhetho>
  6. <ukhetho> 5 </ ukhetho>
  7. </ khetha>
  8.  
  9. <khetha ezininzi = "ezininzi" >
  10. <ukhetho> 1 </ ukhetho>
  11. <ukhetho> 2 </option>
  12. <ukhetho> 3 </ ukhetho>
  13. <ukhetho> 4 </ ukhetho>
  14. <ukhetho> 5 </ ukhetho>
  15. </ khetha>

Ukwandiswa kolawulo lweefom

Ukongeza phezulu kulawulo lwebrawuza esele ikhona, iBootstrap ibandakanya ezinye iinxalenye zefom eluncedo.

Amagalelo angaphambili nafakelweyo

Yongeza umbhalo okanye amaqhosha ngaphambi okanye emva kwalo naliphi na igalelo elisekwe kwiteksti. Qaphela ukuba selectizinto azixhaswanga apha.

Ukhetho oluhlala lukhona

Songa i- .add-oni inputkunye nenye yeeklasi ezimbini ukulungiselela okanye ukongeza isicatshulwa kwigalelo.

@

.00
  1. <div class = "input-prepend" >
  2. <span class = "yongeza-on" > @ </span>
  3. <input class = "span2" id = "prependedInput" type = "text" isibambi- ndawo = "Igama lomsebenzisi" >
  4. </ div>
  5. <div class = "input-append" >
  6. <input class = "span2" id = "appendedInput" type = "text" >
  7. <span class = "add-on" > .00 </span>
  8. </ div>

Idityanisiwe

Sebenzisa zombini iiklasi kunye nemizekelo emibini .add-onyokulungiselela kunye nokongeza igalelo.

$ .00
  1. <div class = "input-prepend input-append" >
  2. <span class = "i-add-on" > $ </span>
  3. < iklasi yegalelo = "span2" id = "appendedPrependedInput" type = "text" >
  4. <span class = "add-on" > .00 </span>
  5. </ div>

Amaqhosha endaweni yombhalo

Endaweni ye-a <span>enesicatshulwa, sebenzisa u- .btna ukuncamathelisa iqhosha (okanye amabini) kwigalelo.

  1. <div class = "input-append" >
  2. < iklasi yegalelo = "span2" id = "appendedInputButton" type = "text" >
  3. < iklasi yeqhosha = "btn" type = "iqhosha" > Yiya! </ iqhosha>
  4. </ div>
  1. <div class = "input-append" >
  2. < iklasi yegalelo = "span2" id = "appendedInputButtons" type = "text" >
  3. < iklasi yeqhosha = "btn" type = "iqhosha" > Khangela </ iqhosha>
  4. < iklasi yeqhosha = "btn" uhlobo = "iqhosha" > Iinketho </ iqhosha>
  5. </ div>

Amaqhosha okwehla

  1. <div class = "input-append" >
  2. < iklasi yegalelo = "span2" id = "appendedDropdownButton" type = "text" >
  3. <div iklasi = "iqela le-btn" >
  4. < iklasi yeqhosha = "btn dropdown-toggle" data-toggle = "dropdown" >
  5. Isenzo
  6. <span class = "caret" > </ span>
  7. </ iqhosha>
  8. <ul class = "dropdown-menu" >
  9. ...
  10. </ul>
  11. </ div>
  12. </ div>
  1. <div class = "input-prepend" >
  2. <div iklasi = "iqela le-btn" >
  3. < iklasi yeqhosha = "btn dropdown-toggle" data-toggle = "dropdown" >
  4. Isenzo
  5. <span class = "caret" > </ span>
  6. </ iqhosha>
  7. <ul class = "dropdown-menu" >
  8. ...
  9. </ul>
  10. </ div>
  11. < iklasi yegalelo = "span2" id = "prependedDropdownButton" type = "text" >
  12. </ div>
  1. <div class = "input-prepend input-append" >
  2. <div iklasi = "iqela le-btn" >
  3. < iklasi yeqhosha = "btn dropdown-toggle" data-toggle = "dropdown" >
  4. Isenzo
  5. <span class = "caret" > </ span>
  6. </ iqhosha>
  7. <ul class = "dropdown-menu" >
  8. ...
  9. </ul>
  10. </ div>
  11. < iklasi yegalelo = "span2" id = "appendedPrependedDropdownButton" type = "text" >
  12. <div iklasi = "iqela le-btn" >
  13. < iklasi yeqhosha = "btn dropdown-toggle" data-toggle = "dropdown" >
  14. Isenzo
  15. <span class = "caret" > </ span>
  16. </ iqhosha>
  17. <ul class = "dropdown-menu" >
  18. ...
  19. </ul>
  20. </ div>
  21. </ div>

Amaqela okwehla acandiweyo

  1. <ifomu>
  2. <div class = "input-prepend" >
  3. <div class = "btn-iqela" > ... </div>
  4. <input type = "text" >
  5. </ div>
  6. <div class = "input-append" >
  7. <input type = "text" >
  8. <div class = "btn-iqela" > ... </div>
  9. </ div>
  10. </ ifom>

Khangela ifomu

  1. < iklasi yefom = "ifomu-ukukhangela" >
  2. <div class = "input-append" >
  3. <input type = "text" class = "span2 search-query" >
  4. < uhlobo lweqhosha = "ngenisa" iklasi = "btn" > Khangela </ iqhosha>
  5. </ div>
  6. <div iklasi = "input-prepend" >
  7. < uhlobo lweqhosha = "ngenisa" iklasi = "btn" > Khangela </ iqhosha>
  8. <input type = "text" iklasi = "span2 search-query" >
  9. </ div>
  10. </ ifom>

Lawula ubungakanani

Sebenzisa iiklasi zokulinganisa ubungakanani obufana .input-largeokanye utshatise amagalelo akho kwigridi yobukhulu bekholamu usebenzisa .span*iiklasi.

Block amagalelo kwinqanaba

Yenza nayiphi na <input>okanye <textarea>into iziphathe njengomgangatho webhloko.

  1. < iklasi yegalelo = "input-block-level" type = "text" placeholder = ".input-block-level" >

Ubungakanani obuhambelanayo

  1. < iklasi yegalelo = "input-mini" type = "text" isibambi- ndawo = ".input-mini" >
  2. < iklasi yegalelo = "input-small" type = "text" placeholder = ".input-small" >
  3. < iklasi yegalelo = "input-medium" type = "text" isibambi- ndawo = ".input-medium" >
  4. < iklasi yegalelo = "input-large" type = "text" placeholder = ".input-large" >
  5. < iklasi yegalelo = "input-xlarge" type = "text" placeholder = ".input-xlarge" >
  6. < iklasi yegalelo = "input-xxlarge" type = "text" placeholder = ".input-xxlarge" >

Iintloko phezulu!Kwiinguqulelo ezizayo, siza kube sitshintsha ukusetyenziswa kwezi klasi zongeniso zihambelana nobukhulu bethu bamaqhosha. Umzekelo, .input-largeiyakwandisa i-padding kunye nobukhulu befonti yegalelo.

Ubungakanani begridi

Sebenzisa .span1ukuya .span12kumagalelo ahambelana nobukhulu obufanayo bekholamu zegridi.

  1. < iklasi yegalelo = "span1" type = "text" placeholder = ".span1" >
  2. < iklasi yegalelo = "span2" type = "text" placeholder = ".span2" >
  3. < iklasi yegalelo = "span3" type = "text" placeholder = ".span3" >
  4. <khetha iklasi = "span1" >
  5. ...
  6. </ khetha>
  7. <khetha iklasi = "span2" >
  8. ...
  9. </ khetha>
  10. <khetha iklasi = "span3" >
  11. ...
  12. </ khetha>

Kumagalelo egridi ngomgca ngamnye, sebenzisa udidi .controls-rowlwesilungisi kwisithuba esifanelekileyo . Idada amagalelo ukudiliza isithuba esimhlophe, ibeka imida eyiyo, kwaye icoca into edadayo.

  1. <div class = "controls" >
  2. < iklasi yegalelo = "span5" type = "text" placeholder = ".span5" >
  3. </ div>
  4. <div class = "uluhlu lolawulo lolawulo" >
  5. <input class = "span4" type = "text" placeholder = ".span4" >
  6. < iklasi yegalelo = "span1" type = "text" placeholder = ".span1" >
  7. </ div>
  8. ...

Amagalelo angenakuhleleleka

Nikeza idatha kwifomu engenakuhleleka ngaphandle kokusebenzisa uphawu lokwenene.

Ixabiso elithile apha
  1. <span class = "input-xlarge-input-input" > Ixabiso elithile apha </span>

Iintshukumo zefom

Phelisa ifom ngeqela lezenzo (amaqhosha). Xa ibekwe ngaphakathi kwe .form-actions, amaqhosha aya kuzibophelela ngokuzenzekela ukuhambelana nolawulo lwefom.

  1. <div class = "ifomu-izenzo" >
  2. < uhlobo lweqhosha = "submit " class = "btn btn-primary" > Gcina utshintsho </ iqhosha>
  3. < uhlobo lweqhosha = "iqhosha" iklasi = "btn" > Rhoxisa </ iqhosha>
  4. </ div>

Umbhalo woncedo

Inkxaso yenqanaba le-inline kunye nebhloko yesicatshulwa soncedo esivela malunga nolawulo lwefom.

Uncedo lwangaphakathi

Isicatshulwa soncedo esingaphakathi
  1. <input type = "text" ><span class = "help-inline" > umbhalo woncedo lwangaphakathi </span>

Vimba uncedo

Ibhloko ende yesicatshulwa soncedo esiqhekezwa kumgca omtsha kwaye sinokudlulela ngaphaya komgca omnye.
  1. <input type = "text" ><span class = "help-block" > Ibhloko ende yesicatshulwa soncedo esiqhekeza kumgca omtsha kwaye sinokudlulela ngaphaya komgca omnye. </ span>

Iimeko zolawulo lwefom

Nika ingxelo kubasebenzisi okanye abatyeleli ngeengxelo ezisisiseko malunga nolawulo lweefomu kunye neelebhile.

Ugqaliselo lwegalelo

Sisusa izimbo ezingagqibekanga outlinekulawulo oluthile kwaye sisebenzise u a box-shadowendaweni yalo :focus.

  1. <input class = "input-xlarge" id = "focusedInput" type = "text" value = "Oku kugxilwe..." >

Ungeniso olungasebenziyo

Ungeniso lwesimbo ngokusebenza komkhangeli zincwadi ongagqibekanga nge :invalid. Cacisa i type, yongeza requireduphawu ukuba intsimi ayikhethi, kwaye (ukuba ikhona) khankanya apattern .

Oku akufumaneki kwiinguqulelo ze-Internet Explorer 7-9 ngenxa yokunqongophala kwenkxaso yabakhethi be-CSS bobuxoki.

  1. <input class = "span3" type = "imeyile" efunekayo >

Amagalelo avaliwe

Yongeza disableduphawu kwigalelo ukukhusela igalelo lomsebenzisi kwaye uqalise inkangeleko eyahlukileyo kancinane.

  1. <input class = "input-xlarge" id = "disabledInput" type = "text" isibambi- ndawo = "Igalelo elingasebenziyo apha..." luvaliwe >

Iimeko zokuqinisekisa

I-Bootstrap ibandakanya izimbo zokuqinisekisa impazamo, isilumkiso, ulwazi, kunye nemiyalezo yempumelelo. Ukusebenzisa, yongeza iklasi efanelekileyo kwindawo engqongileyo .control-group.

Inokuba ikho into engahambi kakuhle
Nceda ulungise impazamo
Igama lomsebenzisi lithathiwe
Yhooo!
  1. <div class = "isilumkiso-iqela lolawulo" >
  2. <label class = "control-label" for = "inputWarning" > Igalelo elinesilumkiso </ label>
  3. <div class = "controls" >
  4. <input type = "text" id = "inputWarning" >
  5. <span class = "help-inline" > Kukho into enokuba ayihambanga kakuhle </span>
  6. </ div>
  7. </ div>
  8.  
  9. <div class = "impazamo yeqela lokulawula" >
  10. < iklasi yeleyibhile = "control-label" for = "inputError" > Igalelo ngempazamo </label>
  11. <div class = "controls" >
  12. <input type = "text" id = "inputError" >
  13. <span class = "help-inline" > Nceda ulungise impazamo </span>
  14. </ div>
  15. </ div>
  16.  
  17. <div class = "ulwazi lweqela lokulawula" >
  18. < iklasi yeleyibhile = "control-label" for = "inputInfo" > Igalelo ngolwazi </label>
  19. <div class = "controls" >
  20. <input type = "text" id = "inputInfo" >
  21. <span class = "help-inline" > Igama lomsebenzisi sele lithathiwe </span>
  22. </ div>
  23. </ div>
  24.  
  25. <div class = "ulawulo-impumelelo yeqela" >
  26. <label class = "control-label" for = "inputSuccess" > Igalelo elinempumelelo </label>
  27. <div class = "controls" >
  28. <input type = "text" id = "inputSuccess" >
  29. <span class = "help-inline" > Woohoo! </ span>
  30. </ div>
  31. </ div>

Amaqhosha amiselweyo

Izimbo zamaqhosha zinokusetyenziswa kuyo nantoni na .btneneklasi esetyenzisiweyo. Nangona kunjalo, ngokwesiqhelo uya kufuna ukusebenzisa ezi kuphela <a>kunye <button>nezinto zonikezelo olungcono.

Iqhosha iklasi="" Inkcazo
btn Iqhosha eligreyi eliqhelekileyo elinothatho
btn btn-primary Ibonelela ngobunzima obubonakalayo obongezelelweyo kwaye ichonge isenzo sokuqala kwiseti yamaqhosha
btn btn-info Isetyenziswa njengenye indlela kwizimbo ezingagqibekanga
btn btn-success Ibonisa isenzo esiyimpumelelo okanye esilungileyo
btn btn-warning Ibonisa ukuba kufuneka kuthatyathwe isilumkiso ngeli nyathelo
btn btn-danger Ibonisa isenzo esinobungozi okanye esinokuthi sibe sibi
btn btn-inverse Elinye iqhosha elimnyama elingwevu, alibotshelelwanga kwisenzo semantic okanye ukusetyenziswa
btn btn-link Gxininisa iqhosha ngokulenza libukeke njengekhonkco ngelixa ugcina ukuziphatha kweqhosha

Ukuhambelana kwebrowser

I-IE9 ayikhuli imilinganiselo yangasemva kwiikona ezingqukuva, ngoko ke siyayisusa. Eyeleleneyo, i-IE9 yenza buttonizinto ezingasebenziyo, inikezela ngokungwevu okubhaliweyo ngesithunzi-sombhalo esibi esingenako ukusilungisa.

Ubungakanani beqhosha

Unqwenela amaqhosha amakhulu okanye amancinci? Yongeza .btn-large, .btn-small, okanye .btn-miniiisayizi ezongezelelweyo.

  1. <p>
  2. <iqhosha leklasi = "btn btn-large btn-primary" type = "iqhosha" > Iqhosha elikhulu </ iqhosha>
  3. < iklasi yeqhosha = "btn btn-large" type = "iqhosha" > Iqhosha elikhulu </ iqhosha>
  4. </p>
  5. <p>
  6. < iklasi yeqhosha = "btn btn-primary" type = "iqhosha" > Iqhosha lokuhlala </ iqhosha>
  7. < iklasi yeqhosha = "btn" type = "iqhosha" > Iqhosha elimiselweyo </ iqhosha>
  8. </p>
  9. <p>
  10. <iqhosha leklasi = "btn btn-small btn-primary" type = "iqhosha" > Iqhosha elincinci </ iqhosha>
  11. <iqhosha leklasi = "btn btn-small" type = "iqhosha" > Iqhosha elincinci </ iqhosha>
  12. </p>
  13. <p>
  14. <iqhosha leklasi = "btn btn-mini btn-primary" type = "iqhosha" > Iqhosha elincinane </ iqhosha>
  15. < iklasi yeqhosha = "btn btn-mini" type = "iqhosha" > Iqhosha elincinane </iqhosha>
  16. </p>

Yenza amaqhosha enqanaba lebhloko—lawo anwenwela kububanzi obupheleleyo bomzali— ngokongeza .btn-block.

  1. <iqhosha leklasi = "btn btn-large btn-block btn-primary" type = "iqhosha" > Iqhosha lenqanaba lokubhloka </ iqhosha>
  2. < iklasi yeqhosha = "btn btn-large btn-block" type = "iqhosha" > iqhosha lenqanaba lokuvala </ iqhosha>

Ilizwe labakhubazekileyo

Yenza amaqhosha abonakale engenakucofa ngokuwacima umva 50%.

Into ye-ankile

Yongeza .disablediklasi <a>kumaqhosha.

Ikhonkco eliphambili Ikhonkco

  1. <a href = "#" class = "btn btn-large btn-primary disabled"> Ikhonkco eliphambili </a>
  2. <a href = "#" class = "btn btn-large disabled"> Ikhonkco </a>

Iintloko phezulu!Sisebenzisa .disabledudidi oluluncedo apha, ngokufanayo .activenodidi oluqhelekileyo, ngoko ke akukho simaphambili sifunekayo. Kwakhona, le klasi yeyobuhle kuphela; kufuneka usebenzise iJavaScript yesiko ukuvala amakhonkco apha.

Into yeqhosha

Yongeza disableduphawu <button>kumaqhosha.

  1. < uhlobo lweqhosha = "iqhosha" class = "btn btn-large btn-primary disabled" disabled = "disabled" > Iqhosha lokuqala </iqhosha>
  2. < uhlobo lweqhosha = "iqhosha" class = "btn btn-large" livaliwe > Iqhosha </ iqhosha>

Iklasi enye, iithegi ezininzi

Sebenzisa .btniklasi kwi- <a>, <button>, okanye <input>isiqalelo.

Ikhonkco
  1. <a iklasi = "btn" href = ""> Ikhonkco </a> _
  2. < iklasi yeqhosha = "btn" type = "submit" > Iqhosha </ iqhosha>
  3. < iklasi yegalelo = "btn" type = "iqhosha" ixabiso = "Igalelo" >
  4. <input class = "btn" type = "submit" value = "Ngenisa" >

Njengolona qheliselo lungcono, zama ukuthelekisa inqaku lomxholo wakho ukuze uqinisekise ukuthelekisa unikezelo lwebrowser. Ukuba unayo input, sebenzisa <input type="submit">iqhosha lakho.

Yongeza iiklasi <img>kwinto ukwenza ngokulula isitayile imifanekiso kuyo nayiphi na iprojekthi.

140x140 140x140 140x140
  1. <img src = "..." iklasi = "i-img-rounded" >
  2. <img src = "..." iklasi = "img-circle" >
  3. <img src = "..." iklasi = "img-polaroid" >

Iintloko phezulu! .img-roundedkwaye .img-circleungasebenzi kwi-IE7-8 ngenxa yokungabikho border-radiuskwenkxaso.

Ii icon zeglyphs

Ii-icon ze-140 kwifom ye-sprite, ekhoyo kwi-grey emnyama (engagqibekanga) kunye nemhlophe, enikezwe yi- Glyphicons .

  • icon-glass
  • icon-umculo
  • icon-ukukhangela
  • icon-mvulophu
  • icon-intliziyo
  • icon-star
  • i-icon-star-engenanto
  • i icon-umsebenzisi
  • icon-ifilimu
  • icon-th-enkulu
  • icon-th
  • icon-th-uluhlu
  • icon-ok
  • icon-susa
  • i icon-zoom-in
  • i icon-zoom-out
  • i icon-off
  • uphawu-umqondiso
  • icon-cog
  • icon-udoti
  • icon-ikhaya
  • icon-fayile
  • uphawu-ixesha
  • icon-indlela
  • icon-download-alt
  • i icon-download
  • icon-upload
  • icon-inbox
  • icon-play-isangqa
  • icon-phinda
  • i icon-ukuhlaziya
  • icon-uluhlu-alt
  • icon-lock
  • i-icon-flag
  • icon-headphones
  • icon-umthamo-off
  • icon-umthamo-phantsi
  • icon-umthamo-up
  • icon-qrcode
  • icon-barcode
  • icon-tag
  • icon-tags
  • icon-ncwadi
  • icon-bookmark
  • icon-print
  • icon-ikhamera
  • ifonti yomfanekiso
  • i icon-engqindilili
  • i-icon-italic
  • icon-text-ubude
  • i icon-text-width
  • i-icon-lungelelanisa-ekhohlo
  • i-icon-lungelelanisa-embindini
  • icon-align-right
  • icon-align-justify
  • Uluhlu lwe icon
  • i-icon-indent-ekhohlo
  • i-icon-indenti-ekunene
  • icon-facetime-vidiyo
  • umfanekiso-mfanekiso
  • icon-ipensile
  • i icon-map-marker
  • icon-lungisa
  • icon-tint
  • i icon-edit
  • icon-ukwabelana
  • i icon-jonga
  • icon-susa
  • icon-inyathelo-umva
  • icon-ngokukhawuleza-umva
  • i icon-umva
  • i icon-play
  • icon-pause
  • icon-stop
  • uphawu-phambili
  • icon-ngokukhawuleza-phambili
  • icon-inyathelo-phambili
  • i icon-khupha
  • icon-chevron-ekhohlo
  • icon-chevron-right
  • icon-plus-sign
  • uphawu-thabatha-uphawu
  • uphawu-susa-uphawu
  • uphawu-ok-uphawu
  • uphawu-mbuzo-uphawu
  • uphawu-ulwazi-uphawu
  • umfanekiso weskrini
  • icon-susa-isangqa
  • icon-ok-isangqa
  • icon-ban-isangqa
  • i icon-utolo-ekhohlo
  • icon-utolo-ekunene
  • uphawu-utolo-phezulu
  • icon-utolo-phantsi
  • icon-share-alt
  • i icon-resize- full
  • icon-resize-ncinci
  • icon-plus
  • icon-thabatha
  • icon-asterisk
  • uphawu-isikhuzo-uphawu
  • icon-isipho
  • icon-leaf
  • icon-umlilo
  • icon-eye-vula
  • icon-eye-vala
  • uphawu-isilumkiso-uphawu
  • icon-plane
  • icon-ikhalenda
  • icon-random
  • icon-comment
  • icon-umazibuthe
  • icon-chevron-up
  • icon-chevron-down
  • icon-retweet
  • icon-inqwelo yokuthenga
  • i icon-ifolda-vala
  • icon-ifolda-vula
  • i icon-resize-vertical
  • icon-resize-horizontal
  • icon-hdd
  • icon-bullhorn
  • icon-bell
  • icon-isatifiketi
  • icon-obhontsi-up
  • icon-obhontsi-phantsi
  • uphawu-isandla-ekunene
  • uphawu-isandla-ekhohlo
  • uphawu-isandla-phezulu
  • uphawu-isandla-phantsi
  • icon-isangqa-utolo-ekunene
  • icon-isangqa-utolo-ekhohlo
  • icon-isangqa-utolo-phezulu
  • icon-isangqa-utolo-phantsi
  • icon-globe
  • i icon-wrench
  • icon-imisebenzi
  • isihluzi-mfanekiso
  • icon-briefcase
  • icon-isikrini esigcweleyo

Iimpawu zeGlyphicons

IiGlyphicons Halflings azifumaneki simahla, kodwa ilungiselelo phakathi kweBootstrap kunye nabadali beGlyphicons benze oku kwenzeke ngaphandle kweendleko kuwe njengabaphuhlisi. Njengombulelo, siyakucela ukuba ubandakanye ikhonkco lokubuyela kwiiGlyphicons nanini na xa kunokwenzeka.


Kusetyenziswa kwanjani

Zonke ii-icon zifuna <i>ithegi eneklasi eyodwa, enesimaphambili nge icon-. Ukusebenzisa, beka le khowudi ilandelayo naphi na:

  1. <i class = "icon-search" > </i>

Kukwakho nezimbo ezifumanekayo kwii-icon eziguqulweyo (ezimhlophe), ezenziwe zalungiswa ngeklasi enye eyongezelelweyo. Siza kunyanzelisa ngokukodwa le klasi kwi-hover kunye neendawo ezisebenzayo ze-nav kunye nekhonkco lokuhla.

  1. <i class = "icon-search icon-white" > </i>

Iintloko phezulu!Xa usebenzisa ecaleni kwemitya yokubhaliweyo, njengakumaqhosha okanye amakhonkco e-nav, qiniseka ukuba ushiya isithuba emva <i>kwethegi yesithuba esifanelekileyo.


Imizekelo yoMfanekiso

Zisebenzise kumaqhosha, amaqela amaqhosha ebar yesixhobo, ukukhangela, okanye amagalelo efomu esele ibekiwe.

Amaqhosha

Iqela leqhosha kwibar yesixhobo yeqhosha
  1. <div class = "btn-toolbar" >
  2. <div iklasi = "iqela le-btn" >
  3. <a iklasi = "btn" href = "#" ><i class = "icon-align-left" ></i></a>
  4. <a iklasi = "btn" href = "#" ><i class = "icon-align-center" ></i></a>
  5. <a iklasi = "btn" href = "#" ><i class = "icon-align-right" ></i></a>
  6. <a iklasi = "btn" href = "#" ><i class = "icon-align-justify" ></i></a>
  7. </ div>
  8. </ div>
Ukwehla kwiqela lamaqhosha
  1. <div iklasi = "iqela le-btn" >
  2. <a class = "btn btn-primary" href = "#" ><i class = "icon-user icon-white" ></i> Umsebenzisi </a>
  3. <a class = "btn btn-primary dropdown-toggle" data-toggle = "dropdown" href = "#" ><span class = "caret" ></span></a>
  4. <ul class = "dropdown-menu" >
  5. <li><a href = "#" ><i class = "icon-pensile" ></i> Hlela </a></li>
  6. <li><a href = "#" ><i class = "icon-trash" ></i> Cima </a></li>
  7. <li><a href = "#" ><i class = "icon-ban-isangqa" ></i> Vala </a> </li>
  8. <li iklasi = "umahluli" > </ li>
  9. <li><a href = "#" ><i class = "i" ></i> Yenza umlawuli </a></li>
  10. </ul>
  11. </ div>
Ubungakanani beqhosha
  1. <a class = "btn btn-large" href = "#" ><i class = "icon-star" ></i> Star </a>
  2. <a class = "btn btn-small" href = "#" ><i class = "icon-star" ></i> Star </a>
  3. <a class = "btn btn-mini" href = "#" ><i class = "icon-star" ></i> Star </a>

Ukukhangela

  1. <ul class = "nav nav-list" >
  2. <li iklasi = "esebenzayo" ><a href = "#" ><i class = "i-icon-yekhaya icon-emhlophe" ></i> Ekhaya </a></li>
  3. <li><a href = "#" ><i class = "icon-book" ></i> Library </a></li>
  4. <li><a href = "#" ><i class = "icon-pensile" ></i> Usetyenziso </a></li>
  5. <li><a href = "#" ><i class = "i" ></i> Okuninzi </a> </li>
  6. </ul>

Imimandla yeefom

  1. <div class = "control-group" >
  2. <label class = "control-label" for = "inputIcon" > Idilesi ye -imeyile </label>
  3. <div class = "controls" >
  4. <div class = "input-prepend" >
  5. <span class = "yongeza-on" ><i class = "icon-mvulophu" ></i></span>
  6. <input class = "span2" id = "inputIcon" type = "text" >
  7. </ div>
  8. </ div>
  9. </ div>