Xiseketelo xa CSS

Swiaki swa HTML swa masungulo leswi endliweke hi xitayili ni ku antswisiwa hi titlilasi leti andlariweke.

Tinhloko ta le henhla! Ti docs leti i ta v2.3.2, leyi nga ha seketeriwiki ximfumo. Languta vuhundzuluxeri bya sweswinyana bya Bootstrap!

Tinhloko-mhaka

Tinhlokomhaka hinkwato ta HTML, <h1>through <h6>ta kumeka.

h1. Nhlokomhaka ya 1

h2. Nhlokomhaka ya 2

h3. Nhlokomhaka ya 3

h4. Nhlokomhaka ya 4

h5. Nhlokomhaka ya 5
h6. Nhlokomhaka ya 6

Khopi ya miri

Xihlawulekisi xa misava hinkwayo xa Bootstrap font-sizei 14px , na a line-heightya 20px . Leswi swi tirhisiwa eka <body>na tindzimana hinkwato. Ku engetela kwalaho, <p>(tindzimana) ti kuma margin ya le hansi ya hafu ya line-height ya tona (10px hi ku tiyimisela).

Nullam quis risus eget xitombo xa xirhendzevutani lexi khavisiweke vel eu leo. Cum sociis natoque penatibus na magnis leyi nga na ku veleka, nascetur ridiculus mus. Nullam id dolor id nibh mimovha ya switsongwatsongwana.

Cum sociis natoque penatibus na magnis leyi nga na ku veleka, nascetur ridiculus mus. Donec ullamcorper nulla leyi nga riki na metus auctor ya swilo leswi nga riki swa nkoka. Duis mollis, est non commodo luctus, nisi erat xirho xa xirhendzevutani, xitsongwatsongwana xa xirhendzevutani xa xirhendzevutani. Donec ullamcorper nulla leyi nga riki na metus auctor ya swilo leswi nga riki swa nkoka.

Maecenas sed diam eget risus varius blandit yi tshama eka yona leyi nga riki na magna. Donec id elit leyi nga riki na mi porta gravida eka eget metus. Duis mollis, est non commodo luctus, nisi erat xirho xa xirhendzevutani, xitsongwatsongwana xa xirhendzevutani xa xirhendzevutani.

<p> ... </p>

Khopi ya miri leyi rhangelaka

Endla leswaku ndzimana yi va leyi hambaneke hi ku engetela .lead.

Vivamus sagittis lacus vel augue laoreet xitsonga xitsonga xitsonga xitsonga xitsonga xitsonga xitsonga xitsonga xitsonga xitsonga xitsonga xitsonga xitsonga. Duis mollis, est leyi nga riki ya xiyimo xa le henhla.

<p class = "ku rhangela" > ... </p> 

Yi akiwile hi Switsongo

Xikalo xa ku thayipa xi sekeriwe eka swilo swimbirhi leswi cinca-cincaka swa LESS eka swilo leswi cinca-cincaka.less : @baseFontSizena @baseLineHeight. Xo sungula i base font-size leyi tirhisiweke hinkwako kasi xa vumbirhi i base line-height. Hi tirhisa swilo sweswo leswi cinca-cincaka ni tinhlayo tin’wana to olova ku endla ti- margin, ti-padding, ni ti-line-height ta muxaka wa hina hinkwawo ni swin’wana. Va customize na Bootstrap yi pfumelelana na swona.


Tiyisisa

Tirhisa tithegi ta ku kandziyisa ta HTML ta ntolovelo leti nga ni switayele swo olova.

<small>

Ku susa ku kandziyisa inline kumbe swiphemu swa tsalwa, tirhisa thegi leyitsongo.

Layini leyi ya tsalwa yi endleriwe ku tekiwa tanihi matsalelo lamanene.

<p> <small> Layini leyi ya tsalwa yi endleriwe ku tekiwa tanihi matsalelo lamanene. </small> </p>
  

Titshembha

Ku kandziyisa xiphemu xa tsalwa hi font-weight yo tika swinene.

Xiphemu lexi landzelaka xa tsalwa xi hundzuluxeriwe tanihi tsalwa ro dzwihala .

<strong> yi hundzuluxeriwe tanihi tsalwa ro dzwihala </strong>

Switlhokovetselo swa xitaliki

Ku kandziyisa xiphemu xa tsalwa leri tsariweke hi matsalelo yo olova.

Xiphemu lexi landzelaka xa tsalwa xi hundzuluxeriwe tanihi tsalwa leri tsariweke hi ku olova .

<em> yi hundzuluxeriwe tanihi tsalwa leri tsariweke hi ku olova </em>

Tinhloko ti tlakukile!Titwele u ntshunxekile ku tirhisa <b>na <i>hi HTML5. <b>yi endleriwe ku kombisa marito kumbe swivulwa handle ko hundzisela nkoka lowu engetelekeke kasi <i>ngopfungopfu i ya rito, marito ya xithekiniki, na swin’wana.

Titlilasi ta ku ringanisa

Hi ku olova hlela nakambe tsalwa eka swiphemu leswi nga na titlilasi ta ku ringanisa matsalwa.

Tsalwa leri ringanisiweke hi tlhelo ra ximatsi.

Tsalwa leri ringanisiweke exikarhi.

Tsalwa leri ringanisiweke hi tlhelo ra xinene.

  1. <p class = "text-left" > Tsalwa leri ringanisiweke hi ximatsi. </p>
  2. <p class = "text-center" > Tsalwa leri ringanisiweke exikarhi. </p>
  3. <p class = "text-right" > Tsalwa leri ringanisiweke hi xinene. </p>

Titlilasi to kandziyisa

Humesa nhlamuselo hi ku tirhisa mihlovo hi voko ra titlilasi ta vukorhokeri byo kandziyisa.

Fusce dapibus, tellus ac xihlambanyiso xa xivundza, tortor mauris nibh.

Etiam porta sem malesuada leyikulu leyi nga ni vuxiyaxiya.

Donec ullamcorper nulla leyi nga riki na metus auctor ya swilo leswi nga riki swa nkoka.

Aenean eu leo ​​quam. Ku khavisiwa ka pellentesque sem lacinia quam venenatis.

Duis mollis, est non commodo luctus, xitsongwatsongwana xa xirhendzevutani xa xirhendzevutani.

  1. | _ _ _ _ _ </p>
  2. <p class = "xitsundzuxo xa tsalwa" > Etiam porta sem malesuada magna mollis euismod. </p>
  3. <p class = "xihoxo xa tsalwa" > Donec ullamcorper nulla leyi nga riki ya metus auctor fringilla. </p>
  4. <p class = "vuxokoxoko bya tsalwa" > Aenean eu leo ​​quam. Ku khavisiwa ka pellentesque sem lacinia quam venenatis. </p>
  5. <p class = "ku humelela ka tsalwa" > Duis mollis, est leyi nga riki ya nkoka, nisi erat porttitor ligula. </p>

Swipfuxeto

Ku tirhisiwa ka xitayili ka <abbr>elemente ya HTML ya swipfuxeto na swihlamusela-marito ku kombisa vuhundzuluxeri lebyi andlariweke eka hover. Swipfuxeto leswi nga na titlexihlawulekisi swi na ndzilakano wa le hansi lowu nga na mathonsi yo vonikela na xikombiso xa mpfuneto eka hover, leswi nyikaka mongo wo engetela eka hover.

<abbr>

Eka tsalwa leri andlariweke eka long hover ya xifunengeto, katsa titlexihlawulekisi.

Xifunengeto xa rito attribute i attr .

<abbr title = "xihlawulekisi" > attr </abbr> 

<abbr class="initialism">

Engetela .initialismeka xifunengeto xa font-size leyitsongonyana.

HTML i nchumu lowunene ngopfu ku sukela eka xinkwa lexi tsemiweke.

<abbr title = "Ririmi ra ku fungha tsalwa ra le henhla" class = "ku sungula" > HTML </abbr>  

Tiadirese

Nyika vuxokoxoko byo tihlanganisa bya kokwa wa le kusuhi kumbe miri hinkwawo wa ntirho.

<address>

