HTML <iframe> 标签的 marginheight 属性

定义和用法

marginheight 属性规定 iframe 的顶部和底部的空白边距,以像素计。

实例

带有 50 像素顶部和底部空白边距的 iframe:

<iframe src ="/index.html" marginheight="50px">
<p>Your browser does not support iframes.</p>
</iframe>

TIY

语法

<iframe marginheight="value">

属性值

描述
pixels 规定 iframe 的顶部和底部的空白边距,以像素计。