当前位置:主页 > 查看内容

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

发布时间:2021-07-14 00:00| 位朋友查看

简介: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=……
<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>


本文转载自网络,原文链接:https://m.jb51.net/article/17863.htm
本站部分内容转载于网络,版权归原作者所有,转载之目的在于传播更多优秀技术内容,如有侵权请联系QQ/微信:153890879删除,谢谢!

推荐图文


随机推荐