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.whqc4.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-06-23
  • 林芝市墨脱县“石锅之乡”见闻 2019-06-16
  • 陕西省靖边县召开促进非公经济发展暨靖边籍企业家返乡创业大会 2019-06-16
  • 充电桩分国际、国内,武大的管理真有水平(原创首发) 2019-06-14
  • 中国端午,世界节日!看“世界朋友圈”如何过端午 2019-06-14
  • 中国电信发布人工智能终端白皮书 2019-06-07
  • 羊肉-热门标签-华商生活 2019-06-07
  • 中国经济稳中向好的发展态势没有变 2019-06-05
  • 智媒云图(Intell Vision):植物识别 2019-06-05
  • 唐山市34个党组织和30名领导干部被问责 2019-06-04
  • 申通韵达撤出丰巢:自称“商业考虑” 被曝遭顺丰清退 2019-06-04
  • 嗯昨天应该有好多人都看了葡萄牙跟西班牙的比赛了,c罗真是1打13啊~ 2019-05-19
  • 努力把各级党组织锻造得更加坚强有力——四论认真学习贯彻省委十二届四次全会精神 2019-05-19
  • 又退群? 这一次,美国因不满欲退出联合国人权理事会 2019-05-17
  • 恒大夏训名单确定!六朝功勋离队4000万标王回归 2019-05-11
  • 斯诺克世界排名 二八杠筒子牌大号 福彩七乐彩走势图一综合版 德州扑克总督android 重庆快乐10分号码预测 校园篮球风云 四川时时彩结果查询 爱彩乐湖北体彩11选5 足彩进球彩18088期 高频彩票返奖率是什么意思 搜狐彩票吧 宁夏11选5任选走势图 cba总决赛第三场 广东十一选五开奖记录 曾道人一句解一肖