62,614
社区成员
发帖
与我相关
我的任务
分享
<TABLE>
<% while (rs.next()) { %>
<TR>
<TD><%=rs.getString(1)%></TD>
<TD><%=rs.getString(2)%></TD>
...
</TR>
<% } %>
</TABLE>
<w:tbl>
<!-- 表格的各种边距等总体设置 -->
<w:tblPr>
<w:tblW w:w="0" w:type="auto"/>
<w:tblBorders>
<w:top w:val="single" w:sz="4" w:space="0" w:color="auto"/>
<w:left w:val="single" w:sz="4" w:space="0" w:color="auto"/>
<w:bottom w:val="single" w:sz="4" w:space="0" w:color="auto"/>
<w:right w:val="single" w:sz="4" w:space="0" w:color="auto"/>
<w:insideH w:val="single" w:sz="4" w:space="0" w:color="auto"/>
<w:insideV w:val="single" w:sz="4" w:space="0" w:color="auto"/>
</w:tblBorders>
<w:tblLook w:val="04A0" w:firstRow="1" w:lastRow="0" w:firstColumn="1" w:lastColumn="0" w:noHBand="0" w:noVBand="1"/>
</w:tblPr>
<!-- 表格列信息 -->
<w:tblGrid>
<w:gridCol w:w="2840"/>
<w:gridCol w:w="2841"/>
<w:gridCol w:w="2841"/>
</w:tblGrid>
<% while (rs.next()) { %>
<!-- 表格的每行 -->
<w:tr w:rsidR="00E86A1B" w:rsidTr="004C7A91">
<!-- 该行的单元格 -->
<w:tc>
<!-- 单元格的格式 -->
<w:tcPr>
<w:tcW w:w="2840" w:type="dxa"/>
<w:shd w:val="clear" w:color="auto" w:fill="auto"/>
</w:tcPr>
<!-- 单元格内容 -->
<w:p w:rsidR="00E86A1B" w:rsidRDefault="00E86A1B">
<w:r>
<w:rPr>
<w:rFonts w:hint="eastAsia"/>
</w:rPr>
<!-- 这里才是文字 -->
<w:t> <%=rs.getString(1)%> </w:t>
</w:r>
</w:p>
</w:tc>
</w:tr>
<% } %>
</w:tbl>