程序员

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

作者:admin 2021-07-14 我要评论

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='In...

在说正事之前,我要推荐一个福利:你还在原价购买阿里云、腾讯云、华为云服务器吗?那太亏啦!来这里,新购、升级、续费都打折,能够为您省60%的钱呢!2核4G企业级云服务器低至69元/年,点击进去看看吧>>>)
<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

版权声明:本文转载自网络,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。本站转载出于传播更多优秀技术知识之目的,如有侵权请联系QQ/微信:153890879删除

相关文章
  • jsp 页面上图片分行输出小技巧

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

  • asp实现防止从外部提交数据的三种方法

    asp实现防止从外部提交数据的三种方法

  • ASP+XML实例演练编程代码第1/3页

    ASP+XML实例演练编程代码第1/3页

  • asp下利用XMLHTTP 从其他页面获取数据

    asp下利用XMLHTTP 从其他页面获取数据