页面里面是这样写的
<table width="100" border="0" cellspacing="0" cellpadding="0">
<tr> <td><img src="<%=request.getContextPath()%>/resources/theme/images/xt_right.jpg" width="194" height="38"></td> </tr>
</table>
xml的数据读取是这样的
<?xml version="1.0" encoding="gb2312"?>
<view>
<type>common</type>
<unid>id</unid>
<sql>select *</sql>
<tables>plantitles</tables>
<filters>
<filter>status=0</filter>
</filters>
<order>cdate desc</order>
<rows>14</rows>
<columns>
<column>
<title>标题</title>
<property>$title</property>
<filedtype>string</filedtype>
<width>90%</width>
<length>40</length>
<align>center</align>
<link>/PlansAction?action=edit+&titleID=+$id</link>
</column>
</columns>
</view>
我怎样控制能让表格是两行显示?在xml里面加了一个高度的配置似乎不行
<height>30<height>
这样不行
<table width="100" border="0" cellspacing="0" cellpadding="0">
<tr> <td><img src="<%=request.getContextPath()%>/resources/theme/images/xt_right.jpg" width="194" height="38"></td> </tr>
</table>
xml的数据读取是这样的
<?xml version="1.0" encoding="gb2312"?>
<view>
<type>common</type>
<unid>id</unid>
<sql>select *</sql>
<tables>plantitles</tables>
<filters>
<filter>status=0</filter>
</filters>
<order>cdate desc</order>
<rows>14</rows>
<columns>
<column>
<title>标题</title>
<property>$title</property>
<filedtype>string</filedtype>
<width>90%</width>
<length>40</length>
<align>center</align>
<link>/PlansAction?action=edit+&titleID=+$id</link>
</column>
</columns>
</view>
我怎样控制能让表格是两行显示?在xml里面加了一个高度的配置似乎不行
<height>30<height>
这样不行
<table width="189" height="400" border="0" cellpadding="0" cellspacing="0" background="<%=request.getContextPath()%>/resources/theme/images/xt_rightbg2.jpg">
<tr>
<td height="400" valign="top">
<table width="100" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="<%=request.getContextPath()%>/resources/theme/images/xt_pic.jpg" width="188" height="117"></td>
</tr>
</table>
<!--view link start-->
<%
out.print(viewLinkList.toString());
%> <!--view link start-->
</td>
</tr>
</table>
<table width="189" height="400px" border="0" cellpadding="0" cellspacing="0" background="<%=request.getContextPath()%>/resources/theme/images/xt_rightbg2.jpg">
显示的第一行数据<br />
显示的第二行数据
</td>你试试
<div align="center">
<table>
</table>
</div>把<table>包含在<div align="center"></div>中,然后两行数据用<br />隔开