HTML iframe marginheight property
Examples
50 pixels with the top and bottom blank margins <iframe>:
<iframe src="demo_iframe.htm" marginheight="50">
</iframe>
</iframe>
try it"
Browser Support
All major browsers support marginheight property.
Definition and Usage
HTML5 does not support the <iframe> marginheight property. Use CSS instead.
marginheight attribute specifies the blank margin at the top and bottom of the <iframe> content, in pixels.
grammar
<iframe marginheight="pixels">
Property Value
值 | 描述 |
---|---|
pixels | 规定 <iframe> 内容的顶部和底部的空白边距,以像素计。 |
HTML <iframe> tag