作者tomex (tomex_ou)
看板Web_Design
标题[问题]XHTML的height=100%分配?
时间Sat Jun 10 09:08:19 2006
在传统html里,当一个table内的<td>设为height=100%
代表它使用剩余自动调配100%的高度。
但xhtml里,这个height=100%造成一定是页面的高度
而不是跟其他<td>分享高度
造成scroll bar一直拉个不停。
例如总页面共600px:
<table>
<tr style="height:10px">
<td>up</td>
</tr>
<tr> //应该是590px,但up却会平均高度! 只有用100%高度,但scroll bar出现
<td>down</td>
</tr>
</table>
请问我该怎麽让height=100%是使用剩余的高度呢?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.119.20.171
※ 编辑: tomex 来自: 140.119.20.171 (06/10 09:29)
1F:推 LPH66:在table上用height=100%? 06/10 11:24
2F:推 tomex:没用呀! 不管在那一阶用100%,它就是绝对的100%,而非剩余 06/10 14:18
3F:推 weipuyan:<table style="height:100%"> 06/11 03:03