iframe对象如何使用marginheight属性?
的有关信息介绍如下:创建一个名称为 marginheight 的html文件
添加一个框架设置框架的id和height高度为300,width为500 ,marginheight属性值50
添加一个button按钮,在点击事件中加入自定义函数mymarginheight添加一p标签,设置id 为 showmarginheight
在javascript中创建一个自定义函数 mymarginheight
在自定义函数中获取iframe对象。用marginheight属性获取框架距上部和底部的空白区域,将获取的值显示到p标签中
在浏览器中打开文件,点击button查看效果