Hlayisa ku fometa hi ku heta mitila hinkwayo hi <br>.

Twitter, Inc.
795 Folsom Ave, Suite 600
San Francisco, CA 94107 Xihlamusela
-marito xa Xitsonga
Vito leri heleleke
ro [email protected]
  1. <adirese>
  2. <strong> Twitter, Inc. </strong><br>
  3. 795 Folsom Ave, Xigwitsirisi xa 600 <br>
  4. San Francisco, CA 94107 <br>
  5. <abbr xihloko = "Rifoni" > P: </abbr> (123) 456-7890
  6. </adirese>
  7.  
  8. <adirese>
  9. <strong> Vito leri heleleke </strong><br>
  10. <a href = "mailto:#" > xo sungula.xo [email protected] </a>
  11. </adirese>

Switlhokovetselo swa swibokisana

Ku tshaha swibokisana swa nhundzu ku suka eka xihlovo xin’wana endzeni ka tsalwa ra wena.

Xibokisana xa xiviri

Pfuxeta HTML<blockquote> yihi na yihi tanihi xitlhokovetselo. Eka switlhokovetselo swo kongoma hi ringanyeta a .<p>

Lorem ipsum dolor tshama amet, consectetur adipiscing xiyimo xa le henhla. Nhlayo leyi heleleke ya posuere erat a ante.

  1. <xihlawulekisi xa xibokisana>
  2. <p> Lorem ipsum dolor tshama amet, ku hlawuriwa ka mati ya xiyimo xa le henhla. Nhlayo leyi heleleke ya posuere erat a ante. </p>
  3. </blockquote ya xitsonga

Swihlawulekisi swa blockquote

Xitayili na ku cinca ka nhundzu eka ku hambana ko olova eka blockquote ya ntolovelo.

Ku thya xihlovo vito

Engetela <small>thegi yo kombisa xihlovo. Pfuxeta vito ra ntirho wa xihlovo eka <cite>.

Lorem ipsum dolor tshama amet, consectetur adipiscing xiyimo xa le henhla. Nhlayo leyi heleleke ya posuere erat a ante.

Munhu loyi a dumeke eka Source Title
  1. <xihlawulekisi xa xibokisana>
  2. <p> Lorem ipsum dolor tshama amet, ku hlawuriwa ka mati ya xiyimo xa le henhla. Nhlayo leyi heleleke ya posuere erat a ante. </p>
  3. <small> Munhu loyi a dumeke <cite title = "Nhlokomhaka ya Xihlovo" > Nhlokomhaka ya Xihlovo </cite></small>
  4. </blockquote ya xitsonga

Swikombiso swin’wana

Tirhisa .pull-righteka blockquote leyi papamalaka, leyi ringanisiweke hi tlhelo ra xinene.

Lorem ipsum dolor tshama amet, consectetur adipiscing xiyimo xa le henhla. Nhlayo leyi heleleke ya posuere erat a ante.

Munhu loyi a dumeke eka Source Title
  1. <blockquote class = "koka-exineneni" >
  2. ...
  3. </blockquote ya xitsonga

Minxaxamelo ya swilo

A swi odariwanga

Nxaxamelo wa swilo leswi eka swona ku landzelelana ku nga riki na nkoka hi ku kongoma.

  • Lorem ipsum dolor tshama amet
  • Consectetur leyi nga ni mafurha yo tala
  • Nhlayo leyi heleleke ya molestie lorem eka massa
  • Facilisis eka xirhendzevutani xa pretium nisl aliquet
  • Nulla volutpat xitsonga xitsonga xitsonga xitsonga
    • Xiphemu xa xirhendzevutani xa iaculis neque
    • Purus sodales ya switsongwatsongwana swa ultricies
    • Vestibulum laoreet xirho xa xirhendzevutani sem
    • Ac tristique libero xitsonga xitsonga xitsonga xitsonga
  • Faucibus porta lacus xihlala xa xirhendzevutani xa xirhendzevutani
  • Aenean tshama amet erat nunc
  • Eget porttitor xitsonga xitsonga
  1. <ul>
  2. <li> ... </li>
  3. </ul>

Ku odariwile

Nxaxamelo wa swilo leswi eka swona ku landzelelana ku nga na nkoka hi ku kongoma.

  1. Lorem ipsum dolor tshama amet
  2. Consectetur leyi nga ni mafurha yo tala
  3. Nhlayo leyi heleleke ya molestie lorem eka massa
  4. Facilisis eka xirhendzevutani xa pretium nisl aliquet
  5. Nulla volutpat xitsonga xitsonga xitsonga xitsonga
  6. Faucibus porta lacus xihlala xa xirhendzevutani xa xirhendzevutani
  7. Aenean tshama amet erat nunc
  8. Eget porttitor xitsonga xitsonga
  1. <ol>
  2. <li> ... </li>
  3. </ol>

Ku nga ri na xitayili

Susa list-stylepadding ya default na left eka swilo swa nxaxamelo (vana va xihatla ntsena).

  • Lorem ipsum dolor tshama amet
  • Consectetur leyi nga ni mafurha yo tala
  • Nhlayo leyi heleleke ya molestie lorem eka massa
  • Facilisis eka xirhendzevutani xa pretium nisl aliquet
  • Nulla volutpat xitsonga xitsonga xitsonga xitsonga
    • Xiphemu xa xirhendzevutani xa iaculis neque
    • Purus sodales ya switsongwatsongwana swa ultricies
    • Vestibulum laoreet xirho xa xirhendzevutani sem
    • Ac tristique libero xitsonga xitsonga xitsonga xitsonga
  • Faucibus porta lacus xihlala xa xirhendzevutani xa xirhendzevutani
  • Aenean tshama amet erat nunc
  • Eget porttitor xitsonga xitsonga
  1. <ul class = "leyi nga riki na xitayili" >
  2. <li> ... </li>
  3. </ul>

Inline

Veka swilo hinkwaswo swa nxaxamelo eka layini yin’we na inline-blockna swin’wana swo olova swo padding.

  • Lorem ipsum yi vula leswaku
  • Xiphemu xa phasellus iaculis
  • Nulla xitsonga xitsonga
  1. <ul class = "endzeni ka layini" >
  2. <li> ... </li>
  3. </ul>

Nhlamuselo

Nxaxamelo wa marito lama nga ni tinhlamuselo leti fambisanaka na wona.

Minxaxamelo ya tinhlamuselo
Nxaxamelo wa tinhlamuselo wu hetisekile ku hlamusela marito.
Euismod
Vestibulum id ligula porta felis euismod xitombo xa xitombo xa xitombo xa xitombo xa xitombo xa xitombo xa xitombo.
Donec id elit leyi nga riki na mi porta gravida eka eget metus.
Malesuada ya xitsonga
Etiam porta sem malesuada leyikulu leyi nga ni vuxiyaxiya.
  1. <dl>
  2. <dt> ... </dt> leyi nga kona
  3. <dd> ... </dd>
  4. </dl>

Nhlamuselo ya horizontal

Endla marito na tinhlamuselo eka <dl>layini hi tlhelo na tlhelo.

Minxaxamelo ya tinhlamuselo
Nxaxamelo wa tinhlamuselo wu hetisekile ku hlamusela marito.
Euismod
Vestibulum id ligula porta felis euismod xitombo xa xitombo xa xitombo xa xitombo xa xitombo xa xitombo xa xitombo.
Donec id elit leyi nga riki na mi porta gravida eka eget metus.
Malesuada ya xitsonga
Etiam porta sem malesuada leyikulu leyi nga ni vuxiyaxiya.
Felis euismod xitombo xa xitombo
Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum masa justo tshama amet risus.
  1. <dl class = "dl-xirhendzevutani" >
  2. <dt> ... </dt> leyi nga kona
  3. <dd> ... </dd>
  4. </dl>

Tinhloko ti tlakukile!Minxaxamelo ya tinhlamuselo ta horizontal yi ta tsema marito lama leheke ngopfu ku nghena eka ku lulamisiwa ka kholomo ya ximatsi text-overflow. Eka swivono leswitsongo, swi ta cinca eka xivumbeko xa ntolovelo lexi hlanganisiweke.

