Zoo ib yam li cov ntxhuav thiab cov ntxhuav tsaus, siv cov chav kawm hloov kho .thead-lightlossis .thead-darkua kom <thead>pom lub teeb lossis tsaus grey.
Ntxiv .table-borderedrau ciam teb rau txhua sab ntawm lub rooj thiab cov hlwb.
#
Ua ntej
Kawg
tuav
1
Mark
Otto
@mdo
2
Yakhauj
Thornton
@fat
3
Larry noog
@twitter
<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>
#
Ua ntej
Kawg
tuav
1
Mark
Otto
@mdo
2
Yakhauj
Thornton
@fat
3
Larry noog
@twitter
<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>
Lub rooj tsis muaj ciam teb
Ntxiv .table-borderlessrau lub rooj tsis muaj ciam teb.
#
Ua ntej
Kawg
tuav
1
Mark
Otto
@mdo
2
Yakhauj
Thornton
@fat
3
Larry noog
@twitter
<tableclass="table table-borderless"><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>
<tableclass="table table-borderless 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>
Hoverable kab
Ntxiv .table-hoverlos pab kom lub xeev hover ntawm cov kab lus hauv ib <tbody>.
#
Ua ntej
Kawg
tuav
1
Mark
Otto
@mdo
2
Yakhauj
Thornton
@fat
3
Larry noog
@twitter
<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>
#
Ua ntej
Kawg
tuav
1
Mark
Otto
@mdo
2
Yakhauj
Thornton
@fat
3
Larry noog
@twitter
<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>
<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>
#
Ua ntej
Kawg
tuav
1
Mark
Otto
@mdo
2
Yakhauj
Thornton
@fat
3
Larry noog
@twitter
<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>
Cov chav kawm ntawm cov ntsiab lus
Siv cov chav kawm contextual rau xim kab kab los yog ib lub hlwb.
Chav kawm
Lub taub hau
Lub taub hau
Active
Cell
Cell
Default
Cell
Cell
Thawj
Cell
Cell
Secondary
Cell
Cell
Kev vam meej
Cell
Cell
Kev phom sij
Cell
Cell
Ceeb toom
Cell
Cell
Cov ntaub ntawv
Cell
Cell
Teeb
Cell
Cell
Tsaus
Cell
Cell
<!-- On rows --><trclass="table-active">...</tr><trclass="table-primary">...</tr><trclass="table-secondary">...</tr><trclass="table-success">...</tr><trclass="table-danger">...</tr><trclass="table-warning">...</tr><trclass="table-info">...</tr><trclass="table-light">...</tr><trclass="table-dark">...</tr><!-- On cells (`td` or `th`) --><tr><tdclass="table-active">...</td><tdclass="table-primary">...</td><tdclass="table-secondary">...</td><tdclass="table-success">...</td><tdclass="table-danger">...</td><tdclass="table-warning">...</td><tdclass="table-info">...</td><tdclass="table-light">...</td><tdclass="table-dark">...</td></tr>
Cov kab lus tsis tu ncua keeb kwm yav dhau los tsis muaj nrog lub rooj tsaus, txawm li cas los xij, koj tuaj yeem siv cov ntawv nyeem lossis cov khoom siv tom qab kom ua tiav cov qauv zoo sib xws.
#
Lub taub hau
Lub taub hau
1
Cell
Cell
2
Cell
Cell
3
Cell
Cell
4
Cell
Cell
5
Cell
Cell
6
Cell
Cell
7
Cell
Cell
8
Cell
Cell
9
Cell
Cell
<!-- On rows --><trclass="bg-primary">...</tr><trclass="bg-success">...</tr><trclass="bg-warning">...</tr><trclass="bg-danger">...</tr><trclass="bg-info">...</tr><!-- On cells (`td` or `th`) --><tr><tdclass="bg-primary">...</td><tdclass="bg-success">...</td><tdclass="bg-warning">...</td><tdclass="bg-danger">...</td><tdclass="bg-info">...</td></tr>
Qhia lub ntsiab lus rau kev pab technologies
Siv cov xim los ntxiv cov ntsiab lus tsuas yog muab qhov pom kev pom, uas yuav tsis raug xa mus rau cov neeg siv cov thev naus laus zis pab - xws li cov ntawv nyeem. Xyuas kom meej tias cov ntaub ntawv qhia los ntawm cov xim yog pom tseeb los ntawm cov ntsiab lus nws tus kheej (xws li cov ntawv pom), lossis suav nrog lwm txoj kev, xws li cov ntawv ntxiv zais nrog cov .sr-onlychav kawm.
Ib <caption>txoj haujlwm zoo li lub taub hau rau lub rooj. Nws pab cov neeg siv nrog cov tshuaj ntsuam nyeem kom pom lub rooj thiab nkag siab tias nws yog dab tsi thiab txiav txim siab seb lawv puas xav nyeem nws.
Daim ntawv teev cov neeg siv
#
Ua ntej
Kawg
tuav
1
Mark
Otto
@mdo
2
Yakhauj
Thornton
@fat
3
Larry
noog
@twitter
<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>
Cov lus teb
Responsive tables tso cai rau cov ntxhuav tau scrolled horizontally yooj yim. Ua ib lub rooj teb thoob plaws txhua qhov chaw saib los ntawm kev qhwv ib qho .tablenrog .table-responsive. Los yog, xaiv qhov siab tshaj plaws breakpoint uas yuav tsum muaj cov lus teb los ntawm kev siv .table-responsive{-sm|-md|-lg|-xl}.
Vertical clipping/truncation
Cov lus teb ua rau siv overflow-y: hidden, uas clips tawm cov ntsiab lus uas dhau mus rau hauv qab lossis sab saum toj ntawm lub rooj. Tshwj xeeb, qhov no tuaj yeem txiav tawm cov ntawv qhia zaub mov thiab lwm tus neeg thib peb widgets.
Siv .table-responsive{-sm|-md|-lg|-xl}raws li xav tau los tsim cov lus teb mus txog rau ib qho kev tawg. Los ntawm qhov tawg thiab nce mus, lub rooj yuav coj li ib txwm thiab tsis scroll horizontally.
Cov rooj no yuav tshwm sim tawg kom txog thaum lawv cov qauv teb siv tau ntawm qhov dav dav dav dav.