Tīpoka ki te ihirangi matua Tīpoka ki te whakaterenga tuhinga

Takahuri maanu i runga i tetahi huānga, puta noa i tetahi waahi pakaru, ma te whakamahi i a maatau taputapu tere tere.

I tenei wharangi

Tirohanga

Ko enei karaehe whaipainga ka rewa tetahi huānga ki te taha maui, ki te taha matau ranei, ki te whakakore ranei i te maanu, i runga i te rahi o te tauranga tirohanga o naianei ma te whakamahi i te taonga CSSfloat . !importantkua whakauruhia ki te karo i nga take motuhake. Ka whakamahi enei i nga waahi wehenga tirohanga rite ki ta maatau punaha matiti. Kia mohio koe kaore he painga o nga taputapu rewa ki runga i nga taonga ngawari.

Timata maru i runga i nga rahi tauranga tirohanga katoa

Manu te mutunga ki nga rahi tauranga tirohanga katoa

Kaua e rewa i runga i nga rahi tauranga tirohanga katoa
<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>

Whakautu

He rereke ano te whakautu mo ia floatuara.

Ka tiimata ki runga i nga tauranga tirohanga i te rahi SM (iti) whanui ranei

Ka tiimata ki runga i nga tauranga tirohanga MD (waenganui), whanui ake ranei

Ka tiimata ki runga i nga tauranga tirohanga LG (nui) whanui ranei

Ka tiimata ki runga i nga tauranga tirohanga te rahi XL (nui-nui), whanui ake ranei

<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>

Anei nga akomanga tautoko katoa:

  • .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

API taputapu

Ko nga taputapu maanu e kiia ana i roto i o maatau taputapu API i roto i scss/_utilities.scss. Akohia me pehea te whakamahi i nga taputapu API.

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