Inline

Pfuxeta swiphemu swa khodi ya le ndzeni ka layini hi <code>.

Hi xikombiso, <section>yi fanele yi phutseriwe tanihi leyi nga endzeni ka layini.
  1. Xikombiso , <khodi > & lt ; xiyenge & gt ;</ khodi > yi fanele ku phutseriwe tanihi inline .

Xibokisana xa xisekelo

Tirhisa <pre>eka milayeni yo tala ya khodi. Tiyiseka leswaku u balekela swikhomela-ndhawu swihi na swihi swa angle eka khodi leswaku u ta hundzuluxela kahle.

<p>Xikombiso xa tsalwa laha...</p>
  1. <pre>
  2. <p>Xikombiso xa tsalwa laha...</p>
  3. </pre>

Tinhloko ti tlakukile!Tiyiseka leswaku u hlayisa khodi endzeni ka <pre>tithegi ekusuhi ni tlhelo ra ximatsi hilaha swi nga kotekaka hakona; yi ta hundzuluxela tithebhu hinkwato.

U nga ha engetela .pre-scrollabletlilasi hi ku hlawula leyi nga ta veka max-height ya 350px na ku nyika y-axis scrollbar.

Switayili swa xiviri

Eka xitayili xa xisekelo—ku pfariwa ko olova ni ku avanyisa loku nga etlhelo ntsena—engetela tlilasi ya le hansi .tableeka yin’wana ni yin’wana <table>.

# . Vito rosungula Xivongo Vito ra mutirhisi
1. Marka Otto @mdo
2. Yakobe Thornton @mafurha
3. Larry Xinyenyana @twitter
  1. < tlilasi ya tafula = "tafula" >
  2. ...
  3. </tafula>

Titlilasi leti nga hlawuriwa

Engetela yin’wana na yin’wana ya titlilasi leti landzelaka eka .tabletlilasi ya le hansi.

.table-striped

Ku engetela zebra-striping eka layini yihi na yihi ya tafula endzeni ka <tbody>via :nth-childCSS selector (a yi kumeki eka IE7-8).

# . Vito rosungula Xivongo Vito ra mutirhisi
1. Marka Otto @mdo
2. Yakobe Thornton @mafurha
3. Larry Xinyenyana @twitter
  1. < tlilasi ya tafula = "tafula ra tafula-striped" >
  2. ...
  3. </tafula>

.table-bordered

Engeta mindzilakano na makhon’wa ya xirhendzevutani eka tafula.

# . Vito rosungula Xivongo Vito ra mutirhisi
1. Marka Otto @mdo
Marka Otto @getbootstrap ya xitsonga
2. Yakobe Thornton @mafurha
3. Larry wa Xinyenyana @twitter
  1. <table class = "tafula leri nga na ndzilakano wa tafula" >
  2. ...
  3. </tafula>

.table-hover

Endla leswaku xiyimo xa hover xi tirha eka tilayini ta tafula endzeni ka <tbody>.

# . Vito rosungula Xivongo Vito ra mutirhisi
1. Marka Otto @mdo
2. Yakobe Thornton @mafurha
3. Larry wa Xinyenyana @twitter
  1. < tlilasi ya tafula = "tafula-hover" >
  2. ...
  3. </tafula>

.table-condensed

Swi endla leswaku matafula ya va ya hlangana swinene hi ku tsema ti cell padding hi le xikarhi.

# . Vito rosungula Xivongo Vito ra mutirhisi
1. Marka Otto @mdo
2. Yakobe Thornton @mafurha
3. Larry wa Xinyenyana @twitter
  1. <table class = "tafula ra tafula leri hlanganisiweke" >
  2. ...
  3. </tafula>

Titlilasi ta tilayini leti nga hlawuriwa

Tirhisa titlilasi ta mongo ku penda tilayini ta tafula.

Tlilasi Nhlamuselo
.success Swi kombisa goza leri humeleleke kumbe lerinene.
.error Swi kombisa goza leri nga ni khombo kumbe leri nga ha vaka ro biha.
.warning Swi kombisa xilemukiso lexi nga ha lavaka nyingiso.
.info Ku tirhisiwa tanihi ndlela yin’wana eka switayele swa ntolovelo.
# . Ximakiwa Ku Hakela Ku Tekiwile Xiyimo
1. TB - N'hweti na n'hweti 01/04/2012 hi siku ra yena Pasisiwile
2. TB - N'hweti na n'hweti 02/04/2012 hi siku ra yena Ku arile
3. TB - N'hweti na n'hweti 03/04/2012 hi siku ra yena Rindzerile
4. TB - N'hweti na n'hweti 04/04/2012 hi siku ra yena Fonela endzeni ku tiyisisa
  1. ...
  2. < tr class = "ku humelela" >
  3. <td> 1 < /td> yi vula leswaku
  4. <td>TB - N’hweti na n’hweti</ td >
  5. <td> 01 / 04 / 2012 Xihlamusela -marito xa Xitsonga
  6. <td>Ku pfumeleriwile</ td >
  7. </ tr >
  8. ...

Ku seketeriwa ka ku fungha tafula

Nxaxamelo wa swiaki swa HTML swa tafula leswi seketeriwaka na ndlela leyi swi faneleke ku tirhisiwa ha yona.

Thege Nhlamuselo
<table> Xiaki xo phutsela xo kombisa datha hi xivumbeko xa thebulu
<thead> Xiaki xa xikhomela xa tilayini ta nhloko ya tafula ( <tr>) ku lebula tikholomu ta tafula
<tbody> Xiaki xa xikhomela xa tilayini ta tafula ( <tr>) emirini wa tafula
<tr> Xiaki xa xikhomela xa sete ya tisele ta tafula ( <td>kumbe <th>) leyi humelelaka eka layini yin’we
<td> Sele ya tafula ya ntolovelo
<th> Sele yo hlawuleka ya tafula ya malebvu ya kholomo (kumbe layini, ku ya hi xikalo na ku vekiwa).
<caption> Nhlamuselo kumbe nkatsakanyo wa leswi tafula ri swi khomeke, ngopfungopfu leswi pfunaka eka vahlayi va xikirini
  1. <tafula>
  2. <xitlhokovetselo> ... </xitlhokovetselo>
  3. <nhloko>
  4. <tr>
  5. <th> ... </th>
  6. <th> ... </th>
  7. </tr>
  8. </thead>
  9. <miri>
  10. <tr>
  11. <td> ... </td>
  12. <td> ... </td>
  13. </tr>
  14. </tbody>
  15. </tafula>

Switayili swa xiviri

Vulawuri bya xivumbeko bya munhu hi xiyexe byi amukela xitayili, kambe handle ka tlilasi ya xisekelo leyi lavekaka eka <form>kumbe ku cinca lokukulu eka ku fungha. Swi endla leswaku ku va na malebvu lama hlanganisiweke, lama ringanisiweke hi tlhelo ra ximatsi ehenhla ka vulawuri bya fomo.

Nhenha Xikombiso xa tsalwa ra mpfuneto wa xiyimo xa xibokisana laha.
  1. <xivumbeko>
  2. <xiyenge xa ​​nsimu>
  3. <ntsheketo> Ntsheketo </ntsheketo>
  4. <label> Vito ra lebula </label>
  5. <input type = "text" placeholder = "Tsala swin'wana..." >
  6. <span class = "help-block" > Xikombiso xa tsalwa ra mpfuneto wa xiyimo xa xibokisana laha. </span>
  7. < tlilasi ya lebula = "bokisi ro kambela" >
  8. <input type = "checkbox" > Ndzi languta
  9. </label>
  10. < muxaka wa buti = "rhumela" class = "btn" > Rhumela </button>
  11. </sete ya nsimu>
  12. </form>

Swivumbeko leswi nga hlawuriwa

Ku katsiwile na Bootstrap ku na swivumbeko swinharhu swa xivumbeko xo hlawula eka swiyimo swa matirhiselo lama tolovelekeke.

Fomo yo lavisisa

