(0) exportieren Drucken
Alle erweitern
EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

width attribute | width property

Sets or retrieves the width of the object.

Syntax

HTML<element width="p" ... >
JavaScript

p = object.width

 

Property values

Type: Variant

width

Integer that specifies the width of the object in pixels.

percentage

String that specifies an integer value followed by a %. The value is a percentage of the width of the parent object.

Standards information

Remarks

This property is an integer value. Although an HTML author can specify the width as a percentage, this property always specifies the width in pixels in C++.

In Microsoft Internet Explorer 5 it is possible to set the width property, but doing so has no effect on the rendering of the frame.

See also

col
colGroup
embed
frame
frameSet
iframe
object
table

 

 

Anzeigen:
© 2014 Microsoft