<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>伪类应用</title>
<style>
tr{
text-align: center;
}
tr:hover{
background-color: aqua;
cursor: pointer;
}
</style>
</head>
<body>
<table border="1" align="center" width="40%" height="50%" cellspacing="0">
<caption>信息</caption>
<tr>
<td>学号</td>
<td>年龄</td>
<td>姓名</td>
</tr>
<tr>
<td>1</td>
<td>20</td>
<td>张三</td>
</tr>
<tr>
<td>2</td>
<td>22</td>
<td>李四</td>
</tr>
<tr>
<td>3</td>
<td>26</td>
<td>王五</td>
</tr>
</table>
</body>
</html>