HTML <iframe> width-Attribut
Definition und Verwendung
width
Der Attribut definiert die Breite des iframes in Pixeln.
Standardbreite beträgt 300 Pixel.
Beispiel
Definiert einen <iframe> mit einer Höhe und Breite von 200 Pixeln:
<iframe src="/index.html" width="600" height="600"></iframe>
Syntax
<iframe width="pixels">
Attributwert
Wert | Beschreibung |
---|---|
pixels | Gibt die Breite des Inline-Frames an (in Pixeln) (z.B. "100px" oder "100"). |
Browserunterstützung
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Unterstützung | Unterstützung | Unterstützung | Unterstützung | Unterstützung |