Yeqela kokuqukethwe okuyinhloko Yeqela ku-docs navigation
Check
in English

Ntanta

Guqula ukuntanta kunoma iyiphi into, kunoma iyiphi indawo yokuphumula, usebenzisa izinsiza zethu ezisabelayo ze-float.

Kuleli khasi

Uhlolojikelele

Lezi zigaba zensiza zintanta into kwesokunxele noma kwesokudla, noma vimbela ukuntanta, ngokusekelwe kusayizi wamanje wembobo yokubuka usebenzisa isici se - CSS float. !importantifakiwe ukugwema izinkinga ezithile. Lezi zisebenzisa izindawo zokunqamula imbobo yokubuka efanayo nesistimu yethu yegridi. Sicela uqaphele ukuthi izinsiza ze-float azinawo umthelela ezintweni eziguqukayo.

Isiqalo sokuntanta kubo bonke osayizi bembobo yokubuka

Indawo yokuntanta kubo bonke osayizi bembobo yokubuka

Ungantanti kubo bonke osayizi bembobo yokubuka
html
<div class="float-start">Float start on all viewport sizes</div><br>
<div class="float-end">Float end on all viewport sizes</div><br>
<div class="float-none">Don't float on all viewport sizes</div>

Iyasabela

Ukwehluka okusabelayo kukhona futhi floativelu ngalinye.

Isiqalo sokuntanta kuzimbobo zokubuka ezinosayizi ongu-SM (oncane) noma obanzi

Isiqalo sokuntanta kuzimbobo zokubuka ezinosayizi ongu-MD (omaphakathi) noma obanzi

Isiqalo sokuntanta ezimbobeni zokubuka ezinosayizi we-LG (enkulu) noma ebanzi

Isiqalo sokuntanta kuzimbobo zokubuka ezinosayizi we-XL (ezinkulu kakhulu) noma ezibanzi

html
<div class="float-sm-start">Float start on viewports sized SM (small) or wider</div><br>
<div class="float-md-start">Float start on viewports sized MD (medium) or wider</div><br>
<div class="float-lg-start">Float start on viewports sized LG (large) or wider</div><br>
<div class="float-xl-start">Float start on viewports sized XL (extra-large) or wider</div><br>

Nazi zonke izigaba zosekelo:

  • .float-start
  • .float-end
  • .float-none
  • .float-sm-start
  • .float-sm-end
  • .float-sm-none
  • .float-md-start
  • .float-md-end
  • .float-md-none
  • .float-lg-start
  • .float-lg-end
  • .float-lg-none
  • .float-xl-start
  • .float-xl-end
  • .float-xl-none
  • .float-xxl-start
  • .float-xxl-end
  • .float-xxl-none

Sass

I-Utilities API

Izinsiza ze-Float zimenyezelwa kuzinsiza zethu ze-API ku- scss/_utilities.scss. Funda indlela yokusebenzisa i-API yezinsiza.

    "float": (
      responsive: true,
      property: float,
      values: (
        start: left,
        end: right,
        none: none,
      )
    ),