fmpq.com
源代码:
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Fmpq教程(fmpq.com)</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>
运行结果