使用Bootstrap在表格行上显示危险动作
在Bootstrap中使用.danger类显示表行的危险动作
示例
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Example</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 = "container">
<h2>Rank of Cricketers</h2>
<p>The following are the rank of cricketers:</p>
<table class = "table">
<thead>
<tr>
<th>Cricketer</th>
<th>Rank</th>
</tr>
</thead>
<tbody>
<tr>
<td>Virat</td>
<td>1</td>
</tr>
<tr>
<td>David</td>
<td>2</td>
</tr>
<tr>
<td>Rohit</td>
<td>3</td>
</tr>
<tr>
<td>Kenn</td>
<td>4</td>
</tr>
<tr class = "danger">
<td>Steve</td>
<td>5</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>热门推荐
10 财运虎年祝福语简短语
11 单亲爸爸春节祝福语简短
12 狗狗上厕所训练
13 植物种植祝福语简短
14 翻译考试祝福语朋友简短
15 个人周年庆简短祝福语
16 狗狗怎么训练
17 分别祝福语简短搞笑英文
18 生日广州男生祝福语简短