本文实例讲述了JS获取iframe中marginHeight和marginWidth属性的方法。分享给大家供大家参考。具体如下: <!DOCTYPE html> <html> <body> <iframe id="myframe" src="demo_iframe.htm" marginheight="50" marginwidth="50"> Your browser does not support iframes. </iframe> The value of the marginheight