HTML <iframe> marginwidthAttribut

HTML iframe 标签参考手册HTML <iframe>-Tag

Beispiele

Ein <iframe> mit 50 Pixeln Abstand links und rechts:

<iframe src="demo_iframe.htm.html" marginwidth="50">
</iframe>

Selbst ausprobieren »

Browser-Unterstützung

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Alle gängigen Browser unterstützen das marginwidth-Attribut.


Definition und Verwendung

HTML5 unterstützt das marginwidth-Attribut von <iframe> nicht. Verwenden Sie stattdessen CSS.

Das marginwidth-Attribut gibt die linken und rechten Ränder des Inhalts eines <iframe> in Pixeln an.


Syntax

<iframe marginwidth="pixels">

Attributwerte

Wert Beschreibung
pixels Gibt die linken und rechten Ränder des Inhalts eines <iframe> in Pixeln an.


HTML iframe 标签参考手册HTML-<iframe>-Tag Andere Erweiterungen