| Firstname | Lastname | |
|---|---|---|
| John | Doe | john@example.com |
| Mary | Moe | mary@example.com |
| July | Dooley | july@example.com |
较小的表格
.table-sm 类用于通过减少内边距来设置较小的表格:
实例
Firstname Lastname Email John Doe john@example.com Mary Moe mary@example.com July Dooley july@example.com
响应式表格
.table-responsive 类用于创建响应式表格:在屏幕宽度小于 992px 时会创建水平滚动条,如果可视区域宽度大于 992px 则显示不同效果(没有滚动条):
实例
# Firstname Lastname Age City Country Sex Example Example Example Example 1 Anna Pitt 35 New York USA Female Yes Yes Yes Yes
你可以通过以下类设定在指定屏幕宽度下显示滚动条:
| 类名 | 屏幕宽度 |
|---|---|
| .table-responsive-sm | < 576px |
| .table-responsive-md | < 768px |
| .table-responsive-lg | < 992px |
| .table-responsive-xl | < 1200px |
实例
...










