<table border="1px" cellpadding="0" cellspacing="0" width="200px">
        <tr class="red">
            <th>用户id:</th>
            <th>用户名:</th>
            <th>用户密码:</th>
        </tr>

        <c:forEach items="${UserList}" var="user">

            <c:if test="${user.userid%2==0}">
                <tr class="red">
                    <th>${user.userid}</th>
                    <th>${user.username}</th>
                    <th>${user.pwd}</th>
                </tr>
            </c:if>
            <c:if test="${user.userid%2!=0}">
                <tr class="blue">
                    <th>${user.userid}</th>
                    <th>${user.username}</th>
                    <th>${user.pwd}</th>
                </tr>
            </c:if>

        </c:forEach>
    </table>

 

相关文章:

  • 2021-09-05
  • 2021-07-24
  • 2022-01-06
  • 2021-04-09
  • 2022-01-24
  • 2022-12-23
  • 2021-12-01
猜你喜欢
  • 2021-07-07
  • 2021-05-20
  • 2021-08-06
  • 2021-10-01
  • 2018-10-25
  • 2021-07-13
相关资源
相似解决方案