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
<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
友情链接:东莞市佳捷洗涤用品有限公司  |佛山市亮银铝制品有限公司  |宁波福达活动板房公司  |成都洗刷刷科技环保有限公司  |三明赶集网  |杭州凡邦室内设计有限公司  |涉县信息港  |哈哈儿童网  |CAUDAL  |云南消  |宁波联合  |东莞图  |兴化市火星机械配件有限公司  |中威电子  |河南整  |浙江华基环保科技有限公司(上海)  |迅捷网  |上海秀派电子科技有限公司  |万药  |Free People中国官方网站  |成都洗刷刷科技环保有限公司  |山东腾翔玻璃钢集团公司  |星艺视讯科技有限责任公司  |皇冠假  |沂水县广营果蔬购销处  |SDeer官方网站  |皇冠假  |东莞图  |大连工业大学  |海南在  |东莞市佳捷洗涤用品有限公司  |中威电子  |乐清市巨鼎防爆电器有限公司  |CAUDAL  |云南消  |宁波联合  |东莞图  |兴化市火星机械配件有限公司  |中威电子  |河南整  |浙江华基环保科技有限公司(上海)  |迅捷网  |上海秀派电子科技有限公司  |万药  |Free People中国官方网站  |成都洗刷刷科技环保有限公司  |信和财富(北京)投资管理有限公司  |聊城市文安纸业有限公司  |东莞市佳捷洗涤用品有限公司  |东莞市佳捷洗涤用品有限公司  |海南在  |鄄城东易日盛实验仪器商城  |迅捷网  |皇冠假  |佛山市亮银铝制品有限公司  |三明赶集网  |上海豪鑫自动化科技有限公司  |迅捷网  |星艺视讯科技有限责任公司  |黑暗军团论坛  |5577我机网  |网易汽车论坛  |大连工业大学  |海南在  |浙江华基环保科技有限公司(上海)  |Free People中国官方网站  |东莞市佳捷洗涤用品有限公司  |宁波福达活动板房公司  |皇冠假  |哈哈儿童网  |深圳市珍意美堂空间设计有限公司  |涉县信息港  |上海豪鑫自动化科技有限公司  |杭州凡邦室内设计有限公司  |黑暗军团论坛  |SDeer官方网站  |沂水县广营果蔬购销处  |宁波福达活动板房公司  |万药  |东莞图  |四川饰美佳美新材料科技有限责任公司  |翰宇  |万药  |延安教  |涉县信息港  |信和财富(北京)投资管理有限公司  | 山东骄阳矿用设备有限公司  |成都洗刷刷科技环保有限公司  |社保10  |广发银行网上商城  |东莞市佳捷洗涤用品有限公司  |浙江华基环保科技有限公司(上海)  |上海豪鑫自动化科技有限公司  |圣锋  |成都洗刷刷科技环保有限公司  | 山东骄阳矿用设备有限公司  |杭州凡邦室内设计有限公司  |三明赶集网  | 山东骄阳矿用设备有限公司  |网易汽车论坛  |   网站地图