我设置了每个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>
有没有好的办法,可以覆盖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>
解决方案 »
- onclick()事件无效
- FTP网站XML组织错误
- 谈谈IE,Firfox,Chome,Safari中CSS和JS的区别
- 紧急求助,url重写问题
- regularexpressionvalidator表达式问题,小数点数字不大于5位,小数点后不多于2位.可以没有小数
- 如何让freetextbox或fckedit支持图片自动上传?
- 请大家帮忙解决一下,那些论坛里的那种编辑器是如果设计和制做的?
- webservice外部事务如何同步服务和客户端的数据
- 怎么调用 用户控件(ascx)里的方法
- 20M的ACCESS数据库空间大约有多大?能存放多少个表?多少条记录?
- 不同级域名下NET2.0脚本问题。。我不知道该如何描述。。
- 什么论坛整合比较方便?
应该是这个
先顶个