SourceKufambira mberi
Zvinyorwa uye mienzaniso yekushandisa Bootstrap tsika kufambira mberi mabara ane tsigiro yemabhawa akaturikidzana, animated background, uye mavara mavara.
Zvikamu zvekufambira mberi zvakavakwa nemhando mbiri dzeHTML, imwe CSS yekuseta hupamhi, uye mashoma hunhu. Isu hatishandise iyo HTML5 <progress>
element , kuve nechokwadi kuti unokwanisa kurongedza mabara ekufambira mberi, kuararamisa, uye kuisa mavara mavara pamusoro pawo.
- Isu tinoshandisa iyo
.progress
seyakaputira kuratidza iyo max kukosha kweiyo kufambira mberi bar.
- Isu tinoshandisa mukati
.progress-bar
kuratidza kufambira mberi kusvika ikozvino.
- Izvo
.progress-bar
zvinoda inline maitiro, utility kirasi, kana tsika CSS kuseta hupamhi hwavo.
- Iyo
.progress-bar
inodawo zvimwe role
uye aria
hunhu kuita kuti iwanike.
Isa izvo zvose pamwe chete, uye une mienzaniso inotevera.
Bootstrap inopa mashoma ezvishandiso pakuseta hupamhi . Zvichienderana nezvaunoda, izvi zvinogona kubatsira nekukurumidza kugadzirisa kufambira mberi.
Wedzera mavara kumabhawa ako ekufambira mberi nekuisa mavara mukati me .progress-bar
.
Isu tinongoisa height
kukosha pane iyo .progress
, saka kana iwe ukachinja kukosha ikoko, yemukati .progress-bar
inongozvikurira zvinoenderana.
Shandisa makirasi ekushandisa kumashure kuti uchinje kutaridzika kwemabhawa ekufambira mberi.
Sanganisira mabhawa akawanda ekufambira mberi mune chikamu chekufambira mberi kana uchida.
Wedzera .progress-bar-striped
kune chero .progress-bar
kuti uise mutsetse kuburikidza neCSS gradient pamusoro peiyo bhari yekufambira mberi kwemuvara.
Iyo mitsetse gradient inogona zvakare kuve nehupenyu. Wedzera .progress-bar-animated
kune .progress-bar
kumhanyisa mitsetse kurudyi kuruboshwe kuburikidza neCSS3 animations.