<style type="text/css"> tr.even{ background-color: blue;} </style>
<script src="../scripts/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('table tr:even').addClass('even'); //even不是偶数的意思吗,按说应该是偶数行加蓝色
}); //
</script>
</head>
<body >
<table >
<tr> <td>odd</td> </tr> //这行变蓝了
<tr> <td>even</td> </tr>
<tr> <td>odd</td> </tr>//这行变蓝了
<tr> <td>even</td> </tr>
</table>
</body>
</html>
------解决方案--------------------