Engetelani .form-searcheka fomo na .search-queryle ka <input>for an extra-rounded text input.

  1. <fomo ya tlilasi = "fomo-ku lavisisa" >
  2. < muxaka wa ku nghenisa = "text" class = "xivutiso xa ku lavisisa-xikarhi-ku nghenisa" >
  3. < muxaka wa buti = "rhumela" class = "btn" > Ku lavisisa </button>
  4. </form>

Fomo ya le ndzeni ka layini

Engetelani .form-inlineeka malebvu lama ringanisiweke hi ximatsi na vulawuri bya inline-block eka layout yo koma.

  1. < tlilasi ya xivumbeko = "fomo-inline" >
  2. < muxaka wa ngheniso = "tsalwa" tlilasi = "nyingiso-leswitsongo" xikhomela-ndhawu = "Imeyili" >
  3. < muxaka wa ngheniso = "phasiwedi" tlilasi = "nhlamuselo-ntsongo" xikhomela-ndhawu = "Phasiwedi" >
  4. < tlilasi ya lebula = "bokisi ro kambela" >
  5. <input type = "checkbox" > Ndzi tsundzukeni
  6. </label>
  7. < muxaka wa buti = "rhumela" tlilasi = "btn" > Nghena </button>
  8. </form>

Xivumbeko xa horizontal

Lulamisa malebvu hi tlhelo ra xinene ivi u ma papamala eximatsini leswaku ma humelela eka layini leyi fanaka ni ya swilawuri. Swi lava ku cinca ko tala ka ku fungha ku suka eka fomo ya ntolovelo:

  • Engetela .form-horizontaleka fomo
  • Pfuxeta malebvu na swilawuri eka.control-group
  • Engetela .control-labeleka lebula
  • Pfuxeta swilawuri swihi na swihi leswi fambelanaka na swona .controlsleswaku swi ta ringanisiwa kahle
  1. <xivumbeko xa tlilasi = "xivumbeko-xirhendzevutani" >
  2. <div class = "ntlawa-vulawuri" >
  3. <label class = "control-label" for = "Imeyili yo nghenisa" > Imeyili </lebula>
  4. <div class = "swilawuri" >
  5. < muxaka wa ku nghenisa = "tsalwa" id = "Imeyili yo nghenisa" xikhomela-ndhawu = "Imeyili" >
  6. </div>
  7. </div>
  8. <div class = "ntlawa-vulawuri" >
  9. <label class = "control-label" for = "Nhlamuselo ya ku nghenisa" > Phasiwedi </label>
  10. <div class = "swilawuri" >
  11. < muxaka wa ku nghenisa = "phasiwedi" id = "Nhlamuselo ya ku nghenisa" xikhomela-ndhawu = "Password" >
  12. </div>
  13. </div>
  14. <div class = "ntlawa-vulawuri" >
  15. <div class = "swilawuri" >
  16. < tlilasi ya lebula = "bokisi ro kambela" >
  17. <input type = "checkbox" > Ndzi tsundzukeni
  18. </label>
  19. < muxaka wa buti = "rhumela" tlilasi = "btn" > Nghena </button>
  20. </div>
  21. </div>
  22. </form>

Swilawuri swa xivumbeko leswi seketeriwaka

Swikombiso swa vulawuri bya xivumbeko xa ntolovelo lebyi seketeriwaka eka xivumbeko xa xivumbeko xa xikombiso.

Swilo leswi nghenisiwaka

Vulawuri bya xivumbeko lebyi tolovelekeke ngopfu, tinsimu to nghenisa leti simekiweke eka tsalwa. Ku katsa nseketelo wa tinxaka hinkwato ta HTML5: tsalwa, phaswedi, nkarhi wa siku, nkarhi wa siku-ya laha kaya, siku, n’hweti, nkarhi, vhiki, nomboro, imeyili, url, ku lavisisa, tel, na muvala.

Swi lava ku tirhisiwa ka leswi boxiweke typenkarhi hinkwawo.

  1. < muxaka wa ku nghenisa = "tsalwa" xikhomela-ndhawu = "Nyingiso wa tsalwa" >

Ndhawu ya matsalwa

Vulawuri bya xivumbeko lebyi seketelaka mitila yo tala ya tsalwa. Cinca rowsxihlawulekisi tanihilaha swi lavekaka hakona.

  1. < tilayini ta ndhawu ya matsalwa = "3" ></ndhawu ya matsalwa>

Mabokisi yo kambela ni swiya-ni-moya

Mabokisi yo kambela i ya ku hlawula xin’we kumbe swo hlayanyana eka nxaxamelo kasi swiya-ni-moya i swa ku hlawula ndlela yin’we eka yo tala.

Xihlawulekisi (xi hlengeletiwile) .


  1. < tlilasi ya lebula = "bokisi ro kambela" >
  2. < muxaka wa ngheniso = "bokisi ro kambela" nkoka = "" >
  3. Ndlela yo sungula i leyi ni leyi—tiyiseka leswaku u katsa leswaku ha yini yi ri leyinene
  4. </label>
  5.  
  6. < tlilasi ya lebula = "radio" >
  7. < muxaka wa ngheniso = "radio" vito = "swihlawulekisiRadio" id = "swihlawulekisiRadio1" nkoka = "nhlawulo1" wu kamberiwile >
  8. Ndlela yo sungula i leyi ni leyi—tiyiseka leswaku u katsa leswaku ha yini yi ri leyinene
  9. </label>
  10. < tlilasi ya lebula = "radio" >
  11. < muxaka wa ngheniso = "radio" vito = "swihlawulekisiRadio" id = "swihlawulekisiRadio2" value = "nhlawulo2" >
  12. Nhlawulo wa vumbirhi wu nga va nchumu wun’wana naswona ku wu hlawula swi ta susa nhlawulo wo sungula
  13. </label>

Mabokisi yo kambela ya le ndzeni ka layini

Engetelani .inlinetlilasi eka nxaxamelo wa mabokisi yo kambela kumbe swiya-ni-moya leswaku swilawuri swi humelela eka layini yin’we.

  1. <label class = "bokisi ro kambela endzeni ka layini" >
  2. < muxaka wa ku nghenisa = "bokisi ro kambela" id = "bokisi ro kambela ra le ndzeni ka layini1" value = "nhlawulo1" > 1
  3. </label>
  4. <label class = "bokisi ro kambela endzeni ka layini" >
  5. < muxaka wa ngheniso = "bokisi ro kambela" id = "bokisi ro kambela ra le ndzeni ka layini2" value = "nhlawulo2" > 2
  6. </label>
  7. <label class = "bokisi ro kambela endzeni ka layini" >
  8. < muxaka wa ku nghenisa = "bokisi ro kambela" id = "bokisi ro kambela ra le ndzeni ka layini3" value = "nhlawulo3" > 3
  9. </label>

Ku hlawula

Tirhisa xihlawulekisi xa ntolovelo kutani u boxa a multiple="multiple"ku kombisa swihlawulekisi swo tala hi nkarhi wun’we.


  1. <hlawula>
  2. <nhlawulo> 1 </nhlawulo>
  3. <nhlawulo> 2 </nhlawulo>
  4. <nhlawulo> 3 </nhlawulo>
  5. <nhlawulo> 4 </nhlawulo>
  6. <nhlawulo> 5 </nhlawulo>
  7. </hlawula>
  8.  
  9. <hlawula swo tala = "vunyingi" >
  10. <nhlawulo> 1 </nhlawulo>
  11. <nhlawulo> 2 </nhlawulo>
  12. <nhlawulo> 3 </nhlawulo>
  13. <nhlawulo> 4 </nhlawulo>
  14. <nhlawulo> 5 </nhlawulo>
  15. </hlawula>

Ku andlala vulawuri bya xivumbeko

Ku engetela ehenhla ka vulawuri bya browser lebyi nga kona, Bootstrap yi katsa swiphemu swin’wana swa fomo leswi pfunaka.

Swilo leswi nghenisiweke ka ha ri emahlweni na leswi engeteriweke

Engetela tsalwa kumbe swikomba-nkarhi emahlweni kumbe endzhaku ka ku nghenisa kwihi na kwihi loku sekeriweke eka tsalwa. Endla xiya leswaku selectswiaki a swi seketeriwi laha.

