Table markup

Tag Description
<table> Wrapping element for displaying data in a tabular format
<thead> Container element for table header rows (<tr>) to label table columns
<tbody> Container element for table rows (<tr>) in the body of the table
<tr> Container element for a set of table cells (<td> or <th>) that appears on a single row
<td> Default table cell
<th> Special table cell for column (or row, depending on scope and placement) labels
Must be used within a <thead>
<caption> Description or summary of what the table holds, especially useful for screen readers
 本港台现场报码室 www.pjxvea.cn <table>
  <thead>
    <tr>
      <th></th>
      <th></th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td></td>
      <td></td>
    </tr>
  </tbody>
</table>

Table options

Name Class Description
Default None No styles, just columns and rows
Basic .table Only horizontal lines between rows
Bordered .table-bordered Rounds corners and adds outer border
Zebra-stripe .table-striped Adds light gray background color to odd rows (1, 3, 5, etc)
Condensed .table-condensed Cuts vertical padding in half, from 8px to 4px, within all td and th elements

Example tables

1. Default table styles

Tables are automatically styled with only a few borders to ensure readability and maintain structure. With 2.0, the .table class is required.

<table class="table">
  
</table>
# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter

2. Striped table

Get a little fancy with your tables by adding zebra-striping—just add the .table-striped class.

Note: Striped tables use the :nth-child CSS selector and is not available in IE7-IE8.

<table class="table table-striped">
  
</table>
# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter

3. Bordered table

Add borders around the entire table and rounded corners for aesthetic purposes.

<table class="table table-bordered">
  
</table>
# First Name Last Name Username
1 Mark Otto @mdo
Mark Otto @TwBootstrap
2 Jacob Thornton @fat
3 Larry the Bird @twitter

4. Condensed table

Make your tables more compact by adding the .table-condensed class to cut table cell padding in half (from 8px to 4px).

<table class="table table-condensed">
  
</table>
# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter

5. Combine them all!

Feel free to combine any of the table classes to achieve different looks by utilizing any of the available classes.

<table class="table table-striped table-bordered table-condensed">
  ...
</table>
Full name
# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
  • 广西高校多举措引进台湾高层次人才 2019-07-11
  • 广州市番禺区人民法院公告专栏 2019-06-27
  • 2016春季败包指南 抓住重点就能时髦上天! 2019-06-27
  • 陕西省第二届特色与休闲农业青年微电影微视频大赛开始报名 2019-06-25
  • “巨无霸”蚊子刷新世界纪录 2019-06-25
  • 银川河东国际机场“刷脸”就可以坐飞机 2019-06-20
  • 顺义区--北京频道--人民网 2019-06-18
  • 西安体育学院体育传媒系与西部网签约校媒合作 2019-06-18
  • 移植2胚怀5胎 一针减3化风险 十堰市人民医院再创生命奇迹 2019-05-30
  • 法制日报:巨额奖金被冒领戳中行业痛点 2019-05-11
  • 奇闻怪事:瑶族怪异风俗习惯之烟袋定情 2019-05-11
  • 1-5月份安徽省限额以上消费品零售额2104.7亿元 2019-05-05
  • 传媒期刊秀:《网络传播》 2019-05-05
  • 【访民情 惠民生 聚民心】驻村路上父女同行 2019-05-04
  • 为宣传奇绝秀美旅游风光 鹰潭市委书记自拍上央视(图) 2019-05-04
  • 北京pk10高手赌法 河南快三电脑走势图 计算器中国竞彩网 河北快三和值图表 幸运飞艇最稳定的计划 彩票大奖下午容易出奖 开奖公告快乐时时彩10分钟赚10万 江苏快三彩票计划 辽宁35选7走势图幸运之门 重庆快乐十分计划宝典 一八前头二连码 qq游戏麻将二八杠 天津11选5遗漏号 湖南彩票开奖结果查询 足彩投注规则