有懸停效果但沒有顏色
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>強(qiáng)調(diào)內(nèi)容</title>
<link rel="stylesheet" >
</head>
<style type="text/css" media="screen">
?
?td{
??width: 100px;
??height: 40px;
?}
</style>
<body>
<table class='table-striped table-hover'>
??<th colspan="" rowspan="" headers="" scope="">A</th>
??<th colspan="" rowspan="" headers="" scope="">B</th>
??<th colspan="" rowspan="" headers="" scope="">C</th>
?<tr class="warning">
??<td colspan="" rowspan="" headers="">1</td>
??<td colspan="" rowspan="" headers="">2</td>
??<td colspan="" rowspan="" headers="">3</td>
?</tr class="active">
?<tr>
??<td colspan="" rowspan="" headers="">1</td>
??<td colspan="" rowspan="" headers="">2</td>
??<td colspan="" rowspan="" headers="">3</td>
?</tr>
?<tr>
??<td colspan="" rowspan="" headers="">1</td>
??<td colspan="" rowspan="" headers="">2</td>
??<td colspan="" rowspan="" headers="">3</td>
?</tr>
</table>
</body>
</html>
2018-11-05
1 檢查bootstrap.min.css的引用地址有沒有問題,可以試試換成
<link rel="stylesheet" > ?
2 表格類中要首先添加一個table類
<table class='table table-striped table-hover'>
這兩個改了應(yīng)該就會有顏色了
2018-11-05
使用的bootstrap版本不同。