Swihlawulekisi swa xiviri

Pfuxeta an .add-onna an inputhi yin’wana ya titlilasi timbirhi ku prepend kumbe ku engetela tsalwa eka input.

@

.00
  1. <div class = "ku nghenisa-ku nghenisa" >
  2. <span class = "xiengetelo" > @ </span>
  3. < tlilasi ya swingheniso = "span2" id = "prependedInput" muxaka = "tsalwa" xikhomela-ndhawu = "Vito ra mutirhisi" >
  4. </div>
  5. <div class = "ku nghenisa-ku engetela" >
  6. < tlilasi ya ngheniso = "span2" id = "Nyingiso lowu engeteriweke" muxaka = "tsalwa" >
  7. <span class = "xiengetelo" > .00 </span>
  8. </div>

Ku hlanganisiwa

Tirhisa titlilasi ha timbirhi na swikombiso swimbirhi swa .add-onku prepend na ku engetela input.

$ .00
  1. <div class = "ku nghenisa-prepend ku nghenisa-ku engetela" >
  2. <span class = "xiengetelo" > $ </span>
  3. < tlilasi ya swingheniso = "span2" id = "nyingiso lowu engeteriweke" muxaka = "tsalwa" >
  4. <span class = "xiengetelo" > .00 </span>
  5. </div>

Swikomba-nkarhi ematshan’weni ya tsalwa

Ematshan’weni ya a <span>na tsalwa, tirhisa a .btnku namarheta buti (kumbe timbirhi) eka input.

  1. <div class = "ku nghenisa-ku engetela" >
  2. < tlilasi ya ngheniso = "span2" id = "Button ya Nyingiso leyi engeteriweke" muxaka = "tsalwa" >
  3. < tlilasi ya buti = "btn" muxaka = "buti" > Famba! </button>
  4. </div>
  1. <div class = "ku nghenisa-ku engetela" >
  2. < tlilasi ya swingheniso = "span2" id = "swikomba-nkarhi leswi engeteriweke" muxaka = "tsalwa" >
  3. <button class = "btn" muxaka = "button" > Ku lavisisa </button>
  4. <button class = "btn" muxaka = "button" > Swihlawulekisi </button>
  5. </div>

Swilo leswi nga ehansi ka swikomba-nkarhi

  1. <div class = "ku nghenisa-ku engetela" >
  2. < tlilasi yo nghenisa = "span2" id = "appendedDropdownButton" muxaka = "tsalwa" >
  3. <div class = "ntlawa wa btn" >
  4. <button class = "btn ku rhelela-ku cinca" data-ku cinca = "ku rhelela" >
  5. Goza
  6. <span class = "xihlayiselo" ></span>
  7. </button>
  8. <ul class = "menyu leyi nga ehansi" >
  9. ...
  10. </ul>
  11. </div>
  12. </div>
  1. <div class = "ku nghenisa-ku nghenisa" >
  2. <div class = "ntlawa wa btn" >
  3. <button class = "btn ku rhelela-ku cinca" data-ku cinca = "ku rhelela" >
  4. Goza
  5. <span class = "xihlayiselo" ></span>
  6. </button>
  7. <ul class = "menyu leyi nga ehansi" >
  8. ...
  9. </ul>
  10. </div>
  11. < tlilasi yo nghenisa = "span2" id = "prependedDropdownButton" muxaka = "tsalwa" >
  12. </div>
  1. <div class = "ku nghenisa-prepend ku nghenisa-ku engetela" >
  2. <div class = "ntlawa wa btn" >
  3. <button class = "btn ku rhelela-ku cinca" data-ku cinca = "ku rhelela" >
  4. Goza
  5. <span class = "xihlayiselo" ></span>
  6. </button>
  7. <ul class = "menyu leyi nga ehansi" >
  8. ...
  9. </ul>
  10. </div>
  11. < tlilasi yo nghenisa = "span2" id = "appendedPrependedDropdownButton" muxaka = "tsalwa" >
  12. <div class = "ntlawa wa btn" >
  13. <button class = "btn ku rhelela-ku cinca" data-ku cinca = "ku rhelela" >
  14. Goza
  15. <span class = "xihlayiselo" ></span>
  16. </button>
  17. <ul class = "menyu leyi nga ehansi" >
  18. ...
  19. </ul>
  20. </div>
  21. </div>

Mintlawa leyi nga ehansi leyi hambanisiweke

  1. <xivumbeko>
  2. <div class = "ku nghenisa-ku nghenisa" >
  3. <div class = "ntlawa wa btn" > ... </div>
  4. < muxaka wa ngheniso = "tsalwa" >
  5. </div>
  6. <div class = "ku nghenisa-ku engetela" >
  7. < muxaka wa ngheniso = "tsalwa" >
  8. <div class = "ntlawa wa btn" > ... </div>
  9. </div>
  10. </form>

Fomo yo lavisisa

  1. <fomo ya tlilasi = "fomo-ku lavisisa" >
  2. <div class = "ku nghenisa-ku engetela" >
  3. < muxaka wa ngheniso = "tsalwa" tlilasi = "span2 search-query" >
  4. < muxaka wa buti = "rhumela" class = "btn" > Ku lavisisa </button>
  5. </div>
  6. <div class = "ku nghenisa-ku nghenisa" >
  7. < muxaka wa buti = "rhumela" class = "btn" > Ku lavisisa </button>
  8. < muxaka wa ngheniso = "tsalwa" tlilasi = "span2 search-query" >
  9. </div>
  10. </form>

Lawula ku pima mpimo

Tirhisa titlilasi ta vukulu bya xiringaniso ku fana na .input-largekumbe ku fambisana na swingheniso swa wena eka vukulu bya tikholomu ta gridi hi ku tirhisa .span*titlilasi.

Swingheniso swa xiyimo xa xibokisana

Endla leswaku xin’wana na xin’wana <input>kumbe <textarea>elemente yi tikhoma ku fana na elemente ya levele ya block.

  1. < tlilasi ya ngheniso = "xiyimo-xibokisana-ku nghenisa" muxaka = "tsalwa" xikhomela-ndhawu = ".xiyimo-xibokisana-ku nghenisa" >

Ku ringanisa ka xiyimo xa le henhla

  1. < tlilasi ya ngheniso = "nyingiso-mini" muxaka = "tsalwa" xikhomela-ndhawu = ".nyingiso-mini" >
  2. < tlilasi ya ngheniso = "nyingiso-leswitsongo" muxaka = "tsalwa" xikhomela-ndhawu = ".nyingiso-ntsongo" >
  3. < tlilasi yo nghenisa = "xikarhi-xingheniso" muxaka = "tsalwa" xikhomela-ndhawu = ".xikarhi-xingheniso" >
  4. < tlilasi ya ngheniso = "nyingiso-nkulu" muxaka = "tsalwa" xikhomela-ndhawu = ".nyingiso-nkulu" >
  5. < tlilasi ya ngheniso = "nyingiso-xlarge" muxaka = "tsalwa" xikhomela-ndhawu = ".input-xlarge" >
  6. < tlilasi ya ngheniso = "nyingiso-xxlarge" muxaka = "tsalwa" xikhomela-ndhawu = ".nyingiso-xxlarge" >

Tinhloko ti tlakukile!Eka tivhidiyo leti taka, hi ta cinca matirhiselo ya titlilasi leti ta ku nghenisa ta xiringaniso leswaku ti fambisana ni vukulu bya hina bya swikomba-nkarhi. Xikombiso, .input-largeswi ta engetela padding na font-size ya input.

Ku ringanisiwa ka gridi

Tirhisa .span1to .span12eka swingheniso leswi fambelanaka na vukulu lebyi fanaka bya tikholomu ta gridi.

  1. < tlilasi ya ngheniso = "span1" muxaka = "tsalwa" xikhomela-ndhawu = ".span1" >
  2. < tlilasi yo nghenisa = "span2" muxaka = "tsalwa" xikhomela-ndhawu = ".span2" >
  3. < tlilasi yo nghenisa = "span3" muxaka = "tsalwa" xikhomela-ndhawu = ".span3" >
  4. <hlawula tlilasi = "span1" >
  5. ...
  6. </hlawula>
  7. <hlawula tlilasi = "span2" >
  8. ...
  9. </hlawula>
  10. <hlawula tlilasi = "span3" >
  11. ...
  12. </hlawula>

