<iframe id="phpernote" src="www.phpernote.com"></iframe> <script type="text/javascript"> var iframe=document.getElementById('phpernote'); document.write(iframe.scrollHeight);//滚动条高度 document.write(iframe.scrollWidth);//滚动条宽度 </script>