Bootstrap hmanga table-te opt-in styling (JavaScript plugin-a an hman tam dan ngaihtuah chuan) documentation leh entirnan.
Entirna te
Calendar leh date picker ang chi third-party widget hrang hranga table hman tam tak avang hian kan table te chu opt-in turin kan design a ni. Base class .tablechu any ah add mai la <table>, chutah chuan custom styles emaw kan modifier class hrang hrang included hmangin extend rawh.
Table markup bulpui ber hmangin, .tableBootstrap-a -based tables awm dan chu hetiang hi a ni. Table style zawng zawng hi Bootstrap 4 ah hian inherited a ni a , chu chu nested table eng pawh chu parent ang bawkin style a ni ang tihna a ni.
.table-borderedTable leh cell sir zawng zawnga border awmte tan add rawh .
# a ni.
Hmasa ber
Hnuhnung ber
Chelh
1. a ni
Mark
Otto chuan a ti a
@mdo a ni
2. 2.
Jakoba chu a ni
Thornton-a chuan a ti a
@thau
3. A ni
Larry chuan a ti a
@twitter ah a awm
<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>
# a ni.
Hmasa ber
Hnuhnung ber
Chelh
1. a ni
Mark
Otto chuan a ti a
@mdo a ni
2. 2.
Jakoba chu a ni
Thornton-a chuan a ti a
@thau
3. A ni
Larry chuan a ti a
@twitter ah a awm
<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>
<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>
# a ni.
Hmasa ber
Hnuhnung ber
Chelh
1. a ni
Mark
Otto chuan a ti a
@mdo a ni
2. 2.
Jakoba chu a ni
Thornton-a chuan a ti a
@thau
3. A ni
Larry chuan a ti a
@twitter ah a awm
<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>
Table te tak te
.table-smCell padding chu a chanvea then la, table compact zawka siam turin dah rawh .
# a ni.
Hmasa ber
Hnuhnung ber
Chelh
1. a ni
Mark
Otto chuan a ti a
@mdo a ni
2. 2.
Jakoba chu a ni
Thornton-a chuan a ti a
@thau
3. A ni
Larry chuan a ti a
@twitter ah a awm
<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>
# a ni.
Hmasa ber
Hnuhnung ber
Chelh
1. a ni
Mark
Otto chuan a ti a
@mdo a ni
2. 2.
Jakoba chu a ni
Thornton-a chuan a ti a
@thau
3. A ni
Larry chuan a ti a
@twitter ah a awm
<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>
Contextual class hrang hrang te
Table row emaw cell pakhat zel emaw color turin contextual class hmang ang che.
awmzia belhchhah nan color hman hian hmuh theiha hriattirna chauh a pe a, chu chu assistive technology hmangtute hnenah a thlen dawn lo – screen reader ang chi te. Color hmanga tarlan information chu a thupui a\ang ngeia lang (entir nan, hmuh theih thuziak), a nih loh leh kawng dang hmanga telh a nih theih nan enfiah rawh, chu chu .sr-onlyclass nena thup belh thuziak ang chi a ni.
Responsive table siam la, any .tablewith wrapping la, breakpoint .table-responsive{-sm|-md|-lg|-xl}tinah table chu horizontal-in max-width576px, 768px, 992px, leh 1120px thleng (mahse tel lovin) a scroll tir ang che.
Browser-te hian tunah hian range context queries an support loh avangin, heng tehkhin thute atan hian value dik zawk hmangin fractional width nei prefix min-lehmax- viewport-te limitation (chu chu high-dpi device-a condition thenkhat hnuaiah a thleng thei, entirnan) kan thawk ho tih hre reng ang che .
Caption te pawh a awm
A <caption>hian table pakhata heading ang maiin a thawk a. Screen reader neitute chu table zawng chhuakin a chungchang an hriatthiam theih nan leh chhiar duh leh duh loh an rel theih nan a pui a ni.
A hmangtute list
# a ni.
Hmasa ber
Hnuhnung ber
Chelh
1. a ni
Mark
Otto chuan a ti a
@mdo a ni
2. 2.
Jakoba chu a ni
Thornton-a chuan a ti a
@thau
3. A ni
Larry chuan a ti a
chu Sava chu a ni
@twitter ah a awm
<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>
Chhanna pe thei table te
Responsive table hmang hian awlsam takin table te chu horizontal-a scroll theih a ni. Viewport zawng zawngah table eng pawh responsive turin siam la, a .tablewith wrapping hmangin siam rawh .table-responsive. A nih loh leh, responsive table neih theihna tur breakpoint tam ber thlang la, hmangin .table-responsive{-sm|-md|-lg|-xl}.
Vertical clipping/truncation tih a ni
Responsive tables make use of overflow-y: hidden, chu chuan table hnuai lam emaw, chunglam emaw atanga chhuak content eng pawh a clip off thin. A bik takin hei hian dropdown menu leh third-party widget dangte a clip off thei a ni.
A chhang let fo thin
Breakpoint tinah, .table-responsivetable horizontal-a scroll nan hmang ang che.
# a ni.
Heading tih a ni
Heading tih a ni
Heading tih a ni
Heading tih a ni
Heading tih a ni
Heading tih a ni
Heading tih a ni
Heading tih a ni
Heading tih a ni
1. a ni
Pindan
Pindan
Pindan
Pindan
Pindan
Pindan
Pindan
Pindan
Pindan
2. 2.
Pindan
Pindan
Pindan
Pindan
Pindan
Pindan
Pindan
Pindan
Pindan
3. A ni
Pindan
Pindan
Pindan
Pindan
Pindan
Pindan
Pindan
Pindan
Pindan
Breakpoint bik a ni
.table-responsive{-sm|-md|-lg|-xl}Breakpoint bik thlenga responsive table siam nan a tul angin hmang ang che. Chu breakpoint atang chuan a chung lam atang chuan table chu a awm dan pangngaiin a awm ang a, horizontal-in a scroll lo vang.