标签:for pad table 用户 username cell user test order
<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>
标签:for pad table 用户 username cell user test order
原文地址:https://www.cnblogs.com/bichen-01/p/11887565.html