0
下面是代码提供。目前,由于span标签,它突出了文字。但我希望它改变该表值的背景颜色,而不是突出显示文本。我会怎么做呢?更改表背景
<c:choose>
<c:when test="${manifest.manifestRtnedDate == null}">
<td class="backgroundHighLight">
<c:if test="${manifest.daysOpened >35 && manifest.daysOpened < 45 }">
<span style="background-color: #FFFF00"><c:out value="${manifest.daysOpened }"/></span>
</c:if>
<c:if test="${manifest.daysOpened > 45 }">
<span style="background-color: #FF4747"><c:out value="${manifest.daysOpened }"/></span>
</c:if>
</td>
</c:when>
<c:otherwise>
<td>
<c:out value="${ manifest.manifestRtnedDate}" />
</td>
</c:otherwise>
</c:choose>
感谢您的快速回复。这解决了它。 – turtlesallday