HTML <frame> marginheightAttribute

HTML frame 标签参考手册HTML <frame> tag

Examples

The top and bottom margins of the first frame are 50 pixels, and the top and bottom margins of the second frame are 0 pixels:

<frameset cols="50%,50%">
  <frame src="frame_a.htm.html" marginheight="50">
  <frame src="frame_b.htm.html" marginheight="0">
</frameset>

Try it Yourself »

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the marginheight attribute.


Definition and Usage

HTML5 does not support the <frame> tag.

The marginheight attribute specifies the height, in pixels, between the frame content and the top and bottom of the frame.


Syntax

<frame marginheight="pixels">

Attribute Values

Value Description
pixels Specifies the top and bottom margins of the frame.


HTML frame 标签参考手册HTML <frame> tag Other extensions