Ulalo wotambasulidwa
Pangani chinthu chilichonse cha HTML kapena chigawo cha Bootstrap kuti chitheke podina "kutambasula" ulalo wokhazikika kudzera pa CSS.
Onjezani .stretched-link
ku ulalo kuti mupangitse kuti block yake idulidwe kudzera pa ::after
chinthu chabodza. Nthawi zambiri, izi zikutanthauza kuti chinthu position: relative;
chomwe chili ndi ulalo ndi .stretched-link
kalasi chimatha kudina.
Makhadi ali position: relative
mu Bootstrap mwachisawawa, kotero pamenepa mutha kuwonjezera .stretched-link
kalasi mosamala pa ulalo wa khadi popanda kusintha kwina kwa HTML.
Maulalo angapo ndi ma tap target savomerezedwa ndi maulalo otambasuka. Komabe, zina position
ndi z-index
masitayelo zingathandize ngati pakufunika kutero.
Khadi yokhala ndi ulalo wotambasulidwa
Malemba ena achitsanzo ofulumira kuti amange pamutu wamakhadi ndikupanga zambiri zamakhadiwo.
Pitani kwinakwakeZinthu zapa media sizikhala nazo position: relative
mwachisawawa, chifukwa chake tiyenera kuwonjezera .position-relative
apa kuti ulalo usatambasuke kunja kwa chinthu cha media.
Media yokhala ndi ulalo wotambasulidwa
Cras sit amet nibh libero, mu gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum mu vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis mu faucibus.
Pitani kwinakwakeMizati imakhala position: relative
yokhazikika, kotero kuti magawo omwe mungadulidwe amangofunika .stretched-link
kalasi pa ulalo. Komabe, kutambasula ulalo pamwamba pa zonse .row
kumafuna .position-static
pamzere ndi .position-relative
pamzere.
Mizati yokhala ndi ulalo wotambasuka
Cras sit amet nibh libero, mu gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum mu vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis mu faucibus.
Pitani kwinakwakeKuzindikira zomwe zili ndi block
Ngati ulalo wotambasulidwa sukuwoneka kuti ukugwira ntchito, chotchinga chomwe chilipo mwina ndicho chifukwa chake. Zinthu zotsatirazi za CSS zipangitsa chinthu kukhala chotchinga:
- Mtengo
position
wina osatistatic
- A
transform
kapenaperspective
mtengo wina kuposanone
- Mtengo
will-change
watransform
kapenaperspective
- Mtengo
filter
wina osatinone
kapenawill-change
mtengo wakefilter
(umagwira ntchito pa Firefox yokha)
Khadi yokhala ndi maulalo otambasuka
Malemba ena achitsanzo ofulumira kuti amange pamutu wamakhadi ndikupanga zambiri zamakhadiwo.
Ulalo wotambasulidwa sugwira ntchito pano, chifukwa position: relative
wawonjezedwa ku ulalo
Ulalo wotambasulidwawu udzangofalikira pa p
-tag, chifukwa kusintha kumagwiritsidwa ntchito.