Svetuka kune zvakakosha Svetuka kuenda kudocs navigation
in English

Position

Shandisa vabatsiri ava kukurumidza kugadzirisa nzvimbo yechinhu.

Fixed top

Isa chinhu pamusoro penzvimbo yekuona, kubva kumucheto kuenda kumucheto. Iva shuwa kuti unonzwisisa ramifications yechinzvimbo chakamira mupurojekiti yako; ungangoda kuwedzera imwe CSS.

<div class="fixed-top">...</div>

Yakagadziriswa pasi

Isa chinhu pazasi penzvimbo yekuona, kubva kumucheto kuenda kumucheto. Iva shuwa kuti unonzwisisa ramifications yechinzvimbo chakamira mupurojekiti yako; ungangoda kuwedzera imwe CSS.

<div class="fixed-bottom">...</div>

Sticky top

Isa chinhu kumusoro kwenzvimbo yekuona, kubva kumucheto kusvika kumucheto, asi chete mushure mekunge wapfuura nepairi. Iyo .sticky-topyekushandisa inoshandisa CSS's position: sticky, iyo isinganyatso kutsigirwa mumabhurawuza ese.

<div class="sticky-top">...</div>

Inopindura inonamira pamusoro

Mhinduro dzakasiyana-siyana dziripowo .sticky-topdzekushandisa.

<div class="sticky-sm-top">Stick to the top on viewports sized SM (small) or wider</div>
<div class="sticky-md-top">Stick to the top on viewports sized MD (medium) or wider</div>
<div class="sticky-lg-top">Stick to the top on viewports sized LG (large) or wider</div>
<div class="sticky-xl-top">Stick to the top on viewports sized XL (extra-large) or wider</div>