English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML: <iframe> marginheight-Eigenschaft

Dieser Artikel beschreibt die HTML iframe marginheight-Eigenschaft, die die obere und untere Leerzeilen des <iframe>-Inhalts in Pixeln festlegt, zeigt Beispiele zur Verwendung der HTML iframe marginheight-Eigenschaft, die Kompatibilität der Browser, die Syntaxdefinition und detaillierte Informationen über die Eigenschaftswerte.

 HTML <iframe> Tag

Online Example

An <iframe> with the top and bottom margins set to30 pixels:

<iframe src="demo-<iframe html" marginheight="30"></iframe>
Test it out ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the marginheight attribute.

Definition and Usage

HTML5 The marginheight attribute of <iframe> is not supported. Please use CSS instead.

The marginheight attribute specifies the top and bottom blank margins of the <iframe> content in pixels.

Syntax

<iframe marginheight="pixels">

Attribute Value

ValueDescription
pixelsSpecify the top and bottom blank margins of the <iframe> content in pixels.
 HTML <iframe> Tag