Swiphemu swo tala leswi tirhisiwaka nakambe swi akiwile eka Bootstrap ku nyika ku famba-famba, switsundzuxo, ku popovers, na swin’wana swo tala.
Ultra simplistic and minimally styled pagination leyi hlohloteriweke hi Rdio, leyinene eka ti-app na mimbuyelo ya ku lavisisa. Xibokisana lexikulu xa tika ku xi hundza, xi olova ku xi ringanisiwa naswona xi nyika tindhawu letikulu to tsindziyela.
Swihlanganisi swi nga cinciwa naswona swi tirha eka swiyimo swo hlayanyana hi tlilasi leyi faneleke. .disabled
eka swihlanganisi leswi nga tsindziyelangiki ni .active
swa tluka ra sweswi.
Engetela yin’wana ya titlilasi timbirhi leti nga hlawuriwa ku cinca ku ringanana ka swihlanganisi swa mapheji: .pagination-centered
na .pagination-right
.
Xiphemu xa mapheji xa ntolovelo xa cinca-cinca naswona xi tirha hi ku hambana ko hlayanyana.
Ku phutseriwe hi <div>
, ku veka matluka i ntsena <ul>
.
- <div class = "xiphemu xa mapheji" >
- <ul>
- <li><a href = "#" > Xifaniso xa le mahlweni </a></li>
- <li tlilasi = "ntirho" >
- <a href = "#" > Xihlamusela-marito xa 1 </a>
- </li>
- <li><a href = "#" > 2 Xihlamusela -marito xa Xitsonga
- <li><a href = "#" > 3 Xihlamusela -marito xa Xitsonga
- <li><a href = "#" > 4 Xihlamusela -marito xa Xitsonga
- <li><a href = "#" > Lexi landzelaka </a></li>
- </ul>
- </div>
Xiphemu xa pager i sete ya swihlanganisi swa ku tirhisiwa ko olova ka mapheji hi ku fungha ku fungha na switayele swo olova swinene. Swi kahle eka tisayiti to olova to fana na ti-blog kumbe timagazini.
Swihlanganisi swa Pager swi tlhela swi tirhisa .disabled
tlilasi yo angarhela ku suka eka pheji.
Hi ku tiyimisela, pager yi hlanganisa swihlanganisi.
- <ul tlilasi = "pager" >
- <li>
- <a href = "#" > Lexi hundzeke </a>
- </li>
- <li>
- <a href = "#" > Lexi landzelaka </a>
- </li>
- </ul>
Handle ka sweswo, u nga ha ringanisa xihlanganisi xin’wana ni xin’wana ematlhelo:
- <ul tlilasi = "pager" >
- <li class = "ya khale" >
- <a href = "#" > Xihlamusela-marito xa Xitsonga; Vakulu </a>
- </li>
- <li class = "leyi landzelaka" >
- <a href = "#" > Swintshwa → </a>
- </li>
- </ul>
Tilebhele | Ku fungha swilo |
---|---|
Ku tlula | <span class="label">Default</span> |
Humelela | <span class="label label-success">Success</span> |
Xilemukisi | <span class="label label-warning">Warning</span> |
Nkoka | <span class="label label-important">Important</span> |
Info | <span class="label label-info">Info</span> |
Ku hundzuluxela | <span class="label label-inverse">Inverse</span> |
Tibeji i swiphemu leswitsongo, swo olova swo kombisa xikombiso kumbe nhlayo ya muxaka wo karhi. Ti tala ku kumeka eka tiklayenti ta email to fana na Mail.app kumbe eka ti-app ta tiselfoni ta switiviso swa push.
Vito | Xikombiso | Ku fungha swilo |
---|---|---|
Ku tlula | 1. | <span class="badge">1</span> |
Humelela | 2. | <span class="badge badge-success">2</span> |
Xilemukisi | 4. | <span class="badge badge-warning">4</span> |
Nkoka | 6. | <span class="badge badge-important">6</span> |
Info | 8. | <span class="badge badge-info">8</span> |
Ku hundzuluxela | 10. | <span class="badge badge-inverse">10</span> |
Bootstrap yi nyika xiphemu xo olova, xo olova lexi vuriwaka yuniti ya nhenha ku kombisa leswi nga endzeni eka sayiti ya wena. Yi tirha kahle eka tisayiti to xavisa na leti nga ni swilo swo tala.
Pfuxeta leswi nga endzeni ka wena hi div
like so:
- <div class = "nhenha-yuniti" >
- <h1> Nhlokomhaka </h1>
- <p> Nxaxamelo wa swifaniso </p>
- <p>
- <a tlilasi = "btn btn-btn-nkulu ya le henhla" >
- Dyondza swo tala
- </a>
- </p>
- </div>
Leyi i yuniti yo olova ya nhenha, xiphemu xo olova xa xitayili xa jumbotron xo vitana nyingiso lowu engetelekeke eka swilo leswi kombisiweke kumbe rungula.
Xikhegelo xo olova xa h1
ku veka swiphemu leswi faneleke swa nhundzu eka tluka. Yi nga tirhisa h1
's default small
, element xikan'we na swiphemu swin'wana swo tala (na switayele swo engetela).
- <div class = "nhlokomhaka ya pheji" >
- <h1> Xikombiso xa nhlokomhaka ya tluka </h1>
- </div>
Hi ku tiyimisela, swifaniso leswitsongo swa Bootstrap swi endleriwe ku kombisa swifaniso leswi hlanganisiweke hi ku fungha lokutsongo loku lavekaka.
Hi ku markup nyana yo engetela, swa koteka ku engetela muxaka wihi na wihi wa swilo swa HTML ku fana na tinhlokomhaka, tindzimana, kumbe swikomba-nkarhi eka swifaniso leswitsongo.
Swifaniso leswitsongo (khale .media-grid
ku fikela eka v1.4) swi kahle swinene eka tigridi ta swifaniso kumbe tivhidiyo, mimbuyelo ya ku lavisisa swifaniso, swilo swa vuxavisi, tiphotifoliyo ni swin’wana swo tala. Swi nga va swihlanganisi kumbe swilo leswi nga cinciki.
Ku fungha swifaniso leswitsongo swa olova—a leyi ul
nga ni nhlayo yihi na yihi ya li
swiaki hi swona ntsena leswi lavekaka. Yitlhela yiva super flexible, yi pfumelela muxaka wihi na wihi wa swilo leswingana ntsena markup nyana ku phutsela swilo swa wena.
Xo hetelela, xiphemu xa swifaniso leswitsongo xi tirhisa titlilasi ta sisiteme ya gridi leti nga kona—ku fana na .span2
kumbe .span3
—ku lawula swipimelo swa swifaniso leswitsongo.
Hilaha swi boxiweke hakona eku sunguleni, xikombiso lexi lavekaka xa swifaniso leswitsongo xa olova naswona xi kongomile. Hi lowu ku languta eka xiyimiso xa xiviri xa swifaniso leswi hlanganisiweke :
- <ul class = "swifaniso leswitsongo" >
- <li tlilasi = "span3" >
- <a href = "#" class = "xifaniso lexitsongo" >
- <img src = "Xihlamusela-marito xa Xitsonga/260x180" alt = "" >
- </a>
- </li>
- ...
- </ul>
Eka nhundzu ya HTML ya ntolovelo eka swifaniso leswitsongo, ku fungha ku cinca katsongo. Ku pfumelela block level content kun’wana na kun’wana, hi cincana the <a>
for a <div>
like so:
- <ul class = "swifaniso leswitsongo" >
- <li tlilasi = "span3" >
- <div class = "xifaniso lexitsongo" >
- <img src = "Xihlamusela-marito xa Xitsonga/260x180" alt = "" >
- <h5> Lebula ya xifaniso lexitsongo </h5>
- <p> Xifaniso xa xifaniso lexitsongo kwala... </p>
- </div>
- </li>
- ...
- </ul>
Hi Bootstrap 2, hi olovisile tlilasi ya le hansi: .alert
ematshan’wini ya .alert-message
. Hi tlhele hi hunguta ku fungha lokutsongo loku lavekaka—hayi <p>
leyi lavekaka hi ku tiyimisela, ku laveka ntsena ka le handle <div>
.
Ku kuma xiphemu lexi tiyeke swinene lexi nga na khodi yitsongo, hi susile ku languteka loku hambanisaka ka switsundzuxo swa swibokisana, marungula lama taka na ku pfariwa ko tala na hi ntolovelo matsalwa yo tala. Tlilasi na yona yi cincile yi va .alert-block
.
Bootstrap yi ta na plugin ya kahle ya jQuery leyi seketelaka marungula ya xitsundzuxo, leswi endlaka leswaku ku ma hlongola swi hatlisa no olova.
Pfuxeta rungula ra wena na xifaniso xo pfala lexi nga hlawuriwa eka div hi tlilasi yo olova.
- <div class = "xitsundzuxo" >
- <button class = "pfala" data-dismiss = "xitsundzuxo" > × </button>
- <strong> Xitsundzuxo! </strong> Best check yo self, a wu languteki kahle ngopfu.
- </div>
Tinhloko ta le henhla! Switirhisiwa swa iOS swi lava an href="#"
for the dismissal of alerts. Tiyisisa leswaku u yi katsa na xihlawulekisi xa data xa swifaniso swa anchor close. Hi ndlela yin’wana, u nga tirhisa <button>
elemente leyi nga na xihlawulekisi xa data, lexi hi hlawuleke ku xi endla eka tidokisi ta hina. Loko u tirhisa <button>
, u fanele ku katsa type="button"
kutani tifomo ta wena ti nga ha rhumeli.
Hi ku olova ku andlala rungula ra xitsundzuxo xa ntolovelo hi titlilasi timbirhi to hlawula: .alert-block
ku kuma vulawuri byo tala bya padding na matsalwa na .alert-heading
nhlokomhaka leyi fambelanaka.
Best check yo self, a wu languteki kahle ngopfu. Nulla vitae elit libero, ku nga pharetra augue. Praesent commodo cursus magna, xihlala xa xirhendzevutani xa xirhendzevutani xa xirhendzevutani xa xirhendzevutani.
- <div class = "xitsundzuxo-xitiviso xa xitsundzuxo" >
- <a class = "pfala" data-dismiss = "xitsundzuxo" href = "#" > × </a>
- <h4 class = "xitsundzuxo-nhlokomhaka" > Xitsundzuxo! </h4>
- Best check yo self, a wu...
- </div>
- <div class = "xitsundzuxo xa xitsundzuxo-xihoxo" >
- ...
- </div>
- <div class = "xitsundzuxo-ku humelela" >
- ...
- </div>
- <div class = "xitsundzuxo-xitsundzuxo-xitiviso" >
- ...
- </div>
Bar ya nhluvuko ya ntolovelo leyi nga ni xirhendzevutana lexi yimisiweke.
- <div class = "nhluvuko" >
- <div tlilasi = "bar".
- xitayili = " ku anama : 60 %; " ></div>
- </div>
Tirhisa gradient ku endla striped effect (ku hava IE).
- <div class = "nhluvuko wa nhluvuko-striped" >
- <div tlilasi = "bar".
- xitayili = " ku anama : 20 %; " ></div>
- </div>
U teka xikombiso xa mitila a xi hanya (ku hava IE).
- <div class = "nhluvuko wa nhluvuko-striped."
- ku tirha" >
- <div tlilasi = "bar".
- xitayili = " ku anama : 40 %; " ></div>
- </div>
Tibara ta nhluvuko ti tirhisa tin’wana ta titlilasi ta buti leti fanaka ni ta xitsundzuxo eka switayele leswi nga cincekiki.
Ku fana ni mihlovo leyi tiyeke, hi ni swiphepherhele swo hambana-hambana swa nhluvuko leswi nga ni mitila.
Tibara ta nhluvuko ti tirhisa ku cinca ka CSS3, kutani loko u lulamisa hi ndlela leyi cinca-cincaka ku anama hi ku tirhisa javascript, yi ta cinca mpimo hi ku olova.
Loko u tirhisa .active
tlilasi, .progress-striped
tibara ta wena ta nhluvuko ti ta endla leswaku swirhendzevutana swi hanya hi ximatsi ku ya exineneni.
Tibara ta nhluvuko ti tirhisa ti-gradient ta CSS3, ku cinca, na swifaniso leswi hanyaka ku fikelela switandzhaku swa swona hinkwaswo. Switirhisiwa leswi a swi seketeriwi eka IE7-9 kumbe vuhundzuluxeri bya khale bya Firefox.
Opera na IE a swi seketeli swifaniso leswi hanyaka hi nkarhi lowu.
Tirhisa xihlovo tani hi mbuyelo wo olova eka elemente ku yi nyika mbuyelo wa inset.
- <div tlilasi = "kahle" >
- ...
- </div>
Tirhisa xifaniso xa ku pfala xa generic ku bakanya swilo swo fana na ti modals na switsundzuxo.
- <button class = "pfala" > &minkarhi; </button>
Switirhisiwa swa iOS swi lava href="#" ya swiendlakalo swa ku tsindziyela loko u tsakela ku tirhisa anchor.
- <a tlilasi = "pfala" href = "#" > &minkarhi; </a>