iterator 循环 tr td 怎么循环成3行4列有代码
发布时间:2010-05-31 07:02:23 文章来源:www.iduyao.cn 采编人员:星星草
iterator 循环 tr td 如何循环成3行4列有代码
<s:iterator value="list" id="cc" status="st">
<table width="143" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="center" style="padding-top:10px;">
<s:if test="#cc=='by'">
<div style="float:left;padding:2px;margin-right:5px;margin-left:10px;margin-bottom:10px;">
<table width="143" height="125" border="0" cellpadding="0" cellspacing="0" background="./website_img/shop/shopIMG2.png">
<tr>
<td align="center" style="padding-top:10px;"><img src="images/star/by.jpg" width="64" height="65"/></td>
</tr>
<tr>
<td align="center"><div id="div" style="font-weight:bold;"> <a style="cursor:default" >白羊座</a></div></td>
</tr>
</table>
</div>
</s:if>
<s:elseif test="#cc=='jn'">
<div style="float:left; padding:2px;margin-right:5px;margin-left:10px;margin-bottom:10px;">
<table width="143" height="125" border="0" cellpadding="0" cellspacing="0" background="./website_img/shop/shopIMG2.png">
<tr>
<td align="center" style="padding-top:10px;"><img src="images/star/jn.jpg" width="64" height="65"/></td>
</tr>
<tr>
<td align="center"><div id="div" style="font-weight:bold;"> <a style="cursor:default" >金牛座</a></div></td>
</tr>
</table>
</div>
</s:elseif>
<s:elseif test="#cc=='szz'">
<div style="float:left; padding:2px;margin-right:5px;margin-left:10px;margin-bottom:10px;">
<table width="143" height="125" border="0" cellpadding="0" cellspacing="0" background="./website_img/shop/shopIMG2.png">
<tr>
<td align="center" style="padding-top:10px;"><img src="images/star/szz.jpg" width="64" height="65"/></td>
</tr>
<tr>
<td align="center"><div id="div" style="font-weight:bold;"> <a style="cursor:default" >双子座</a></div></td>
</tr>
</table>
</div>
</s:elseif>
<s:elseif test="#cc=='jx'">
<div style="float:left; padding:2px;margin-right:5px;margin-left:10px;margin-bottom:10px;">
<table width="143" height="125" border="0" cellpadding="0" cellspacing="0" background="./website_img/shop/shopIMG2.png">
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。
其他相似内容:
-
一段JS代码看不懂
JScript code
function Designer_Builder(designer) {
//属性
this.owner = designer || null;
。。。...
-
共享struts2.1.8+Hibernate3.3+spring2.5.6+extjs3.2的最新版图书管理系统,奋战两周。
写这个系统,是学习的目的,不是真正当项目写...
-
postgreSQL有没有contains函数?
update base_admin set allchildid=allchildid||'00' where CONTAINS(allchildid,'test')
报此错...
-
ssh整合问题,老是提示连接已关闭!
在网上下的一个ssh整合例子,例子是使用的mysql数据库 ,我改成了sqlserver,老是报连接已关闭的错误!高...
-
jsp新手求助,那位大虾进来看看
1楼
我用的是EditPlus来编写jsp页面,我也安装了Tomcat 5.0的jsp引擎,但是我在Editplus编写好了jsp代...
-
apache的HttpClient4.x如何实现跨域访问
请问httpclient如何实现跨域的登录及登录后访问。比如登录为login.xxx.net/login.do,查询...
-
请教一个gson转换的问题
String hql="from VdDicMedicine where c17='1'";
List<VdDicMedicine> list=dao.getList(hql);
...
-
jsp跳转到servlet
[b][/b]晕死啊,我在jsp跳转到servlet这个页面老是出现404错误,我的一些歌环境配置我可以检查了好几遍没发现什么...
-
小弟问个java流读取的问题
image_location是形如/xxxx/image_tmp/2007/6/1/14/的 路径字符串
目的是想 从 /xxxx/image_...
-
struts上传图片
请求帮助 我把图片上传到服务器端,怎么在获得这个图片啊
我获得图片在tomcat下的路径 为什么获得不到图片??
----...