Eka swingheniso swo tala swa giridi hi layini, tirhisa .controls-rowtlilasi ya mucinci ku kuma xivandla lexi faneleke . Yi papamala swilo leswi nghenisiwaka leswaku yi collapse white-space, yi veka margins leyi faneleke, naswona yi basisa float.

  1. <div class = "swilawuri" >
  2. < tlilasi ya ngheniso = "span5" muxaka = "tsalwa" xikhomela-ndhawu = ".span5" >
  3. </div>
  4. <div class = "swilawuri swa vulawuri-layini" >
  5. < tlilasi yo nghenisa = "span4" muxaka = "tsalwa" xikhomela-ndhawu = ".span4" >
  6. < tlilasi ya ngheniso = "span1" muxaka = "tsalwa" xikhomela-ndhawu = ".span1" >
  7. </div>
  8. ...

Swilo leswi nghenisiwaka leswi nga hleriwangiki

Nyikela datha hi xivumbeko lexi nga hleriwiki handle ko tirhisa ku fungha ka xiviri ka fomo.

Van’wana va ri va nkoka laha
  1. <span class = "input-xlarge uneditable-input" > Nkoka wun'wana laha </span>

Vumba swiendlo

Hetisa fomo hi ntlawa wa swiendlo (swikomba-nkarhi). Loko swi vekiwa endzeni ka a .form-actions, swikomba-nkarhi swi ta nghena hi swoxe leswaku swi fambisana ni swilawuri swa fomo.

  1. <div class = "swiendlo swa xivumbeko" >
  2. < muxaka wa buti = "rhumela" tlilasi = "btn btn-primary" > Hlayisa ku cinca </button>
  3. < muxaka wa buti = "button" class = "btn" > Khansela </button>
  4. </div>

Tsalwa ra mpfuneto

Nseketelo wa xiyimo xa le ndzeni na xibokisana xa tsalwa ra mpfuneto leri humelelaka ku rhendzela vulawuri bya fomo.

Mpfuneto wa le ndzeni ka layini

Tsalwa ra mpfuneto wa le ndzeni ka layini
  1. <input type = "text" ><span class = "mpfuno-eka layini" > Tsalwa ra mpfuneto wa le ndzeni ka layini </span>

Block mpfuno

Xibokisana xo leha xa tsalwa ra mpfuneto lexi tshovekaka eka layini leyintshwa naswona xi nga ha anamaka ku tlula layini yin’we.
  1. <input type = "text" ><span class = "help-block" > Xibokisana xo leha xa tsalwa ra mpfuneto lexi tshovekaka eka layini leyintshwa naswona xi nga ha anama ku tlula layini yin'we. </span>

Swivumbeko swa vulawuri bya xivumbeko

Nyika mbuyelo eka vatirhisi kumbe vaendzi hi swiyimo swa masungulo swa mbuyelo eka vulawuri bya tifomo na malebvu.

Ku kongomisa ku nghenisa

Hi susa outlineswitayele swa ntolovelo eka vulawuri byin’wana bya fomo ivi hi tirhisa a box-shadowematshan’weni ya yona ya :focus.

  1. <input class = "input-xlarge" id = "focusedInput" muxaka = "tsalwa" nkoka = "Leswi swi kongomisiwile..." >

Swilo leswi nghenisiweke leswi nga tirhiki

Switayili leswi nghenisiwaka hi ku tirhisa ntirho wa xihlamusela-marito xa xiviri hi :invalid. Boxa a type, engetela requiredxihlawulekisi loko nsimu yi nga ri ya ku tihlawulela, naswona (loko swi fanerile) boxa a pattern.

Leswi a swi kumeki eka tivhidiyo ta Internet Explorer 7-9 hikwalaho ka ku pfumaleka ka nseketelo wa swihlawulekisi swa vuxisi swa CSS.

  1. < tlilasi yo nghenisa = "span3" muxaka = "imeyili" ya laveka >

Swingheniso leswi nga tirhiki

Engetela disabledxihlawulekisi eka ku nghenisa ku sivela ku nghenisa ka mutirhisi na ku hlohlotela ku languteka loku hambaneke nyana.

  1. <input class = "input-xlarge" id = "disabledInput" type = "text" xikhomela-ndhawu = "Ku nghenisa loku nga tirhiki laha..." ku pfaleriwile >

Ku tiyisisa swi vula leswaku

Bootstrap yi katsa switayele swa ku tiyisisa swihoxo, xilemukiso, info, na marungula ya ku humelela. Leswaku u tirhisa, engetela tlilasi leyi faneleke eka leswi rhendzeleke .control-group.

Swi nga ha endleka ku ri ni leswi nga famba kahle
Hi kombela u lulamisa xihoxo
Vito ra mutirhisi ri tekiwile
Woohoo!
  1. <div class = "xitsundzuxo xa ntlawa wa vulawuri" >
  2. <label class = "control-label" for = "xitsundzuxo xa ku nghenisa" > Nghenisa na xitsundzuxo </label>
  3. <div class = "swilawuri" >
  4. < muxaka wa ku nghenisa = "tsalwa" id = "Xitsundzuxo xa ku nghenisa" >
  5. <span class = "help-inline" > Ku nga ha va ku ri na leswi nga famba kahle </span>
  6. </div>
  7. </div>
  8.  
  9. <div class = "xihoxo xa ntlawa wa vulawuri" >
  10. <label class = "control-label" for = "Xihoxo xo nghenisa" > Nghenisa hi xihoxo </label>
  11. <div class = "swilawuri" >
  12. < muxaka wa ku nghenisa = "tsalwa" id = "Xihoxo xa ku nghenisa" >
  13. <span class = "help-inline" > Hi kombela u lulamisa xihoxo </span>
  14. </div>
  15. </div>
  16.  
  17. <div class = "vuxokoxoko bya ntlawa wa vulawuri" >
  18. <label class = "control-label" for = "InputInfo" > Nghenisa hi vuxokoxoko </label>
  19. <div class = "swilawuri" >
  20. < muxaka wa ku nghenisa = "tsalwa" id = "Vuxokoxoko bya ku nghenisa" >
  21. <span class = "help-inline" > Vito ra mutirhisi se ri tekiwile </span>
  22. </div>
  23. </div>
  24.  
  25. <div class = "ku humelela ka ntlawa wa vulawuri" >
  26. <label class = "control-label" for = "inputSuccess" > Nghenisa hi ku humelela </label>
  27. <div class = "swilawuri" >
  28. < muxaka wa ku nghenisa = "tsalwa" id = "Ku Humelela ka ku nghenisa" >
  29. <span class = "pfuno-eka layini" > Woohoo! </span>
  30. </div>
  31. </div>

Swikomba-nkarhi swa ntolovelo

Switayili swa swikomba-nkarhi swi nga tirhisiwa eka xin’wana ni xin’wana hi .btntlilasi leyi tirhisiweke. Kambe, hi ntolovelo u ta lava ku tirhisa leswi eka ntsena <a>na <button>swiaki swa ku hundzuluxela lokunene.

Konopa class="" Nhlamuselo
btn Standard grey button na gradient
btn btn-primary Yi nyika ntiko lowu engetelekeke wa xivono naswona yi kombisa xiendlo xo sungula eka sete ya swikomba-nkarhi
btn btn-info Ku tirhisiwa tanihi ndlela yin’wana eka switayele swa ntolovelo
btn btn-success Swi kombisa goza leri humeleleke kumbe lerinene
btn btn-warning Swi kombisa leswaku vuxiyaxiya byi fanele ku tekiwa eka goza leri
btn btn-danger Swi kombisa goza leri nga ni khombo kumbe leri nga ha vaka ro biha
btn btn-inverse Alternate dark grey button, ku nga ri ku bohiwa eka xiendlo xa semantiki kumbe ku tirhisa
btn btn-link Kandziyisa buti hi ku endla leswaku wu languteka onge i xihlanganisi loko u ri karhi u hlayisa mahanyelo ya buti

