本文档基于 CC协议(Creative Commons Share-Alike License)发布,是developer.mozilla.com, www.mozref.comwww.aptana.com共同劳动的成果。

background-image

Specifies the URL for a background image for an element.

Browser/User Agent Support

IENetscapeMozillaOperaSafari
4.0+4.0+1.0+4.0+1.0+

Usage

[url(image-url) | "none" ]

Example

To specify a background image in an "images" directory named myCat.jpg, use the following syntax: body {background-image: url(images/myCat.jpg)}.

Availability

W3C CSS2

Related