HTML <iframe> marginheight 属性
标签" href="tag-main.html"><main>
<map>
<mark>
<menu>
<meta>
<meter>
<nav>
<noframes>
<noscript>
<object>
<ol>
<optgroup>
<option>
<output>
<p>
<param>
<pre>
<html>
<picture>
<progress>
<q>
<rp>
<rt>
<ruby>
<s>
<samp>
<script>
<section>
<select>
<small>
<source>
<span>
<strike>
<strong>
<style>
<sub>
<summary>
<sup>
<table>
<tbody>
<td>
<textarea>
< template>
<tfoot>
<th>
<thead>
<time>
<title>
<tr>
<track>
<tt>
<u>
<ul>
<var>
<video>
<wbr>
HTML <iframe> marginheight 属性
实例
带有 50 像素顶部和底部空白边距的 <iframe>:
<iframe src="demo_iframe.htm" marginheight="50">
</iframe>
</iframe>
浏览器支持
所有主流浏览器都支持 marginheight 属性。
定义和用法
HTML5 不支持 <iframe> marginheight 属性。请使用 CSS 代替。
marginheight 属性规定 <iframe> 内容的顶部和底部的空白边距,以像素计。
语法
<iframe marginheight="pixels">
属性值
| 值 | 描述 |
|---|---|
| pixels | 规定 <iframe> 内容的顶部和底部的空白边距,以像素计。 |
HTML <iframe> 标签