Bootstrap 基础CSS - 表格(Tables)
来源:互联网 发布:淘宝网男士冬季休闲鞋 编辑:程序博客网 时间:2024/05/09 19:24
标准结构
<table>
用以包装表格化的数据<thead>
容纳表格标题行 (<tr>
)以标识表格列,<tbody>
容纳表格行 (<tr>
)<tr>
容纳行内的一组单元格 (<td>
or <th>
)<td>
默认的表格单元格<th>
用于列头(或是行,取决于标签所在位置和区域)的特殊标签必须置于
<thead>
标签内。<caption>
表格用途的描述或摘要,对屏幕阅读器(视障人士读屏软件)非常有用<table> <caption>...</caption> <thead> <tr> <th>...</th> <th>...</th> </tr> </thead> <tbody> <tr> <td>...</td> <td>...</td> </tr> </tbody></table>
默认样式
行与行之间用水平线相隔。只需向<table>添加.table
<table class="table"> …</table>
表格的可选类
在.table后面可以添加下列任意类。
.table-striped可以使奇数行的背景设为灰色。
<table class="table table-striped"> …</table>
.table-bordered可以使边框显示。
<table class="table table-bordered"> …</table>
.table-hover可以使鼠标悬停的行的背景变为灰色。
<table class="table table-hover"> …</table>
.table-condensed可以使行间距变小。
<table class="table table-condensed"> …</table>
行的可选类
使用下列类可以使行的背景色变化,从而表达一定含义。
向<tr>添加.success、.error、.warning、.info。
... <tr class="success"> <td>1</td> <td>TB - Monthly</td> <td>01/04/2012</td> <td>Approved</td> </tr>...
- Bootstrap 基础CSS - 表格(Tables)
- Bootstrap 基础CSS - 表格(Tables)
- Bootstrap 基础CSS - 表格(Tables) .table-striped
- Bootstrap CSS 表格
- BootStrap--CSS布局--表格
- Bootstrap CSS表格
- 【Bootstrap】表格的CSS布局
- bootstrap——css样式(三、表格)
- Bootstrap 基础CSS - 排版(Typography)
- Bootstrap 基础CSS - 表单(Forms)
- Bootstrap 基础CSS - 按钮(Buttons)
- bootstrap基础(一)文本,列表,代码,表格
- JS表格组件神器bootstrap table详解(基础版)
- JS表格组件神器bootstrap table详解(基础版)
- JS表格组件神器bootstrap table详解(基础版)
- Css基础学习(八)—表格
- HTML+CSS基础(1)表格
- CSS 基础(007_表格)
- 深入浅出JavaScript (六)分析DOM模型
- VMware三种网络模式根本区别 bridged nat host-only
- Stay Hungry, Stay Foolish ——斯坦福大学05年毕业演讲
- Enable3dControls
- 【mysql】mysql的查询、子查询及连接查询
- Bootstrap 基础CSS - 表格(Tables)
- UVa 10916 简单题
- Web开发的那点事--业务层常用功能
- 原百度贴吧负责人舒迅:产品经理必读的九步法
- 黑马程序员----JAVA----多线程---
- 关于 C++ 跨平台的问题
- [数据结构]第三章--栈和队列(读书笔记2)
- Android UI【android 仿微信、QQ聊天,带表情,可翻页,带翻页拖动缓冲】
- Web入门必看HTML编写的30条建议