我设置了每个td的颜色,当我再设置tr的颜色后,行是不变色的.我知道是跟我设置td的颜色有关.
有没有好的办法,可以覆盖td的颜色.
代码奉上:
<asp:Repeater ID="Rp1" runat="server" OnItemCreated="OnItemCreated" OnItemDataBound="Rp1_OnItemDataBound">
 <HeaderTemplate>
 <table id="caseContainer" width='98%' border='0' cellpadding='0' cellspacing='1'bgcolor='#CCCCCC' class='5B5B5B' style='table-layout: fixed; margin-top: 6px;'>
<tr>
 <td width='8%' height='25px' align='center' bgcolor='#F2F6FE' class='order_text'>
 <strong>案件结果</strong></td>
</tr>
 <tr onmouseover="tempBgColor=this.style.backgroundColor;this.className.='onmouseoverRowColor';" onmouseout="this.style.backgroundColor=tempBgColor">
<td align='center' bgcolor='#FFFFFF'>
<strong>
<%#OpLibrary.CaseResult.GetCaseResult(Eval("caseresult").ToString())%>
</strong>
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>