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>

相关文章:

  • 2021-09-09
  • 2021-11-13
  • 2021-07-20
  • 2021-12-26
  • 2021-11-16
  • 2022-12-23
  • 2021-06-18
  • 2022-01-10
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-18
  • 2022-12-23
  • 2021-12-14
  • 2022-02-24
  • 2022-12-23
相关资源
相似解决方案