Nā papaʻaina
ʻO nā palapala a me nā laʻana no ke koho ʻana i nā papa (e hāʻawi ʻia i kā lākou hoʻohana maʻamau i nā plugins JavaScript) me Bootstrap.
Ma muli o ka hoʻohana nui ʻana o nā papa ma waena o nā widget ʻaoʻao ʻekolu e like me nā kalena a me nā mea koho lā, ua hoʻolālā mākou i kā mākou papa e koho i loko . E hoʻohui wale i ka papa kumu .table
i kekahi <table>
, a laila e hoʻonui me nā ʻano maʻamau a i ʻole kā mākou papa hoʻololi like ʻole.
Ke hoʻohana nei i ka hōʻailona papa maʻamau, eia ke ʻano o ka .table
nānā ʻana o nā papa ma Bootstrap. Ua hoʻoili ʻia nā ʻano papa ʻaina a pau ma Bootstrap 4 , ʻo ia hoʻi, e hoʻopaʻa ʻia nā papa pūnana ma ke ʻano like me ka makua.
# | Ka mua | hope loa | Kalima |
---|---|---|---|
1 | Maka | Otto | @mdo |
2 | ʻO Iakoba | Thornton | @momona |
3 | Larry | ka Manu |
Hiki iā ʻoe ke hoʻohuli i nā waihoʻoluʻu—me nā kikokikona māmā ma nā ʻaoʻao ʻeleʻele—me .table-dark
.
# | Ka mua | hope loa | Kalima |
---|---|---|---|
1 | Maka | Otto | @mdo |
2 | ʻO Iakoba | Thornton | @momona |
3 | Larry | ka Manu |
E like me nā papa ʻaina a me nā papa ʻeleʻele, e hoʻohana i nā papa hoʻololi a i .thead-light
ʻole .thead-dark
e <thead>
hoʻomāmā a ʻeleʻele paha.
# | Ka mua | hope loa | Kalima |
---|---|---|---|
1 | Maka | Otto | @mdo |
2 | ʻO Iakoba | Thornton | @momona |
3 | Larry | ka Manu |
# | Ka mua | hope loa | Kalima |
---|---|---|---|
1 | Maka | Otto | @mdo |
2 | ʻO Iakoba | Thornton | @momona |
3 | Larry | ka Manu |
E hoʻohana .table-striped
e hoʻohui i ka zebra-striping i kēlā me kēia lālani pākaukau i loko o ka <tbody>
.
# | Ka mua | hope loa | Kalima |
---|---|---|---|
1 | Maka | Otto | @mdo |
2 | ʻO Iakoba | Thornton | @momona |
3 | Larry | ka Manu |
# | Ka mua | hope loa | Kalima |
---|---|---|---|
1 | Maka | Otto | @mdo |
2 | ʻO Iakoba | Thornton | @momona |
3 | Larry | ka Manu |
Hoʻohui .table-bordered
no nā palena ma nā ʻaoʻao a pau o ka pākaukau a me nā cell.
# | Ka mua | hope loa | Kalima |
---|---|---|---|
1 | Maka | Otto | @mdo |
2 | ʻO Iakoba | Thornton | @momona |
3 | Larry ka Manu |
# | Ka mua | hope loa | Kalima |
---|---|---|---|
1 | Maka | Otto | @mdo |
2 | ʻO Iakoba | Thornton | @momona |
3 | Larry ka Manu |
Hoʻohui .table-borderless
no kahi papa ʻaina ʻole palena ʻole.
# | Ka mua | hope loa | Kalima |
---|---|---|---|
1 | Maka | Otto | @mdo |
2 | ʻO Iakoba | Thornton | @momona |
3 | Larry ka Manu |
.table-borderless
hiki ke hoʻohana ʻia ma nā papa ʻeleʻele.
# | Ka mua | hope loa | Kalima |
---|---|---|---|
1 | Maka | Otto | @mdo |
2 | ʻO Iakoba | Thornton | @momona |
3 | Larry ka Manu |
Hoʻohui .table-hover
i mea e hiki ai i kahi kūlana hover ma nā lālani pākaukau i loko o kahi <tbody>
.
# | Ka mua | hope loa | Kalima |
---|---|---|---|
1 | Maka | Otto | @mdo |
2 | ʻO Iakoba | Thornton | @momona |
3 | Larry ka Manu |
# | Ka mua | hope loa | Kalima |
---|---|---|---|
1 | Maka | Otto | @mdo |
2 | ʻO Iakoba | Thornton | @momona |
3 | Larry ka Manu |
Hoʻohui .table-sm
i mea e ʻoi aku ka paʻakikī o nā papa ma o ka ʻoki ʻana i ka padding cell i ka hapalua.
# | Ka mua | hope loa | Kalima |
---|---|---|---|
1 | Maka | Otto | @mdo |
2 | ʻO Iakoba | Thornton | @momona |
3 | Larry ka Manu |
# | Ka mua | hope loa | Kalima |
---|---|---|---|
1 | Maka | Otto | @mdo |
2 | ʻO Iakoba | Thornton | @momona |
3 | Larry ka Manu |
E hoʻohana i nā papa pōʻaiapili e kala i nā lālani papa ʻaina a i ʻole nā pūnaewele pākahi.
Papa | Poʻomanaʻo | Poʻomanaʻo |
---|---|---|
ʻeleu | Kelepona | Kelepona |
Default | Kelepona | Kelepona |
Papahana | Kelepona | Kelepona |
lua | Kelepona | Kelepona |
Pōmaikaʻi | Kelepona | Kelepona |
ʻO ka pōʻino | Kelepona | Kelepona |
ʻŌlelo aʻo | Kelepona | Kelepona |
ʻIke | Kelepona | Kelepona |
Māmā | Kelepona | Kelepona |
Poʻeleʻele | Kelepona | Kelepona |
ʻAʻole loaʻa nā ʻano ʻokoʻa o ka papaʻaina maʻamau me ka papaʻeleʻele, akā naʻe, hiki iā ʻoe ke hoʻohana i ka kikokikona a i ʻole nā mea pono hope no ka loaʻa ʻana o nā ʻano like.
# | Poʻomanaʻo | Poʻomanaʻo |
---|---|---|
1 | Kelepona | Kelepona |
2 | Kelepona | Kelepona |
3 | Kelepona | Kelepona |
4 | Kelepona | Kelepona |
5 | Kelepona | Kelepona |
6 | Kelepona | Kelepona |
7 | Kelepona | Kelepona |
8 | Kelepona | Kelepona |
9 | Kelepona | Kelepona |
Ka lawe ʻana i ka manaʻo i nā ʻenehana kōkua
ʻO ka hoʻohana ʻana i ke kala e hoʻohui i ka manaʻo e hāʻawi wale i kahi hōʻailona ʻike, ʻaʻole e hāʻawi ʻia i nā mea hoʻohana i nā ʻenehana kōkua - e like me nā mea heluhelu pale. E hōʻoia i ka ʻike i hōʻike ʻia e ke kala i ʻike ʻia mai ka ʻike ponoʻī (e laʻa i ke kikokikona ʻike ʻia), a i ʻole e hoʻokomo ʻia ma o nā ala ʻē aʻe, e like me nā kikokikona hou i hūnā ʻia me ka .sr-only
papa.
E hana i nā pākaukau pane ma ke kāʻei ʻana i kekahi .table
me ka .table-responsive{-sm|-md|-lg|-xl}
, e hoʻopaʻa i ka papaʻaina ma ka ʻaoʻao i kēlā me kēia max-width
haʻihaʻi a hiki i (akā, ʻaʻole me) 576px, 768px, 992px, a me 1120px.
E hoʻomanaʻo, ʻaʻole kākoʻo nā mākaʻikaʻi i kēia manawa i nā nīnau pōʻaiapili laulā , hana mākou i nā palena o min-
nā max-
prefix a me nā puka ʻike me nā laula haʻihaʻi (hiki ke hana ʻia ma lalo o kekahi mau kūlana ma nā hāmeʻa kiʻekiʻe-dpi, no ka laʻana) ma o ka hoʻohana ʻana i nā waiwai me ka pololei o kēia mau hoʻohālikelike. .
ʻO kahi <caption>
hana e like me ke poʻo no kahi papaʻaina. Kōkua ia i nā mea hoʻohana me nā mea heluhelu pale e ʻimi i kahi papaʻaina a hoʻomaopopo i ke ʻano o ia mea a hoʻoholo inā makemake lākou e heluhelu.
# | Ka mua | hope loa | Kalima |
---|---|---|---|
1 | Maka | Otto | @mdo |
2 | ʻO Iakoba | Thornton | @momona |
3 | Larry | ka Manu |
Hāʻawi nā papa pane i nā papa e ʻōwili ʻia me ka maʻalahi. E hana i kekahi papa ʻaina e pane mai i nā ʻāpana ʻike āpau ma ke kāʻei ʻana i kahi .table
me .table-responsive
. A i ʻole, e koho i kahi haʻihaʻi kiʻekiʻe loa e loaʻa ai kahi papa pane ma ka hoʻohana ʻana i .table-responsive{-sm|-md|-lg|-xl}
.
ʻoki ʻoki/ʻoki ʻia
Hoʻohana nā papa pane i ka overflow-y: hidden
, kahi e hoʻopaʻa ai i nā ʻike ma waho aʻe o nā ʻaoʻao lalo a i luna paha o ka papaʻaina. ʻO ka mea kūikawā, hiki i kēia ke ʻoki i nā menus dropdown a me nā widget ʻaoʻao ʻekolu.
Ma kēlā me kēia wahi haʻihaʻi, e hoʻohana .table-responsive
no nā papa ʻauʻau ākea.
# | Poʻomanaʻo | Poʻomanaʻo | Poʻomanaʻo | Poʻomanaʻo | Poʻomanaʻo | Poʻomanaʻo | Poʻomanaʻo | Poʻomanaʻo | Poʻomanaʻo |
---|---|---|---|---|---|---|---|---|---|
1 | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona |
2 | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona |
3 | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona |
E hoʻohana .table-responsive{-sm|-md|-lg|-xl}
e like me ka mea e pono ai no ka hana ʻana i nā papa pane a hiki i kahi breakpoint. Mai kēlā haʻihaʻi a piʻi aʻe, e hana maʻamau ka papaʻaina a ʻaʻole e ʻōwili i ka pae.
Ua haki paha kēia mau papa ʻaina a hiki i ka hoʻohana ʻana o ko lākou mau ʻano pane i nā laula ʻike kikoʻī.
# | Poʻomanaʻo | Poʻomanaʻo | Poʻomanaʻo | Poʻomanaʻo | Poʻomanaʻo | Poʻomanaʻo | Poʻomanaʻo | Poʻomanaʻo |
---|---|---|---|---|---|---|---|---|
1 | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona |
2 | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona |
3 | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona |
# | Poʻomanaʻo | Poʻomanaʻo | Poʻomanaʻo | Poʻomanaʻo | Poʻomanaʻo | Poʻomanaʻo | Poʻomanaʻo | Poʻomanaʻo |
---|---|---|---|---|---|---|---|---|
1 | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona |
2 | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona |
3 | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona |
# | Poʻomanaʻo | Poʻomanaʻo | Poʻomanaʻo | Poʻomanaʻo | Poʻomanaʻo | Poʻomanaʻo | Poʻomanaʻo | Poʻomanaʻo |
---|---|---|---|---|---|---|---|---|
1 | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona |
2 | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona |
3 | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona |
# | Poʻomanaʻo | Poʻomanaʻo | Poʻomanaʻo | Poʻomanaʻo | Poʻomanaʻo | Poʻomanaʻo | Poʻomanaʻo | Poʻomanaʻo |
---|---|---|---|---|---|---|---|---|
1 | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona |
2 | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona |
3 | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona | Kelepona |