Ku fambisana ka browser yo tsemakanya

IE9 a yi crop ti background gradients eka ti rounded corners, kutani hi yi susa. Related, IE9 jankifies disabled buttonelements, yi hundzuluxela tsalwa ra grey hi nasty text-shadow leyi hi nga ta ka hi nga yi lulamisi.

Tisayizi ta swikomba-nkarhi

Xana u fanisa swikomba-nkarhi leswikulu kumbe leswitsongo? Engetela .btn-large, .btn-small, kumbe .btn-miniku kuma tisayizi leti engetelekeke.

  1. <p>
  2. <button class = "btn btn-nkulu btn-primary" muxaka = "button" > Batani leyikulu </button>
  3. <button class = "btn btn-leyikulu" muxaka = "button" > Batani leyikulu </button>
  4. </p>
  5. <p>
  6. <button class = "btn btn-primary" muxaka = "button" > Batani ya xiviri </button>
  7. <button class = "btn" type = "button" > Batani ya xiviri </button>
  8. </p>
  9. <p>
  10. <button class = "btn btn-xitsongo btn-primary" muxaka = "button" > Xigwitsirisi lexitsongo </button>
  11. <button class = "btn btn-small" muxaka = "button" > Xifaniso lexitsongo </button>
  12. </p>
  13. <p>
  14. <button class = "btn btn-mini btn-primary" muxaka = "buti" > Batani ya mini </button>
  15. < tlilasi ya buti = "btn btn-mini" muxaka = "buti" > Batani ya mini </button>
  16. </p>

Endla swikomba-ndlela swa block level—leswi hlanganisaka ku anama hinkwako ka mutswari—hi ku engetela .btn-block.

  1. <button class = "btn btn-large btn-block btn-primary" muxaka = "button" > Xibokisana xa xiyimo xa le henhla </button>
  2. <button class = "btn btn-large btn-block" muxaka = "button" > Xibokisana xa xiyimo xa xibokisana </button>

Xiyimo xa vulema

Endla leswaku swikomba-nkarhi swi languteka swi nga tikhomi hi ku swi fada endzhaku hi 50%.

Xiaki xa anchor

Engetela .disabledtlilasi eka <a>swikomba-nkarhi.

Xihlanganisi xa le henhla Hlanganisa

  1. <a href = "#" class = "btn btn-large btn-primary yi nga tirhi" > Xihlanganisi xa le henhla </a>
  2. <a href = "#" class = "btn btn-nkulu yi nga tirhi" > Xihlanganisi </a>

Tinhloko ti tlakukile!Hi tirhisa .disabledtanihi tlilasi ya vukorhokeri laha, ku fana na .activetlilasi leyi tolovelekeke, hikwalaho ku hava xirhangi lexi lavekaka. Nakambe, tlilasi leyi i ya vuxongi ntsena; u fanele ku tirhisa JavaScript ya ntolovelo ku tshikisa swihlanganisi laha.

Xiphemu xa buti

Engetela disabledxihlawulekisi eka <button>swikomba-nkarhi.

  1. <button type = "button" class = "btn btn-large btn-primary yi nga tirhi" yi tshikiwile = "yi nga tirhi" > Batani ya le henhla </button>
  2. < muxaka wa buti = "button" class = "btn btn-large" yi tshikiwile > Batani </button>

Tlilasi yin’we, tithegi to tala

Tirhisa .btntlilasi eka <a>, <button>, kumbe <input>elemente.

Hlanganisa
  1. <a class = "btn" href = "" > Xihlanganisi </a>
  2. <button class = "btn" muxaka = "rhumela" > Batani </button>
  3. < tlilasi ya ngheniso = "btn" muxaka = "button" value = "Nyingiso" >
  4. < tlilasi yo nghenisa = "btn" muxaka = "rhumela" value = "Rhumela" >

Tanihi endlelo lerinene, ringeta ku fambisana na elemente ya mongo wa wena ku tiyisisa ku fambelana ka ku hundzuluxela ka cross-browser. Loko u ri na input, tirhisa <input type="submit">eka buti ya wena.

Engetelani titlilasi eka <img>elemente ku olova ku endla swifaniso eka phurojeke yihi na yihi.

140x140 hi ndlela leyi 140x140 hi ndlela leyi 140x140 hi ndlela leyi
  1. <img src = "..." tlilasi = "img-xirhendzevutani" >
  2. <img src = "..." tlilasi = "xirhendzevutani-xirhendzevutani xa img" >
  3. <img src = "..." tlilasi = "img-polaroid" >

Tinhloko ti tlakukile! .img-roundednaswona .img-circlea ti tirhi eka IE7-8 hikwalaho ka ku pfumaleka ka border-radiusnseketelo.

Swifaniso swa swifaniso swa swifaniso

140 wa swifaniso hi xivumbeko xa sprite, leswi kumekaka hi muhlovo wa grey wo dzwihala (default) na wo basa, leswi nyikiweke hi Glyphicons .

  • xifaniso-nghilazi
  • xifaniso-vuyimbeleri
  • ku lavisisa swifaniso
  • xifaniso-mvhilopho
  • xifaniso-mbilu
  • xifaniso-nyeleti
  • xifaniso-nyeleti-empty
  • xifaniso-mutirhisi
  • xifaniso-filimi
  • xifaniso-xa-vukulu
  • xifaniso-th
  • icon-th-nxaxamelo wa swifaniso
  • xifaniso-ok
  • xifaniso-ku susa
  • icon-zoom-in xifaniso xa xirhendzevutani
  • xifaniso-ku-kumisa-ku-hunguta
  • xifaniso-xiphemu
  • xifaniso-xikombiso
  • xifaniso-xifaniso
  • xifaniso xa thyaka
  • xifaniso-kaya
  • xifaniso-fayili
  • xifaniso-nkarhi
  • xifaniso-gondzo
  • xifaniso-ku-dawuniloda-alt
  • xifaniso-ku dawuniloda
  • xifaniso-ku layicha
  • icon-bokisi ra switiviso
  • xifaniso-ku tlanga-xirhendzevutana
  • xifaniso-phindha-phindha
  • xifaniso-ku pfuxeta
  • icon-list-alt
  • xifaniso-xilotlelo
  • xifaniso-mujeko
  • swifaniso-switwi swa le tindleveni
  • xifaniso-volume-ku-tima
  • icon-volume-ehansi
  • icon-volume-ku tlakuka
  • xifaniso-qrcode
  • xifaniso-barkhodi
  • xifaniso-xifaniso
  • swifaniso swa swifaniso
  • buku ya swifaniso
  • xifaniso-xikombiso xa buku
  • xifaniso-ku gandlisa
  • xifaniso-khamera
  • xifaniso-fonto
  • xifaniso xa xirhendzevutani
  • xifaniso xa xifaniso
  • xifaniso-tsalwa-ku leha
  • xifaniso-tsalwa-ku anama
  • icon-align-ximatsi
  • icon-align-xikarhi
  • xifaniso-ku ringanisa-exineneni
  • xifaniso-ku ringanisa-ku lulamisa
  • icon-list
  • xifaniso-xiphemu-ximatsi
  • xifaniso-xiphemu-xinene
  • xifaniso-xikandza-nkarhi-vhidiyo
  • xifaniso-xifaniso
  • xifaniso-pensele
  • xifaniso-ximaki-mepe
  • xifaniso-lunghiselela
  • xifaniso-tint
  • xifaniso-hlela
  • xifaniso-xi avelana
  • xifaniso-xikambelo
  • xifaniso-ku famba
  • xifaniso-goza-ku tlhelela endzhaku
  • icon-fast-endzhaku
  • xifaniso-xi tlhelela endzhaku
  • ku tlanga hi swifaniso
  • xifaniso-ku yimanyana
  • xifaniso-xiyima
  • xifaniso-xi ya emahlweni
  • xifaniso-xi hatlisa-ku-ya emahlweni
  • icon-goza-ku ya emahlweni
  • xifaniso-ku humesa
  • xifaniso-chevron-ximatsi
  • xifaniso-chevron-xinene
  • xifaniso-ku-plus-xikombiso
  • xifaniso-ku susa-xikombiso
  • xifaniso- susa-xikombiso
  • xifaniso-ok-xikombiso
  • xifaniso-xivutiso-xikombiso
  • icon-info-xikombiso
  • xifaniso-xifaniso xa xikirini
  • xifaniso-susa-xirhendzevutana
  • xifaniso-ok-xirhendzevutana
  • xifaniso-xirhendzevutana-xirhendzevutana
  • xifaniso-museve-ximatsi
  • xifaniso-museve-exineneni
  • xifaniso-museve-ehenhla
  • xifaniso-museve-ehansi
  • xifaniso-xi avelana-alt
  • xifaniso-xi cinca-vukulu-xi tele
  • xifaniso-xi cinca-vukulu-xitsongo
  • xifaniso-ku engetela
  • xifaniso-ku susa
  • xifaniso-xifaniso xa nyeleti
  • xifaniso-xikombiso-xihlamusela-marito
  • xifaniso-nyiko
  • xifaniso-tluka
  • xifaniso-ndzilo
  • xifaniso-xivula-tihlo
  • xifaniso-tihlo-pfala
  • xifaniso-xitsundzuxo-xikombiso
  • xifaniso-xihaha-mpfhuka
  • xifaniso-khalendara
  • xifaniso xa xitshuketa
  • xifaniso-xihlamusela-marito
  • xifaniso-maginete
  • xifaniso-xiphemu xa le henhla
  • xifaniso-chevron-ehansi
  • xifaniso-retweet
  • xifaniso-xigolonyana xo xava
  • xifaniso-folda-pfala
  • xifaniso-folda-vula
  • xifaniso-xi cinca-vukulu-xi yimile
  • xifaniso-xi cinca-vukulu-xi rhendzeleka
  • xifaniso-hdd
  • xifaniso xa bullhorn
  • xifaniso-bell
  • xifaniso-xitifikheti
  • xifaniso-swikunwana-ehenhla
  • xifaniso-swikunwana-ehansi
  • xifaniso-voko-exineneni
  • xifaniso-voko-ximatsi
  • xifaniso-voko-ehenhla
  • xifaniso-voko-ehansi
  • xifaniso-xirhendzevutana-nseve-exineneni
  • xifaniso-xirhendzevutana-nseve-ximatsi
  • xifaniso-xirhendzevutana-museve-ehenhla
  • xifaniso-xirhendzevutana-museve-ehansi
  • xifaniso xa misava
  • xifaniso-xilotlelo
  • swifaniso-mintirho
  • xifaniso-xisefo
  • xifaniso-xikhwama xa swilo
  • xifaniso-xikirini lexi heleleke

