#### 一、单元格悬停
```
<head>
<style>
table{
border: 1px solid black;
width: 100%;
border-collapse: collapse;
}
tr,td,th{
border: 1px solid black;
text-align: center;
}
/* 为行设置悬停 */
tr:hover{
background-color: red;
}
/* 为单元格设置悬停 */
td:hover{
background-color: cadetblue;
}
</style>
</head>
<body>
<table>
<tr>
<th>星期一</th>
<th>星期二</th>
<th>星期三</th>
<th>星期四</th>
<th>星期五</th>
</tr>
<tr>
<td>ROW 1 cell 1</td>
<td>ROW 1 cell 2</td>
<td>ROW 1 cell 3</td>
<td>ROW 1 cell 4</td>
<td>ROW 1 cell 5</td>
</tr>
<tr>
<td>ROW 2 cell 1</td>
<td>ROW 2 cell 2</td>
<td>ROW 2 cell 3</td>
<td>ROW 2 cell 4</td>
<td>ROW 2 cell 5</td>
</tr>
<tr>
<td>ROW 3 cell 1</td>
<td>ROW 3 cell 2</td>
<td>ROW 3 cell 3</td>
<td>ROW 3 cell 4</td>
<td>ROW 3 cell 5</td>
</tr>
<tr>
<td>ROW 4 cell 1</td>
<td>ROW 4 cell 2</td>
<td>ROW 4 cell 3</td>
<td>ROW 4 cell 4</td>
<td>ROW 4 cell 5</td>
</tr>
<tr>
<td>ROW 5 cell 1</td>
<td>ROW 5 cell 2</td>
<td>ROW 5 cell 3</td>
<td>ROW 5 cell 4</td>
<td>ROW 5 cell 5</td>
</tr>
</table>
</body>
```
![2](sjt57klb1.hd-bkt.clouddn.com/2.gif)
#### 二、按钮样式
```
<head>
<style>
input{
padding: 10px 20px;
border-radius: 8px;
color: black;
}
.one:hover{
background-color: rgb(17, 83, 224);
}
</style>
</head>
<body>
<form>
<table>
<tr>
<td><input class="one" type="button" value="Primary"></td>
<td><input type="button" value="Normal" style=""></td>
<td><input type="button" value="Dashed" style="border-style:dotted;color: blue;"></td>\
<td><input type="button" value="Danager" style="border-color: red; color: red;"></td>
<td><input type="button" value="Link" style="border-style: none;color: blue;"></td>
</tr>
</table>
</form>
</body>
```
![1](sjt57klb1.hd-bkt.clouddn.com/1.gif)