jsp控制表格输出
<table width="100%" height="151"  border="1" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <%
for(int i = 1;i<=9;i++){
  %>
          <td>
            <table width="130" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td height="10"></td>
              </tr>
            </table>
            <table width="131" border="1" cellspacing="0" cellpadding="0">
              <tr>
                <td height="125" align="center" background="img/pic_bg1.jpg"> <p>third table 1</p>
                <p> cols 2 </p></td>
              </tr>
              <tr>
                <td height="20" align="center"><span class="font3"><br />
                third table 1 cols2 </span></td>
              </tr>
            </table>
            <table width="130" border="1" cellspacing="0" cellpadding="0">
              <tr>
                <td align="center">third table 2 </td>
              </tr>
            </table></td>
          <%
  if(i%3==0){
out.println("</tr>");
out.println("<tr>");
  }
}
     %>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td align="center" valign="middle"> first table cols two </td>
  </tr>
</table>
lunzi   2006-08-31 16:59:47 评论:0   阅读:8779   引用:0

发表评论>>

署名发表(评论可管理,不必输入下面的姓名)

姓名:

主题:

内容: 最少15个,最长1000个字符

验证码: (如不清楚,请刷新)

Copyright@2004-2010 powered by YuLog