我有一张有类名的桌子
.myTab
,
<table class="table table-bordered myTabl">
<tr style="background:#ff0">
<td>...</td>
</tr>
<tr style="background:#f00">
<td>...</td>
</tr>
<tr style="background:#ff0">
<td>...</td>
</tr>
<tr style="background:#f00">
<td>...</td>
</tr>
</table>
现在我想看看有没有
background:#f00;
if ($(".myTabl table tr").css("background-color") == "f00"){
$(".myTabl table tr").css({"background-color":"ff0"});
}
怎么做?