<script type="text/javascript">
// 获得可见区域宽度
var width = document.documentElement.clientWidth;
// 获得可见区域的高度
var height = document.documentElement.clientHeight;
alert(height);
</script>
// 获得可见区域宽度
var width = document.documentElement.clientWidth;
// 获得可见区域的高度
var height = document.documentElement.clientHeight;
alert(height);
</script>
本文介绍了一种使用JavaScript代码来获取浏览器可视区域宽度和高度的方法,并通过弹窗显示高度值。
747

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



