Onetsani momwe gawo kapena tsamba limakwezera ma spinner a Bootstrap, omangidwa kwathunthu ndi HTML, CSS, ndipo palibe JavaScript.
Za
Bootstrap "spinners" atha kugwiritsidwa ntchito kuwonetsa momwe mukukweza mumapulojekiti anu. Amamangidwa ndi HTML ndi CSS okha, kutanthauza kuti simufunika JavaScript kuti mupange. Mudzafunika JavaScript yachizolowezi kuti musinthe mawonekedwe awo. Maonekedwe awo, kamvekedwe, ndi kukula kwake zitha kusinthidwa mosavuta ndi makalasi athu odabwitsa.
Zolinga zofikika, chojambulira chilichonse apa chikuphatikiza role="status"ndi nested <span class="sr-only">Loading...</span>.
Border spinner
Gwiritsani ntchito ma spinner amalire kuti mukhale chizindikiro chotsitsa chopepuka.
Tikutsegula...
Mitundu
Border spinner imagwiritsa currentColorntchito zake border-color, kutanthauza kuti mutha kusintha mtunduwo ndi zida zamitundu yamalemba . Mutha kugwiritsa ntchito chilichonse mwazinthu zathu zamtundu wamtundu pa spinner wamba.
Tikutsegula...
Tikutsegula...
Tikutsegula...
Tikutsegula...
Tikutsegula...
Tikutsegula...
Tikutsegula...
Tikutsegula...
Bwanji osagwiritsa ntchito border-colorzofunikira? Iliyonse yamalire spinner imatchula transparentmalire a mbali imodzi, kotero .border-{color}zothandizira zitha kupitilira pamenepo.
Kukula kwa spinner
Ngati simukonda spinner ya malire, sinthani ku kukula kwa spinner. Ngakhale sichizungulira mwaukadaulo, imakula mobwerezabwereza!
Tikutsegula...
Apanso, spinner iyi imapangidwa ndi currentColor, kotero mutha kusintha mawonekedwe ake mosavuta ndi zida zamitundu yamalemba . Apa ili mu buluu, pamodzi ndi mitundu yothandizidwa.
Tikutsegula...
Tikutsegula...
Tikutsegula...
Tikutsegula...
Tikutsegula...
Tikutsegula...
Tikutsegula...
Tikutsegula...
Kuyanjanitsa
Spinners mu Bootstrap amamangidwa ndi rems, currentColor, ndi display: inline-flex. Izi zikutanthauza kuti akhoza kusinthidwanso mosavuta, kusinthidwanso, ndikuyanjanitsidwa mwachangu.