jsp页面判定某个变量值的时候改变颜色

<td>
<c:if test="${v.price>'15' }">
<font color="yellow">${v.price }</font>
</c:if>
<c:if test="${v.price<'0' }">
<font color="red">${v.price }</font>
</c:if>
<c:if test="${v.price>='0'and v.price<='15' }">
<font color="black">${v.price }</font>
</c:if>
</td>

posted @ 2017-10-11 12:16  但为君故L  阅读(1789)  评论(0编辑  收藏  举报