表格
<!DOCTYPE html>
<html>
<head>
<!-- <meta name="viewport" content="width=device-width,initial-scale=1"> -->
<link rel="stylesheet" type="text/css" href="./css/bootstrap.min.css" />
<meta charset="utf-8">
<title></title>
<style type="text/css">
.table-bordered{
border: 1px solid #000;
}
</style>
</head>
<body>
<!-- 响应式表格 在盒子中添加table-responsive 在table中添加 table-condensed-->
<div class="table-responsive">
<!-- table-hover选中效果 table-striped斑马线 table-bordered边框-->
<table class=" table-condensed table table-hover table-striped table-bordered table-condensed">
<thead>
<tr class="info">
<th>表格标题</th>
<th>表格标题</th>
<th>表格标题</th>
</tr>
</thead>
<tbody>
<tr class="warning">
<td>表格元格表格元格表格元格表格元格表格元格</td>
<td>表格元格</td>
<td>表格元格</td>
</tr>
<tr class="danger">
<td>表格元格</td>
<td>表表格元格表格元格表格元格格元格</td>
<td>表格元格</td>
</tr>
<tr>
<td>表格元格</td>
<td>表格元格</td>
<td>表格元格</td>
</tr>
<tr>
<td><a>表格元格</a></td>
<td>表格元格</td>
<td>表格元格</td>
</tr>
<tr>
<td>表格元格</td>
<td>表格元格</td>
<td>表格元格</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
效果图
自适应
table-hover选中效果 table-striped斑马线 table-bordered边框
响应式表格 在盒子中添加table-responsive 在table中添加 table-condensed