<html>
<head>
<title></title>
</head>
<body>
<div id="sample" style="width:50px">中华人民共和国中华人民共和国中华人民共和国中华人民共和国中华人民共和国</div>
<script>
alert(document.getElementById("sample").clientHeight);
</script>
</body>
</html>
<head>
<title></title>
</head>
<body>
<div id="sample" style="width:50px">中华人民共和国中华人民共和国中华人民共和国中华人民共和国中华人民共和国</div>
<script>
alert(document.getElementById("sample").clientHeight);
</script>
</body>
</html>
<div style="background-color: #ff6699;">1111<br />22222<br /></div>
<div style="background-color: #6699ff;">1111<br />22222<br />333333<br /></div>
<script type="text/javascript">
<!--
var colDiv = document.getElementsByTagName("div");
for (var i=0; i<colDiv.length; i++)
{
colDiv[i].onclick = function() {
alert(this.offsetHeight);
};
}
//-->
</script>
</body>