backgroundColor property

[This documentation is preliminary and is subject to change.]

Sets or retrieves the color behind the content of the object.

CSS 2.1, Section 5.3.2

Syntax

Integer value = object.put_backgroundColor(Variant v);Integer value = object.get_backgroundColor(Variant* sColor);

Property values

Type: VARIANT

transparent (transparent)

Default. Color of the next parent object through which the background is visible.

color (color)

Any color value, including those specified in the BUGBUG! missing link text: ie.Color_Table.

String format

<color> | transparent

CSS information

Applies ToAll elements
Mediavisual
Inheritedno
Initial Value

Standards information

Remarks

This property can be set with the other background properties by using the background composite property.

Microsoft Internet Explorer 3.0 supports the background-color attribute, but only when it's set by using the background attribute.

In Windows CE, specifying a value for the background-color property of the OPTION element when applied through the style object has no effect.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

DLL

Mshtml.dll

 

 

Build date: 1/23/2012

Community Additions

Show: