English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
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.
An <iframe> with the top and bottom margins set to30 pixels:
<iframe src="demo-<iframe html" marginheight="30"></iframe>Test it out ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the marginheight attribute.
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.
<iframe marginheight="pixels">
Value | Description |
---|---|
pixels | Specify the top and bottom blank margins of the <iframe> content in pixels. |