window.parent跟window.opener区别 及iframe自适应高度及js offsetheight和scrollheight的区别
window.parent和window.opener区别 及iframe自适应高度及js offsetheight和scrollheight的区别result.inne
window.parent和window.opener区别 及iframe自适应高度及js offsetheight和scrollheight的区别
result.innerHTML += "innerDiv.offsetHeight: " + innerDiv.offsetHeight + "<br />";
result.innerHTML += "outerDiv.clientHeight: " + outerDiv.clientHeight + "<br />";
result.innerHTML += "outerDiv.offsetHeight: " + outerDiv.offsetHeight + "<br />";
}
</script>
</head>
<body>
<div id="outerDiv" id="innerDiv">
Hello world.
</div>
</div>
<p></p>
<div id="result">
</div>
<input type="button" onclick="checkClientHeight()" text="Click Me" Value="Click Me" />
</body>
</html>