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 @ 2022-12-02 16:08  翘中之楚  阅读(48)  评论(0编辑  收藏  举报