Nuŋlɔɖiwo kple kpɔɖeŋuwo na kplɔ̃wo ƒe atsyãwɔwɔ ƒe tiatiawɔwɔ (le woƒe zazã si bɔ le JavaScript ƒe kpeɖeŋutɔwo me ta) kple Bootstrap.
Kpɔɖeŋuwo
Le kplɔ̃wo zazã le afisiafi le ame etɔ̃lia ƒe dɔwɔnuwo abe ɣletigbalẽwo kple ŋkeke tiatiawɔlawo ene ta la, míewɔ míaƒe kplɔ̃wo be woanye tiatiawɔblɔɖe . Ðeko nàtsɔ gɔmeɖoanyi ƒe hatsotso la akpe .tableɖe ɖesiaɖe ŋu <table>, emegbe nàkekee ɖe enu kple atsyã tɔxɛwo alo míaƒe tɔtrɔ ƒe hatsotso vovovo siwo le eme.
Ne èzã kplɔ̃ ƒe dzesi vevitɔ kekeake la, alesi .table-dzi kplɔ̃wo le le Bootstrap mee nye esi. Wonyi kplɔ̃ ƒe atsyãwo katã ƒe dome le Bootstrap 4 , si fia be woawɔ kplɔ̃ ɖesiaɖe si wotsɔ ƒo ƒui ƒe atsyã le mɔ ma ke nu abe dzila ene.
<tableclass="table table-bordered"><thead><tr><thscope="col">#</th><thscope="col">First</th><thscope="col">Last</th><thscope="col">Handle</th></tr></thead><tbody><tr><thscope="row">1</th><td>Mark</td><td>Otto</td><td>@mdo</td></tr><tr><thscope="row">2</th><td>Jacob</td><td>Thornton</td><td>@fat</td></tr><tr><thscope="row">3</th><tdcolspan="2">Larry the Bird</td><td>@twitter</td></tr></tbody></table>
# .
Gbã
Nᴐ anyi didi
Alᴐ
1.
Marko
Otto ƒe nyawo
@mdo dzi
2.
Yakob
Thornton ƒe ŋkɔ
@da ami
3.
Larry Xevi la
@twitter dzi
<tableclass="table table-bordered table-dark"><thead><tr><thscope="col">#</th><thscope="col">First</th><thscope="col">Last</th><thscope="col">Handle</th></tr></thead><tbody><tr><thscope="row">1</th><td>Mark</td><td>Otto</td><td>@mdo</td></tr><tr><thscope="row">2</th><td>Jacob</td><td>Thornton</td><td>@fat</td></tr><tr><thscope="row">3</th><tdcolspan="2">Larry the Bird</td><td>@twitter</td></tr></tbody></table>
Fli siwo woate ŋu aʋuʋu
Tsɔ kpe ɖe eŋu .table-hoverbe wòana hover nɔnɔme nawɔ dɔ le kplɔ̃ ƒe fliwo dzi le a <tbody>.
# .
Gbã
Nᴐ anyi didi
Alᴐ
1.
Marko
Otto ƒe nyawo
@mdo dzi
2.
Yakob
Thornton ƒe ŋkɔ
@da ami
3.
Larry Xevi la
@twitter dzi
<tableclass="table table-hover"><thead><tr><thscope="col">#</th><thscope="col">First</th><thscope="col">Last</th><thscope="col">Handle</th></tr></thead><tbody><tr><thscope="row">1</th><td>Mark</td><td>Otto</td><td>@mdo</td></tr><tr><thscope="row">2</th><td>Jacob</td><td>Thornton</td><td>@fat</td></tr><tr><thscope="row">3</th><tdcolspan="2">Larry the Bird</td><td>@twitter</td></tr></tbody></table>
# .
Gbã
Nᴐ anyi didi
Alᴐ
1.
Marko
Otto ƒe nyawo
@mdo dzi
2.
Yakob
Thornton ƒe ŋkɔ
@da ami
3.
Larry Xevi la
@twitter dzi
<tableclass="table table-hover table-dark"><thead><tr><thscope="col">#</th><thscope="col">First</th><thscope="col">Last</th><thscope="col">Handle</th></tr></thead><tbody><tr><thscope="row">1</th><td>Mark</td><td>Otto</td><td>@mdo</td></tr><tr><thscope="row">2</th><td>Jacob</td><td>Thornton</td><td>@fat</td></tr><tr><thscope="row">3</th><tdcolspan="2">Larry the Bird</td><td>@twitter</td></tr></tbody></table>
Kplɔ̃ sue aɖe
Tsɔe kpe .table-smɖe eŋu be kplɔ̃wo nanɔ sue wu to lãmenugbagbevi siwo wotsɔ blaa nu ɖe wo nɔewo ŋu la ɖeɖe ɖe afã me.
# .
Gbã
Nᴐ anyi didi
Alᴐ
1.
Marko
Otto ƒe nyawo
@mdo dzi
2.
Yakob
Thornton ƒe ŋkɔ
@da ami
3.
Larry Xevi la
@twitter dzi
<tableclass="table table-sm"><thead><tr><thscope="col">#</th><thscope="col">First</th><thscope="col">Last</th><thscope="col">Handle</th></tr></thead><tbody><tr><thscope="row">1</th><td>Mark</td><td>Otto</td><td>@mdo</td></tr><tr><thscope="row">2</th><td>Jacob</td><td>Thornton</td><td>@fat</td></tr><tr><thscope="row">3</th><tdcolspan="2">Larry the Bird</td><td>@twitter</td></tr></tbody></table>
# .
Gbã
Nᴐ anyi didi
Alᴐ
1.
Marko
Otto ƒe nyawo
@mdo dzi
2.
Yakob
Thornton ƒe ŋkɔ
@da ami
3.
Larry Xevi la
@twitter dzi
<tableclass="table table-sm table-dark"><thead><tr><thscope="col">#</th><thscope="col">First</th><thscope="col">Last</th><thscope="col">Handle</th></tr></thead><tbody><tr><thscope="row">1</th><td>Mark</td><td>Otto</td><td>@mdo</td></tr><tr><thscope="row">2</th><td>Jacob</td><td>Thornton</td><td>@fat</td></tr><tr><thscope="row">3</th><tdcolspan="2">Larry the Bird</td><td>@twitter</td></tr></tbody></table>
Klass siwo ku ɖe nya siwo ƒo xlãe ŋu
Zã nya siwo ƒo xlãe ƒe klasswo tsɔ de ama kplɔ̃ ƒe fliwo alo lãmenugbagbevi ɖekaɖekawo.
Nusrɔ̃ƒe
Tanya ƒe tanya
Tanya ƒe tanya
Le dɔwɔm
Gaxɔ
Gaxɔ
Gᴐmedzeƒe
Gaxɔ
Gaxɔ
Gɔmedzeƒe
Gaxɔ
Gaxɔ
Sekɛndrisuku
Gaxɔ
Gaxɔ
Dzidzedzekpᴐkpᴐ
Gaxɔ
Gaxɔ
Ŋɔdzi
Gaxɔ
Gaxɔ
Kpɔnyuiedodo
Gaxɔ
Gaxɔ
Nyatakaka
Gaxɔ
Gaxɔ
Kekeli
Gaxɔ
Gaxɔ
Nyrɔ
Gaxɔ
Gaxɔ
Edziedzi kplɔ̃ ƒe megbe tɔtrɔwo mele kplɔ̃ viviti la ŋu o, ke hã, àteŋu azã nuŋɔŋlɔ alo megbe dɔwɔnuwo atsɔ aɖo atsyã mawo tɔgbe gbɔ.
# .
Tanya ƒe tanya
Tanya ƒe tanya
1.
Gaxɔ
Gaxɔ
2.
Gaxɔ
Gaxɔ
3.
Gaxɔ
Gaxɔ
4.
Gaxɔ
Gaxɔ
5.
Gaxɔ
Gaxɔ
6.
Gaxɔ
Gaxɔ
7. 7.1
Gaxɔ
Gaxɔ
8
Gaxɔ
Gaxɔ
9. 9
Gaxɔ
Gaxɔ
Gɔmesese nana mɔ̃ɖaŋununya siwo kpena ɖe ame ŋu
Amadede zazã atsɔ akpe ɖe gɔmesese ŋu koe naa nukpɔkpɔ ƒe dzesi aɖe, si womagblɔ na kpekpeɖeŋunamɔ̃wo zazãlawo o – abe screen readers ene. Kpɔ egbɔ be nyatakaka siwo wotsɔ amadedea de dzesii la dze ƒã tso emenyawo ŋutɔ me (le kpɔɖeŋu me, nuŋɔŋlɔ si wokpɔna), alo wotsɔe de eme to mɔnu bubuwo dzi, abe nuŋɔŋlɔ bubu siwo woɣla kple .sr-onlyklass la ene.
Wɔ kplɔ̃ siwo ɖoa nya ŋu to ɖesiaɖe babla .tablekple .table-responsive{-sm|-md|-lg|-xl}, na kplɔ̃a naʋuʋu le tsia dzi le vovototo ɖesiaɖe max-widthsi ade (gake metsɔe de eme o) 576px, 768px, 992px, kple 1120px, ɖe wo nɔewo yome.
De dzesii be esi wònye be browsers doa alɔ range context queries fifia o ta la , míewɔa dɔ tso seɖoƒewo min-kple max-prefixes kple viewports kple fractional widths (si ate ŋu adzɔ le nɔnɔme aɖewo me le high-dpi devices dzi, le kpɔɖeŋu me) to asixɔxɔ siwo le pɛpɛpɛ wu zazã me na tsɔtsɔ sɔ kple wo nɔewo siawo .
Nya siwo woŋlɔ ɖe agbalẽa te
A <caption>wɔa dɔ abe tanya na kplɔ̃ ene. Ekpena ɖe ezãla siwo si screen reader le ŋu be woake ɖe kplɔ̃ ŋu ahase nusi ŋu wòku ɖo gɔme eye woatso nya me ne wodi be yewoaxlẽe.
Ŋlɔ ezãlawo ƒe ŋkɔwo ɖi
# .
Gbã
Nᴐ anyi didi
Alᴐ
1.
Marko
Otto ƒe nyawo
@mdo dzi
2.
Yakob
Thornton ƒe ŋkɔ
@da ami
3.
Larry ye nye esia
Xe lae
@twitter dzi
<tableclass="table"><caption>List of users</caption><thead><tr><thscope="col">#</th><thscope="col">First</th><thscope="col">Last</th><thscope="col">Handle</th></tr></thead><tbody><tr><thscope="row">1</th><td>Mark</td><td>Otto</td><td>@mdo</td></tr><tr><thscope="row">2</th><td>Jacob</td><td>Thornton</td><td>@fat</td></tr><tr><thscope="row">3</th><td>Larry</td><td>the Bird</td><td>@twitter</td></tr></tbody></table>
Kplɔ̃ siwo ɖoa nya ŋu
Tabla siwo ɖoa nya ŋu la wɔnɛ be woate ŋu aʋuʋu kplɔ̃wo le tsia dzi bɔbɔe. Na kplɔ̃ ɖesiaɖe nawɔ dɔ le nukpɔkpɔwo katã dzi to a babla .tablekple .table-responsive. Alo, tia breakpoint si sɔ gbɔ wu si dzi nàto akpɔ kplɔ̃ si ɖoa nya ŋu vaseɖe to .table-responsive{-sm|-md|-lg|-xl}.
Tsitrenu ƒe lãɖeɖe/tsoɖeɖe
Tabla siwo ɖoa nya ŋu la zãa overflow-y: hidden, si ɖea nyatakaka ɖesiaɖe si yi ŋgɔ wu kplɔ̃a ƒe akpa siwo le ete alo etame la ɖa. Vevietɔ esia ate ŋu atso nuɖuɖu siwo le fli dzi kple ame bubuwo ƒe dɔwɔnu bubuwo ɖa.
Wowɔa nu ɖe ame ŋu ɣesiaɣi
Le breakpoint ɖesiaɖe dzi la, zãe .table-responsivena kplɔ̃ siwo le ʋuʋum le tsia dzi.
# .
Tanya ƒe tanya
Tanya ƒe tanya
Tanya ƒe tanya
Tanya ƒe tanya
Tanya ƒe tanya
Tanya ƒe tanya
Tanya ƒe tanya
Tanya ƒe tanya
Tanya ƒe tanya
1.
Gaxɔ
Gaxɔ
Gaxɔ
Gaxɔ
Gaxɔ
Gaxɔ
Gaxɔ
Gaxɔ
Gaxɔ
2.
Gaxɔ
Gaxɔ
Gaxɔ
Gaxɔ
Gaxɔ
Gaxɔ
Gaxɔ
Gaxɔ
Gaxɔ
3.
Gaxɔ
Gaxɔ
Gaxɔ
Gaxɔ
Gaxɔ
Gaxɔ
Gaxɔ
Gaxɔ
Gaxɔ
Breakpoint tɔxɛ aɖe
Zãe .table-responsive{-sm|-md|-lg|-xl}alesi wòhiãe nàtsɔ awɔ kplɔ̃ siwo ɖoa nya ŋu vaseɖe ɖiɖiɖemeƒe aɖe koŋ. Tso gbagbãƒe ma dzi va ɖo dzi la, kplɔ̃a awɔ nu abe alesi wòle ene eye maʋuʋu le tsia dzi o.