AutoCAD 3DMAX C语言 Pro/E UG JAVA编程 PHP编程 Maya动画 Matlab应用 Android
Photoshop Word Excel flash VB编程 VC编程 Coreldraw SolidWorks A Designer Unity3D
 首页 > JavaScript

JS获取iframe中marginHeight和marginWidth属性的方法

51自学网 http://www.51zixue.net
JS,获取,iframe,marginHeight,marginWidth,属性

本文实例讲述了JS获取iframe中marginHeight和marginWidth属性的方法。分享给大家供大家参考。具体如下:

<!DOCTYPE html><html><body><iframe id="myframe" src="demo_iframe.htm" marginheight="50" marginwidth="50"><p>Your browser does not support iframes.</p></iframe><br><br><p>The value of the marginheight attribute and marginwidth are:<script>document.write(document.getElementById("myframe").marginHeight);document.write(document.getElementById("myframe").marginWidth);</script><p></body></html>

希望本文所述对大家的javascript程序设计有所帮助。


JS,获取,iframe,marginHeight,marginWidth,属性  
上一篇:JS获取iframe中longdesc属性的方法  下一篇:JS去除iframe滚动条的方法