最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

background-color Attribute | backgroundColor Property

Internet Development Index

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

Syntax

HTML { background-color : sColor }
Scriptingobject.style.backgroundColor [ = sColor ]

Possible Values

sColorVariant that specifies or receives one of the following values.
transparentDefault. Color of the next parent object through which the background is visible.
colorAny color value, including those specified in the Color Table.

The property is read/write for all objects except the following, for which it is read-only: currentStyle. The property has a default value of transparent. The Cascading Style Sheets (CSS) attribute is not inherited.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.

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.

Examples

The following examples use the background-color attribute and the backgroundColor property to specify the background color.

This example uses an inline style sheet to set the background color to beige.

<SPAN STYLE="font-size:14; background-color:beige">
. . . </SPAN>
This feature requires Microsoft® Internet Explorer 4.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

This example uses inline scripting to set the background color to beige.

<SPAN onmouseover="this.style.backgroundColor='beige'">
. . . </SPAN>
This feature requires Microsoft® Internet Explorer 4.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Standards Information

This property is defined in Cascading Style Sheets (CSS), Level 1 (CSS1) Non-Microsoft link.

Applies To

A, ADDRESS, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, currentStyle, CUSTOM, DD, defaults, DFN, DIR, DIV, DL, DT, EM, FIELDSET, FORM, hn, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, NOBR, OL, OPTION, P, PLAINTEXT, PRE, runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
上饶市| 枣庄市| 瓦房店市| 凤阳县| 微山县| 柯坪县| 永川市| 吴旗县| 岑溪市| 玛曲县| 阳山县| 嘉祥县| 信宜市| 罗城| 达孜县| 麻城市| 雷州市| 双城市| 城固县| 平原县| 浮梁县| 家居| 大足县| 常山县| 安宁市| 宣汉县| 乌拉特前旗| 防城港市| 纳雍县| 定陶县| 鲜城| 大名县| 丰城市| 容城县| 楚雄市| 洪湖市| 舟山市| 芦山县| 静宁县| 奉节县| 武山县|