table height=100% 不起作用
2009-12-17 12:33
363 查看
只需要在<td> 里加入 height=1 即可
[html]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<table width="390" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="182" bgcolor="#99CCCC"><p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p></td>
<td width="208" height="1" valign="top" bgcolor="#CCCC66"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFCCCC">
<tr>
<td> </td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
[/html]
[html]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<table width="390" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="182" bgcolor="#99CCCC"><p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p></td>
<td width="208" height="1" valign="top" bgcolor="#CCCC66"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFCCCC">
<tr>
<td> </td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
[/html]
相关文章推荐
- height:100%不起作用!
- 100% Table Height
- 如何让 height:100%; 起作用
- w3c标准自适应高度height100%不起作用的问题
- table和div设置height:100%无效的完美解决方法
- 如何让 height:100%; 起作用
- css中height:100%不起作用的解决方法 项目个案
- table和div设置height:100%无效的完美解决方法
- 如何让 height:100%; 起作用
- css中height:100%不起作用的解决方法
- w3c标准自适应高度height100%不起作用的问题分析
- [转]table和div设置height:100%无效的完美解决方法
- css里height:100%不起作用
- 让 height:100%; 起作用
- 如何让 height:100%; 起作用
- 如何让 height:100%; 起作用
- css中height:100%不起作用的解决方法
- 给body设置height:100%不起作用?
- height:100%不起作用(无效),div全屏
- w3c标准自适应高度height100%不起作用的问题