白百合离婚:ASP:如何获得网页body的高度?
来源:百度文库 编辑:中科新闻网 时间:2024/07/06 18:07:48
<script>
alert(document.body.height);
</script>
这么写不行,那该怎么写?
alert(document.body.height);
</script>
这么写不行,那该怎么写?
这样改
<script>
alert(document.body.clientHeight);
</script>
也就是说将height改为clientHeight