<td width="56" align="center" height="22">
<font <%if(obj2[17]>0){%>color="#000000" <%}else{%>color="#FF0000"<%}%>><%
out.print(format.format(obj2[17]));
%></font>
</td>
在上面的表格里,当obj2[17]中存的数不小于0时,显示成红色,当小于0时显示黑色,怎样判断?麻烦帮我改下,谢谢
<font <%if(obj2[17]>0){%>color="#000000" <%}else{%>color="#FF0000"<%}%>><%
out.print(format.format(obj2[17]));
%></font>
</td>
在上面的表格里,当obj2[17]中存的数不小于0时,显示成红色,当小于0时显示黑色,怎样判断?麻烦帮我改下,谢谢
解决方案 »
- struts标签 的 textfield 如何获取request里的对象的属性值??
- 急!!!在线等 java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]System Exception: Socket closed
- 简单正则表达式问题?
- mysql与oracle建表语句有什么异同?
- 想把自已的机器用来做JSP的服务器,具体怎么做?
- 访问sqlserver2000时出错,急!!!
- checkbox问题
- spring的一个 类型转换问题
- [请教]Servlet无法运行
- 大虾帮忙看看为何打开文件出错啊
- JSP传值出现乱码问题
- myEclipse中的web.xml文件显示效果变了?急急急!!!
<%
if(obj2[17]>=0) out.println("<font color=red"); else out.println("<font color=black");
%>
<%
out.print(format.format(obj2[17]));
%>
</font>
</td>
<%
if(obj2[17]>=0)
%>
<font color=“red")>out.println(" ")</font>
<%
else
%>
<font color=“black")>out.println(" ")</font>
</td>
<td width="56" align="center" height="22" background-color="red">...</td>
<%}else{%>
<td width="56" align="center" height="22" background-color="black">...</td>
<%}%>