---
title: "Bootstrap--表格"
author: "小丑鱼0703"
date: "2015-02-04T15:32:43Z"
tags: []
categories: ["Web前端"]
slug: "bootstrap"
draft: false
lastmod: "2015-02-04T17:51:19Z"
id: 2183329
url: "https://wangjingyi.iteye.com/blog/2183329"
---

支持标签、标签、 标签、标签、 中的每一行赋予鼠标悬停样式。 \[b].table-condensed\[/b] 每个单元格的内补(padding)减半可使表格更紧凑。 行属性选择情景(contextual)类为表格添加颜色。 .success 表示成功或积极的行为。 .error 表示一个危险或存有潜在危险的行为。 .warning 表示警告，可能需要注意。 .info 作为一个默认样式的一个替代样式。 \[url]http://v2.bootcss.com/base-css.html#tables\[/url]

标签、标签、标签。 \[code="html"]

\# First Name Last Name Username 1 Mark Otto @mdo 2 Jacob Thornton @fat 3 Larry the Bird @twitter

\[/code] \[img]http://dl2.iteye.com/upload/attachment/0105/8330/6e6398e0-d4f8-33ad-8a5e-cea07d6d2466.jpg\[/img] \[b].table \[/b] 很少的内补(padding)并只增加水平分隔线。 \[b].table-striped\[/b] 封装了:nth-child CSS选择器 (IE7-8不支持)为表格中的行添加斑马纹样式，隔行变色。 \[b].table-bordered\[/b] 为表格增加边框(border)和圆角(rounded corner)。 \[b].table-hover\[/b] 为