Ads
JavaScript 代码实例
查看JavaScript的代码实例源码, 并使用JS参考的在线编程调试工具
源代码
x
<html>
<head>
<meta charset="utf-8">
<title>开发测试教程(devqa.cn)</title>
</head>
<body>
<iframe id="myframe" src="demo_iframe.htm" marginheight="50" marginwidth="50">
<p>你的浏览器不支持iframes。</p>
</iframe>
<br><br>
<p>marginheight属性的值为:
<script>
document.write(document.getElementById("myframe").marginHeight);
</script>
<p>
</body>
</html>