好的, 所以这里是我的问题..和它的buggin我一段时间... 我需要在此TD内设置以下DIV 100%高度,没有任何副作用(由于我的意思是滚动),因为一些未知的原因,当我把它设置为100%的高度,看起来像IE 8做了一些错误的计算.. 我试了很多组合,但没有成功.. transitional doctype是必需的... 在此先感谢您的帮助!100%高度div内100%td
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<style>
html, body
{
height:100%;
margin:0px;
padding:0px;
}
</style>
<head>
<body>
<table style="height:100%" border="1">
<tr>
<td>TOP</td>
</tr>
<tr style="height:100%">
<td style="height:100%">
<div style="border:1px dotted blue; height:100%">CONTENT</div>
</td>
</tr>
</table>
</body>
</html>
...您是否使用表格来布置非表格数据? ... – jball 2010-12-22 23:57:49
@jball:男人,我很久以前就停止了那场战斗。这场战斗太过艰难。另外,标题样式和内联样式的混合也有点令人不安。 – David 2010-12-23 00:03:08