Sets the background color behind the object.
dhtml语法
HTML |
<ELEMENT BGCOLOR=sColor ... >
|
---|
Scripting | N/A |
---|
DHTML可能的值
sColor | String that specifies one of the color names or RGB values in the color table. |
remarks
microsoft® jscript® supports the entire set of colors as color names and as their corresponding rgb values. however, jscript always returns the property as a string specifying the rgb color value, regardless of the format the value was set to.
some browsers do not recognize color names, but all browsers should recognize rgb color values and display them correctly.
是否符合公共标准
This attribute is a Microsoft extension to
HTML and
is defined in
World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .
Applies To
更多语法参考
background, bgColor