jsp制御テーブル出力
2080 ワード
<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>