还真没听过,哈哈
研究下css吧,
研究下css吧,
解决方案 »
- 逻辑删除
- 虚心学习web页面的显示控制..请前辈们指教...
- struts 跳转地址栏变化 request公用
- 在网页中调用包含jfreechart的applet的问题,救命啊
- 怎么从循环中跳出来?
- hibernate怎么得到数据库信息?
- 在java中如何让传入的String语句当 java的运行语句能过运行呢?
- tomcat4.0+jdk1.4配置 更改tomcat 目录设定怎么办!
- 哪位大哥知道怎么向数据库中存取图片呀!!
- 关于JDBC 的 RESULTSET 的方法,高手请进!!!解决问题马上送分!!!
- Struts与Hibernate实用教程--构建基于MVC模式的高效Java Web应用电子书谁有啊?
- 302 Moved Temporarily 和302 Found 有什么区别?为什么在302 Found的Header 里找不到location这个属性?
应该是前台美工的做的事啊.
用Drdeamweaver 自己就可以啊
比如 图片为 名称 1 2 3 4
现在图片查询出来摆放的位置是
1
2
3
4
这样
而我想要的是
1 2 3 4 这样摆放
下面是程序<table width="714" height="214" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><table width="177" height="215" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="257">
<table width="177" height="262" border="0" cellpadding="0" cellspacing="0">
<% response.setCharacterEncoding("UTF-8"); int i=0; List Partial = null; Partial=DAOFactory.getproductDAOinstance().queryPartial();
Iterator iter2 = Partial.iterator();
while(iter2.hasNext())
{
Product product1 = (Product)iter2.next();
i++;
// 进行循环输出 从数据库中取内容. int productid= product1.getId();
String name = product1.getName();
float saleprice = product1.getSaleprice();
<tr>
<td height="145"><div align="center"><img src="indexshow.jsp?id=<%=productid%>" width="154" height="123"></div></td>
</tr>
<tr>
<td height="28"><div align="center">名称: <%=name%></div></td>
</tr>
<tr>
<td height="28"><div align="center">会员价:¥<%=saleprice%></div></td>
</tr>
<tr>
<td height="38"><div align="center"><a href="Detailedinformation.jsp?id=<%=productid%>"><img src="img/icon_car.gif" width="94" height="25" border="0"></a></div></td>
</tr>
<tr>
<td height="5"> </td>
</tr>
<%
}
if(i==0)
{
//i 等于0 代表没有信息.则出提示
%>
<tr valign="top">
<td>没有任何内容</td>
</tr>
<%
}
%>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
你写在<tr>前面肯定了,<tr>是一行啊。。
<tr>
<logic:iterate id="temp" name="templatearray" indexId="index">
<td>
<bean:write name="temp" property="templatename" />
</td>
<%-- 控制换行,每行4列 --%>
<c:if test="${(index+1)%4 == 0}">
</tr>
<tr>
</c:if>
</logic:iterate>
</tr>
</table>
能帮我改下 再发出来不
while(){<td></td>}
</tr>
理解了html就很简单的啊。tr是一行,td是个单元格
while(){<td></td>}
</tr>