HTML-<iframe> width -Attribut
Beispiel
Ein <iframe> mit einer angegebenen Höhe und Breite von 200 Pixel:
<iframe src="/default.asp" width="200" height="200"></iframe>
Definition und Verwendung
Das width
Attribut gibt die Breite eines Iframes in Pixeln an.
Die Standardbreite beträgt 300 Pixel.
Browser-Unterstützung
Attribute | |||||
---|---|---|---|---|---|
width | Yes | Yes | Yes | Yes | Yes |
Syntax
<iframe width="pixels">
Attributwerte
Value | Description |
---|---|
pixels | The width in pixels (like "100px" or just "100") |
❮ HTML <iframe>-Tag