CSS选中的行进行标红处理示例代码

(编辑:jimmy 日期: 2024/11/1 浏览:2)


复制代码代码如下:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title></title>
<style type="text/css">
.tab
{
width:1000px; height:600px;
}
.tab tr:hover
{
background-color:Red;
}
</style>
</head>
<body >
<table border="1" class="tab" >
<tr >
<td>123</td>
<td>123</td>
</tr>
<tr >
<td>123</td>
<td>123</td>
</tr>
<tr >
<td>123</td>
<td>123</td>
</tr>
<tr >
<td>123</td>
<td>123</td>
</tr>
<tr >
<td>123</td>
<td>123</td>
</tr>
</table>
</body>
</html>