jsp根據某一行顏色來其他行的顏色
阿新 • • 發佈:2017-10-11
單選框 單選 其他 color gre == test nbsp black
jsp根據某一行顏色(單選框)來其他行的顏色
<c:choose>
<c:when test="${v.color==‘黑色‘ }">
<td style="color:black">${v.name }</td>
</c:when>
<c:when test="${v.color==‘紅色‘ }">
<td style="color:red">${v.name }</td>
</c:when>
<c:when test="${v.color==‘白色‘ }">
<td style="color:green">${v.name }</td>
</c:when>
</c:choose>
jsp根據某一行顏色(文本框)來其他行的顏色
<c:if test="${v.color==‘黑色‘ }">
<td style="color:black">${v.name }</td>
</c:if>
<c:if test="${v.color==‘紅色‘ }">
<td style="color:red">${v.name }</td>
</c:if>
<c:if test="${v.color==‘白色‘ }">
<td style="color:green">${v.name }</td>
</c:if>
jsp根據某一行顏色來其他行的顏色