HTML <object> width -Attribut

❮ HTML <object>-Tag

Beispiel

Ein eingebettetes Bild mit einer Höhe von 300 Pixeln und einer Breite von 200 Pixeln:

<object data="pic_trulli.jpg" width="200" height="300"></object>

Definition und Verwendung

Das widthAttribut gibt die Breite des Objekts in Pixel an.


Browser-Unterstützung

Attribute
width Yes Yes Yes Yes Yes

Syntax

<object width="pixels">

Attributwerte

Value Description
pixels The width of the object, in pixels (i.e. width="100")

❮ HTML <object>-Tag