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

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

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

  2021-03-17 我要评论
想了解jsp 页面上图片分行输出小技巧的相关内容吗,在本文为您仔细讲解jsp 图片分行的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:jsp,页面,图片分行,下面大家一起来学习吧。
<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>

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们