一个互相嵌套布局问题

kevinpan2009 2013-09-13 02:31:22

1.想左边"A+B"占两列对应右边"A"和"B"俩行的,A.B是<tr>循环处理的,为什么这样写B那一行包不进去呢。
<tr>
<td rowspan="2" align="center"> A+B</td>
<td>
<tr height="20"> <span>
<td nowrap="nowrap"> A</td>
<td nowrap="nowrap">100 </td>
</span>
</tr>
<tr height="20"> <span>
<td nowrap="nowrap">B </td>
<td nowrap="nowrap">10 </td>
</span>
</tr>
</td>
</tr>
2.<tr>循环中套<tr>循环,每次循环前都会空出一行。
<tr height="20">
<th rowspan="7" align="center"> A(B)循环</th>
<td nowrap="nowrap">类型 </td>
<td>值</td>
</tr>
<tr height="20">
<tr>
<td nowrap="nowrap">A1 </td>
<td>A</td>
</tr>
<tr height="20">
<td nowrap="nowrap">B1 </td>
<td nowrap="nowrap">0.3 </td>
</tr>
</tr><tr height="20">
<tr>
<td nowrap="nowrap">A2 : </td>
<td>B</td>
</tr>
<tr height="20">
<td nowrap="nowrap">B2</td>
<td nowrap="nowrap">1.3 </td>
</tr>
</tr>
<tr height="20">
<tr>
<td nowrap="nowrap">A3 : </td>
<td/>
</tr>
<tr height="20">
<td nowrap="nowrap">B31</td>
<td nowrap="nowrap">0.2 </td>
</tr>
<tr height="20">
<td nowrap="nowrap">B32</td>
<td nowrap="nowrap">1 </td>
</tr>
</tr>
用SPAN或者DIV标签去替换最外层的<TR>可去除空行,但要展示的字没了。


弄了俩天了还没整好,特求大牛帮忙~~

...全文
2662 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
kevinpan2009 2013-09-13
  • 打赏
  • 举报
回复
A类型 摘要 费用 款项类型 交费渠道 交易时间 可 A1 100 * A2 5 * A3 -50 * B1 用 C1 VALUE1 * B2 * C2: VALUE1 款 B3 * C31 :VALUE1 * C32 VALUE2 左边一列 ,右边A是一个循环, B,C(LIST)都在一个D循环中
kevinpan2009 2013-09-13
  • 打赏
  • 举报
回复
交易流水 A类型 摘要 费用 款项类型 交费渠道 交易时间 A1 100 A2 5 可 A3 -50 B1 用 C1 VALUE1 B2 C2: VALUE1 款 B3 C31 :VALUE1 C32 VALUE2 B(X),C(X)都是循环出来的,list<MAP<String,Object>> list;list<MAP<String,Object>> list1; String A(x)=list.get(x).get(XXX); String B(X)=list1.get(x).get(XXX); listC C=list1.get(x).get(XXX); C(x)=C.get(i).get(xxxxx)
fzfei2 2013-09-13
  • 打赏
  • 举报
回复
SPAN或者DIV标签去替换最外层的<TR> , table 里是不能这么用的,除非你干脆不用table tr 不能直接 嵌套 tr,只能在 td里 嵌套 table
kkjjww 2013-09-13
  • 打赏
  • 举报
回复
你想做什么????

61,129

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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