日期:2014-05-17 浏览次数:20612 次
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>无标题页</title>
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#table1").find("tr[im='A1'],tr[im='A2']").css("color","red")
})
</script>
</head>
<body>
<form runat="server">
<table id="table1">
<tr im="A1">
<td>A1</td>
</tr>
<tr im="A2">
<td>A2</td>
</tr>
<tr im="A3">
<td>A3</td>
</tr>
<tr im="A4">
<td>A4</td>
</tr>
</table>
</form>
</body>
</html>