Ikhonkco eloluliweyo
Yenza nayiphi na into ye-HTML okanye i-Bootstrap icofa ngoku "solula" ikhonkco elifakwe kwi-CSS.
Yongeza .stretched-link
kwikhonkco ukwenza ibhloko equlathe ukucofa ngokusebenzisa into ::after
engeyiyo. Kwiimeko ezininzi, oku kuthetha ukuba into position: relative;
enekhonkco .stretched-link
neklasi iyacofa.
Amakhadi ane position: relative
-default kwi-Bootstrap, ngoko kulo mzekelo unokongeza ngokukhuselekileyo .stretched-link
iklasi kwikhonkco ekhadini ngaphandle kolunye utshintsho lwe-HTML.
Amakhonkco amaninzi kunye neethagethi zempompo azikhuthazwa ngekhonkco ezoluliweyo. Nangona kunjalo, ezinye position
kunye z-index
nezimbo zinokunceda ukuba oku kuyimfuneko.
Ikhadi elinekhonkco eloluliweyo
Omnye umzekelo okhawulezayo wombhalo wokwakha kwisihloko sekhadi kwaye wenze isambuku somxholo wekhadi.
Yiya kwenye indawoIzinto zeMedia azinazo position: relative
ngokungagqibekanga, ngoko ke kufuneka songeze .position-relative
apha ukunqanda ikhonkco ukuba linganwebeki ngaphandle kwento yemidiya.
Imidiya enekhonkco eloluliweyo
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. I-Donec lacinia congue felis kwi-faucibus.
Yiya kwenye indawoIkholamu position: relative
ngokuzenzekelayo, ngoko ke iikholamu ezicofayo zifuna kuphela .stretched-link
iklasi kwikhonkco. Nangona kunjalo, ukolula ikhonkco phezu kwayo yonke .row
kufuna .position-static
kwikholamu .position-relative
nakumqolo.
Iikholamu ezinekhonkco ezoluliweyo
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. I-Donec lacinia congue felis kwi-faucibus.
Yiya kwenye indawoUkuchonga ibhloko equlathe
Ukuba ikhonkco eloluliweyo alibonakali lisebenza, ibhloko equlathe mhlawumbi iya kuba ngunobangela. Ezi mpawu zilandelayo ze-CSS ziya kwenza isiqalelo ibhloko equlathe:
- Ixabiso
position
elingelilostatic
- A
transform
okanyeperspective
ixabiso ngaphandlenone
- Ixabiso okanye
will-change
_transform
perspective
- Ixabiso
filter
ngaphandlenone
okanyewill-change
ixabisofilter
(lisebenza kuphela kwiFirefox)
Ikhadi elinamakhonkco ezoluliweyo
Omnye umzekelo okhawulezayo wombhalo wokwakha kwisihloko sekhadi kwaye wenze isambuku somxholo wekhadi.
Ikhonkco eyoluliweyo ayizukusebenza apha, kuba position: relative
yongezwe kwikhonkco
Olu nxulumaniso olululiweyo luya kusasazwa phezu kwe- p
tag, kuba uguqulo lusetyenziswa kuyo.