在IE中可行,火狐里不行,为什么呢?
<!DOCTYPE html>
<head>
<meta charset="utf-8" />
<title>AAA</title>
</head>
<body>
<table id="table_test" width="100%" border="2">
<tr>
<td>
<script type="text/javascript">
<!--
document.write("AAA",screen.availHeight,"BBB",screen.height);
-->
</script>
</td>
</tr>
</table>
<script type="text/javascript">
<!--
var height_table=screen.height-120;
document.getElementById("table_test").height=height_table;
-->
</script>
</body>
</html>