前端颜色和灯对应

<td>
                                        <c:if test="${basebean.WARNLIGHT == '红灯'}">
                                            <b style="color: red;"> ${basebean.WARNLIGHT} </b>
                                        </c:if>
                                        <c:if test="${basebean.WARNLIGHT == '黄灯'}">
                                            <b style="color: yellow;"> ${basebean.WARNLIGHT} </b>
                                        </c:if>
                                        <c:if test="${basebean.WARNLIGHT == '绿灯'}">
                                            <b style="color: green;"> ${basebean.WARNLIGHT} </b>
                                        </c:if>
    
                                    </td>

posted on 2011-12-12 15:57  square198901  阅读(116)  评论(0)    收藏  举报