如何控制表格的高度

shan__le 2007-07-18 09:17:10
页面里面是这样写的
<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>
这样不行
...全文
250 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
shan__le 2007-07-18
  • 打赏
  • 举报
回复
呵呵,这东西已经找到修改方法了,研发的将这个破东西写在一个统一的套用里面了,修改起来比较麻烦,算了,我不搞了,谢谢两位
chenjunxi520 2007-07-18
  • 打赏
  • 举报
回复
你这样
<div align="center">
<table>
</table>
</div>

把<table>包含在<div align="center"></div>中,然后两行数据用<br />隔开
shan__le 2007-07-18
  • 打赏
  • 举报
回复
控制的不在这个td里面,这样作是没有效果的
chenjunxi520 2007-07-18
  • 打赏
  • 举报
回复
<td align="center">
显示的第一行数据<br />
显示的第二行数据
</td>

你试试
shan__le 2007-07-18
  • 打赏
  • 举报
回复
加br的做法是不对的,这样数据始终是在表格顶头,而不是中间位置
chenjunxi520 2007-07-18
  • 打赏
  • 举报
回复
在后面加一个<br />试试
shan__le 2007-07-18
  • 打赏
  • 举报
回复
设置过了,好像没有作用
xredleaf 2007-07-18
  • 打赏
  • 举报
回复
你把最外层的表格设成你想要的高度呀
<table width="189" height="400px" border="0" cellpadding="0" cellspacing="0" background="<%=request.getContextPath()%>/resources/theme/images/xt_rightbg2.jpg">
shan__le 2007-07-18
  • 打赏
  • 举报
回复
页面拷贝错误,是下面的
<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>

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