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

background-image Attribute | backgroundImage Property

Internet Development Index

Sets or retrieves the background image of the object.

Syntax

HTML { background-image : sLocation }
Scriptingobject.style.backgroundImage [ = sLocation ]

Possible Values

sLocationString that specifies or receives one of the following values.
noneDefault. Color of the next parent through which the background is visible.
url(sUrl)Location of the background image, where sUrl is an absolute or relative URL.

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 none. 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

The URL identifies the image file. When setting a background image, you can set a background color to use when the image is unavailable. When the image is available, it overlays the background color.

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

Microsoft® Internet Explorer 3.0 supports the background-image attribute, but only when it's set through the background attribute.

Examples

The following examples use the background-image attribute and the backgroundImage property to specify the background's image.

This example uses a call to an embedded (global) style sheet to show and hide the background image.

<STYLE>
.setUrl  { background-image: url(sphere.jpg) }
.loseUrl { background-image: url(none) }
</STYLE>
</HEAD>
<BODY>
<SPAN STYLE="font-size:14" onmouseover="this.className='setUrl'"
onmouseout="this.className='loseUrl'">
. . . </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 show and hide the background image.

<SPAN onmouseover="this.style.backgroundImage='url(sphere.jpeg)'">
. . . </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, 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, P, PLAINTEXT, PRE, runtimeStyle, S, SAMP, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
缙云县| 巩义市| 湾仔区| 新营市| 南城县| 吴桥县| 衡水市| 姚安县| 荃湾区| 广元市| 津市市| 龙岩市| 卢龙县| 炎陵县| 亳州市| 鹤峰县| 阿鲁科尔沁旗| 鹿邑县| 庄河市| 永泰县| 平南县| 龙游县| 嘉义县| 和政县| 克东县| 乾安县| 页游| 贡觉县| 阜康市| 洪泽县| 长阳| 八宿县| 湘西| 汾西县| 四会市| 云南省| 太谷县| 通河县| 淮北市| 无棣县| 讷河市|