还真没听过,哈哈
研究下css吧,
研究下css吧,
解决方案 »
- 动态页面、静态页面的定义是什么呢?
- index.jsp(2,0) Unable to read TLD "META-INF/c.tld" from JAR file
- 一个非常奇怪的问题,大家看是么样解决?
- *** 连接池基础概念解释 (UP有分)
- 急!!!!请看一下,如何用js实现将excel表导入到网页中
- iis与tomcat整合公用80端口,session丢失
- IE浏览器ActiveX控件
- 怎样获得RadioButton按钮状态是否选中~~~~~~~
- 请问,如何在Web页面中调用本地ActiveX控件的方法和属性?
- 问一个关于jfreechart的demo使用的问题
- 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>