jsp 页面上图片分行输出小技巧_JSP教程-查字典教程网
jsp 页面上图片分行输出小技巧
jsp 页面上图片分行输出小技巧
发布时间:2016-12-29 来源:查字典编辑
摘要:

<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 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>

相关阅读
推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
  • 大家都在看
  • 小编推荐
  • 猜你喜欢
  • 最新JSP教程学习
    热门JSP教程学习
    编程开发子分类