说的是同一个事情
http://www.cnblogs.com/jetz/archive/2009/04/16/1436869.html
<script type="text/javascript">
document.write("<DIV class=[*Key*] style=\"height:");
var w=[*Height*]-15;
document.write(w);
document.write("px;\">");
</script>
用来替代
<div class=[*Key*]>
将其高度设置为[*Height*]-15
本文介绍了一种使用JavaScript动态设置DIV元素高度的方法,通过计算特定高度值并利用document.write将其应用到指定的DIV上,实现了高度的动态调整。

被折叠的 条评论
为什么被折叠?



