在表格中如何判断条件语句

来源:百度知道 编辑:UC知道 时间:2024/05/13 09:43:50
<tr>

<td height="20" class="tablelist_td1"><%=rs("selldate")%></td>
<td height="20" class="tablelist_td1"><div align="center"><%=rs("usrName")%></a></div></td>

<td height="20" class="tablelist_td1"><div align="center"><%if trim(rs("totalQuota"))>trim(rs("totalSales")) then %> <font color="red"><% else %><font color="Blue"><%=rs("totalQuota")%></div></td><%end if%>
<td height="20" class="tablelist_td1"><div align="center"> <%if totalQuota>totalSales then %><font color="red"><% else %><font color="Blue"><%=rs("totalSales")%></di

<td height="20" class="tablelist_td1"><div align="center"><%if trim(rs("totalQuota"))>trim(rs("totalSales")) then %> <font color="red"><% else %><font color="Blue"><%end if%><%=rs("totalQuota")%></div></td>
<td height="20" class="tablelist_td1"><div align="center"> <%if totalQuota>totalSales then %><font color="red"><% else %><font color="Blue"><%end if%><%=rs("totalSales")%></div></td>
这样就行了