Lien stretché
Aw bɛ HTML yɔrɔ walima Bootstrap yɔrɔ o yɔrɔ kɛ fɛn ye min bɛ se ka digi ni “stretching” ye nested link (yɔrɔ) dɔ la CSS fɛ.
A bɛ Fàra .stretched-link
'jyɛn-yɔrɔ dɔ kan walasa k'a kɔnɔfɛnw bloki Kɛ fɛn ye min bɛ Se ka digi ::after
pseudo element fɛ. A ka c’a la, o kɔrɔ ye ko fɛn min bɛ ni position: relative;
min bɛ ni jὲɲɔgɔnya ye ni .stretched-link
kalasi ye, o bɛ Se ka digi.
Kartiw position: relative
bɛ Bootstrap kɔnɔ ka daminɛ, o la nin ko in na i bɛ se ka .stretched-link
kalasi fara ɲɔgɔn kan lafiya la karti kɔnɔ k’a sɔrɔ HTML caman ma Changé.
Jɛɲɔgɔnya caman ani tap targets tɛ ladilikan sɔrɔ ni jɛgɛnsira sɔgɔlenw ye. Nka, dɔw position
ni z-index
cogoyaw bɛ se ka dɛmɛ don ni o kɛra wajibi ye.
Karti ni lien stretché
Misali teliya dɔw sɛbɛn walasa ka jɔ karti tɔgɔ kan ani ka karti kɔnɔkow fanba kɛ.
Taga yɔrɔ dɔ laMedia fɛnw tɛ position: relative
ni default ye, o la an ka kan ka .position-relative
yan Fàra a kan walasa ka jὲɲɔgɔnya bali ka 'sèn Bɔ media object kɔ fɛ.
Media ni stretched link ye
Cras sigilen amet nibh libero, ka gravida nulla. Nulla vel metus scelerisque ye fura ye min bɛ wele ko ante sollicitudin. Cras purus odio, vestibulum min bɛ vulputate kɔnɔ, o ye tempus viverra turpis ye. Fusce condimentum nunc ac nisi jiribolo min bɛ wele ko vulputate fringilla. Donec lacinia congue felis bɛ sɔrɔ faucibus kɔnɔ.
Taga yɔrɔ dɔ laKolonw bɛ position: relative
Kɛ ‘sèn fɛ, o la kulu minnu bɛ Se ka digi, olu bɛ kalasi dɔrɔn de wajibiya .stretched-link
jɛgɛnsira dɔ kan. Nka, ka jɛgɛnsira dɔ Lamaga a bɛɛ kan, .row
o bɛ wajibiya .position-static
Kɛ kulu kan ani .position-relative
jiribolo kan.
Kolonw ni jɛgɛnsira sɔgɔlen
Cras sigilen amet nibh libero, ka gravida nulla. Nulla vel metus scelerisque ye fura ye min bɛ wele ko ante sollicitudin. Cras purus odio, vestibulum min bɛ vulputate kɔnɔ, o ye tempus viverra turpis ye. Fusce condimentum nunc ac nisi jiribolo min bɛ wele ko vulputate fringilla. Donec lacinia congue felis bɛ sɔrɔ faucibus kɔnɔ.
Taga yɔrɔ dɔ laBloki min bɛ a kɔnɔ, o dɔnni
Ni a bɛ i n’a fɔ jɛgɛnsira min bɛ jɛgɛn, o tɛ baara kɛ, n’a sɔrɔla bloki min bɛ a kɔnɔ, o de bɛna kɛ sababu ye. Nin CSS nafolomafɛnw bɛna kɛ sababu ye ka fɛn dɔ kɛ bloki kɔnɔfɛnw ye:
- Nafa
position
wɛrɛ min tɛstatic
- A
transform
walimaperspective
nafa wɛrɛ min tɛnone
- A
will-change
nafa ka bontransform
walimaperspective
- Nafa
filter
wɛrɛ min tɛnone
walimawill-change
nafa min bɛfilter
(a bɛ baara kɛ Firefox dɔrɔn de kan)
Karti min bɛ ni jɛgɛnsira sɔgɔlenw ye
Misali teliya dɔw sɛbɛn walasa ka jɔ karti tɔgɔ kan ani ka karti kɔnɔkow fanba kɛ.
Stretched link tɛna baara kɛ yan, bawo position: relative
a bɛ fara link kan
O jɛgɛnsira in bɛna jɛnsɛn dɔrɔn p
-tag kan, bawo fɛn caman tigɛli bɛ kɛ a kan.