Ku ringanisiwa ka Glyphicons

Glyphicons Halflings hi ntolovelo a yi kumeki mahala, kambe lunghiselelo exikarhi ka Bootstrap na vatumbuluxi va Glyphicons ri endle leswaku leswi swi koteka handle ko hakela eka wena tanihi vaendli. Tanihi ku khensa, hi kombela ku katsa xihlanganisi xo hlawula ku tlhelela eka Glyphicons nkarhi wun’wana na wun’wana loko swi tirha.


Ndlela yo tirhisa

Swifaniso hinkwaswo swi lava <i>thegi leyi nga ni tlilasi yo hlawuleka, leyi nga ni xirhangi xa icon-. Leswaku u yi tirhisa, veka khodi leyi landzelaka kwalomu ka kun’wana ni kun’wana:

  1. <i class = "ku lavisisa-xifaniso" ></i>

Kutlhela kuva na switayele leswi kumekaka swa swifaniso leswi hundzuriweke ( swo basa), leswi endliweke swi lunghekile hi tlilasi yin’we yo engetela. Hi ta sindzisa hi ku kongoma tlilasi leyi eka swiyimo swa hover na leswi tirhaka swa nav na swihlanganisi swa dropdown.

  1. <i class = "xifaniso-ku lavisisa xifaniso-xo basa" ></i>

Tinhloko ti tlakukile!Loko u tirhisa etlhelo ka tintambhu ta matsalwa, tanihi le ka swikomba-nkarhi kumbe swihlanganisi swa nav, tiyiseka leswaku u siya xivandla endzhaku ka <i>thegi leswaku u kuma xivandla lexi faneleke.


Swikombiso swa swifaniso

Ti tirhise eka swikomba-nkarhi, mintlawa ya swikomba-nkarhi swa barhi ya switirhisiwa, ku famba-famba, kumbe ku nghenisa ka fomo loku yimisiweke ka ha ri emahlweni.

Swikomba-nkarhi

Ntlawa wa swikomba-nkarhi eka barhi ya switirhisiwa ya swikomba-nkarhi
  1. <div class = "btn-barha ya switirhisiwa" >
  2. <div class = "ntlawa wa btn" >
  3. <a class = "btn" href = "#" ><i class = "xifaniso-ku ringanisa-ximatsi" ></i></a>
  4. <a class = "btn" href = "#" ><i class = "xikarhi-xiringaniso-xifaniso" ></i></a>
  5. <a class = "btn" href = "#" ><i class = "xifaniso-ku ringanisa-xinene" ></i></a>
  6. <a class = "btn" href = "#" ><i class = "xifaniso-ku ringanisa-ku lulamisa" ></i></a>
  7. </div>
  8. </div>
Dropdown eka ntlawa wa swikomba-nkarhi
  1. <div class = "ntlawa wa btn" >
  2. <a class = "btn btn-primary" href = "#" ><i class = "xifaniso-mutirhisi wa xifaniso-yo basa" ></i> Mutirhisi </a>
  3. <a class = "btn btn-primary dropdown-toggle" data-toggle = "xirhendzevutani" href = "#" ><span tlilasi = "caret" ></span></a>
  4. <ul class = "menyu leyi nga ehansi" >
  5. <li><a href = "#" ><i class = "xifaniso-pensele" ></i> Hlela </a></li>
  6. <li><a href = "#" ><i tlilasi = "xifaniso-thyaka" ></i> Susa </a></li>
  7. <li><a href = "#" ><i class = "xirhendzevutani-xa-xifaniso-ku yirisiwa" ></i> Ku yirisiwa </a></li>
  8. <li tlilasi = "xihambanisi" </li>
  9. <li><a href = "#" ><i tlilasi = "mina" ></i> Endla vufambisi </a></li>
  10. </ul>
  11. </div>
Tisayizi ta swikomba-nkarhi
  1. <a class = "btn btn-large" href = "#" ><i class = "xifaniso-nyeleti" ></i> Nyeleti </a>
  2. <a class = "btn btn-small" href = "#" ><i tlilasi = "xifaniso-nyeleti" ></i> Nyeleti </a>
  3. <a tlilasi = "btn btn-mini" href = "#" ><i tlilasi = "xifaniso-nyeleti" ></i> Nyeleti </a>

Ku famba-famba

  1. <ul tlilasi = "nav nav-nxaxamelo" >
  2. <li class = "active" ><a href = "#" ><i class = "xifaniso-xifaniso xa le kaya-xo basa" </i> Kaya </a></li>
  3. <li><a href = "#" ><i tlilasi = "buku-ya swifaniso" ></i> Layiburari </a></li>
  4. <li><a href = "#" ><i class = "xifaniso-pensele" ></i> Switirhisiwa </a></li>
  5. <li><a href = "#" ><i tlilasi = "mina" ></i> Misc </a></li>
  6. </ul>

Tifomo ta tinsimu

  1. <div class = "ntlawa-vulawuri" >
  2. <label class = "control-label" for = "Icon yo nghenisa" > Adirese ya imeyili </label>
  3. <div class = "swilawuri" >
  4. <div class = "ku nghenisa-ku nghenisa" >
  5. <span class = "xiengetelo" ><i tlilasi = "xifaniso-mvhilopho" ></i></span>
  6. < tlilasi yo nghenisa = "span2" id = "Icon yo nghenisa" muxaka = "tsalwa" >
  7. </div>
  8. </div>
  9. </div>