页面里面是这样写的
<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+&amp;titleID=+$id</link>
</column>
</columns>
</view>
我怎样控制能让表格是两行显示?在xml里面加了一个高度的配置似乎不行
<height>30<height>
这样不行

解决方案 »

  1.   

    页面拷贝错误,是下面的
    <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>
      

  2.   

    你把最外层的表格设成你想要的高度呀
    <table width="189" height="400px" border="0" cellpadding="0" cellspacing="0" background="<%=request.getContextPath()%>/resources/theme/images/xt_rightbg2.jpg">
      

  3.   

    在后面加一个<br />试试
      

  4.   

    <td align="center">
    显示的第一行数据<br />
    显示的第二行数据
    </td>你试试
      

  5.   

    你这样
    <div align="center">
    <table>
    </table>
    </div>把<table>包含在<div align="center"></div>中,然后两行数据用<br />隔开