消息关闭
    暂无新消息!

1个回答

︿ 2

<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript">
<!--
$(document).ready(function(){
  $("#tb1 td:even").each(function(){
if ($(this).text()!=$(this).next().text())
{
$(this).css('color','red');
$(this).next().css('color','red');
}
});
});

//-->
</script>
<body>
<table id="tb1">
<tr>
<td>1</td>
<td>2</td>
<td>成功</td>
<td>成功</td>
<td>3</td>
<td>3</td>
<td>成功</td>
<td>失败</td>
</tr>
</table>