HTML <object> width -Attribut
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 width
Attribut 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