当前位置: 移动技术网 > IT编程>开发语言>Java > jsp 页面上图片分行输出小技巧

jsp 页面上图片分行输出小技巧

2017年12月12日  | 移动技术网IT编程  | 我要评论
<table border="0" cellpadding="2">
<c:foreach items="${pics}" var="pic" varstatus="status">

<c:if test="${((status.index)%3)==0}"><tr></c:if>

<td>
<input class='input-0-border' name="bk_no" type="radio" value="${pic.piccode}"
<c:if test="${status.index==0}">checked</c:if>
onclick='changeval(this.value)'/>
<c:if test="${not empty(pic.logopath)}"><img src="${pic.logopath}"></c:if>
<c:if test="${empty(pic.logopath)}"><c:out value="${pic.picname}"/></c:if>
<input type="hidden" name="bk_name" value="<c:out value="${pic.picname}"/>">
</td>

<c:if test="${((status.index+1)%3)==0}"></tr></c:if>

</c:foreach>
</table>

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网