Pagannayasan
Dokumentasion ken dagiti pagarigan para iti panagusar kadagiti kostumbre a bara ti panagrang-ay ti Bootstrap a mangitampok ti suporta para kadagiti naurnong a bara, dagiti animado a likudan, ken dagiti etiketa ti teksto.
Dagiti paset ti panagrang-ay ket naibangon babaen dagiti dua nga elemento ti HTML, dagiti sumagmamano a CSS tapno mangikeddeng ti kalawa, ken sumagmamano a kababalin. Saanmi nga usaren ti elemento ti HTML5<progress>
, a mangsigurado a mabalinmo nga agtumpok kadagiti bara ti panagrang-ay, mang-animate kadagitoy, ken mangikabil kadagiti etiketa ti teksto iti rabaw dagitoy.
- Usarenmi ti
.progress
as a wrapper tapno mangipakita ti max value ti progress bar. - Usarentayo ti makin -uneg
.progress-bar
a mangipakita iti panagrang-ay agingga ita. - Ti
.progress-bar
kasapulan ti inline nga estilo, klase ti utilidad, wenno kostumbre a CSS tapno mangikeddeng ti kalawada. - Ti
.progress-bar
met ket agkasapulan ti sumagmamanorole
kenaria
dagiti kababalin tapno agbalin a makastrek.
Pagtitiponem amin dayta, ket addaanka kadagiti sumaganad a pagarigan.
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div class="progress">
<div class="progress-bar" role="progressbar" style="width: 25%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div class="progress">
<div class="progress-bar" role="progressbar" style="width: 50%" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div class="progress">
<div class="progress-bar" role="progressbar" style="width: 75%" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div class="progress">
<div class="progress-bar" role="progressbar" style="width: 100%" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100"></div>
</div>
Ti Bootstrap ket mangipaay ti sumagmamano a utilidad para iti panangisaad ti kalawa . Depende kadagiti kasapulam, dagitoy ket mabalin a makatulong iti napardas a panangikonfigura ti panagrang-ay.
<div class="progress">
<div class="progress-bar w-75" role="progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100"></div>
</div>
Manginayon kadagiti etiketa kadagiti bara ti panagrang-aymo babaen ti panangikabil ti teksto iti uneg ti .progress-bar
.
<div class="progress">
<div class="progress-bar" role="progressbar" style="width: 25%;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100">25%</div>
</div>
Mangikeddengkami laeng iti height
pateg iti .progress
, isu a no baliwam dayta a pateg ti makin -uneg .progress-bar
ket automatiko a mangbalbaliw iti kadakkel a maitunos.
<div class="progress" style="height: 1px;">
<div class="progress-bar" role="progressbar" style="width: 25%;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div class="progress" style="height: 20px;">
<div class="progress-bar" role="progressbar" style="width: 25%;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
</div>
Usaren dagiti klase ti utilidad ti likudan tapno baliwan ti langa dagiti indibidual a bara ti panagrang-ay.
<div class="progress">
<div class="progress-bar bg-success" role="progressbar" style="width: 25%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div class="progress">
<div class="progress-bar bg-info" role="progressbar" style="width: 50%" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div class="progress">
<div class="progress-bar bg-warning" role="progressbar" style="width: 75%" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div class="progress">
<div class="progress-bar bg-danger" role="progressbar" style="width: 100%" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100"></div>
</div>
Iraman ti adu a progress bar iti maysa a progress component no kasapulam.
<div class="progress">
<div class="progress-bar" role="progressbar" style="width: 15%" aria-valuenow="15" aria-valuemin="0" aria-valuemax="100"></div>
<div class="progress-bar bg-success" role="progressbar" style="width: 30%" aria-valuenow="30" aria-valuemin="0" aria-valuemax="100"></div>
<div class="progress-bar bg-info" role="progressbar" style="width: 20%" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100"></div>
</div>
Inayon .progress-bar-striped
iti ania man .progress-bar
tapno maipakat ti garit babaen ti CSS a panagrang-ay iti rabaw ti kolor ti likudan ti bara ti panagrang-ay.
<div class="progress">
<div class="progress-bar progress-bar-striped" role="progressbar" style="width: 10%" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div class="progress">
<div class="progress-bar progress-bar-striped bg-success" role="progressbar" style="width: 25%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div class="progress">
<div class="progress-bar progress-bar-striped bg-info" role="progressbar" style="width: 50%" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div class="progress">
<div class="progress-bar progress-bar-striped bg-warning" role="progressbar" style="width: 75%" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div class="progress">
<div class="progress-bar progress-bar-striped bg-danger" role="progressbar" style="width: 100%" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100"></div>
</div>
Mabalin met nga animated ti striped gradient. Inayon .progress-bar-animated
iti .progress-bar
tapno mapabiag dagiti garit iti kannawan agingga iti kannigid babaen dagiti animasion ti CSS3.