使用Bootstrap创建响应表
要使用Bootstrap创建响应表,请使用表响应类。
您可以尝试运行以下代码以形成响应表-
示例
<!DOCTYPE html><html>
<head>
<title>Bootstrap Table</title>
<link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
<script src = "/scripts/jquery.min.js"></script>
<script src = "/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<div class = "table-responsive">
<table class = "table">
<thead>
<tr>
<th>Subject</th>
<th>Marks</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>Java</td>
<td>90</td>
<td>Programming Language</td>
</tr>
<tr>
<td>PHP</td>
<td>92</td>
<td>Scrpting Language</td>
</tr>
<tr>
<td>jQuery</td>
<td>80</td>
<td>JavaScript Library</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
以上是 使用Bootstrap创建响应表 的全部内容, 来源链接: utcz.com/z/359120.html