CSS background-image attribute, cssbackgroundimage

Source: Internet
Author: User

CSS background-image attribute, cssbackgroundimage

Definition and usage of the background-image attribute:
Sets or retrieves the background image of an object.
When both the background image and background color are set, the background image will overwrite the background color.
The corresponding script feature is backgroundImage.
Syntax structure:

background-image:none|<url>|<linear-gradient>|<radial-gradient>|<repeating-linear-gradient>|<repeating-radial-gradient>

Valid value:
None: no background image. Default Value.
<Url>: Specify the background image with an absolute or relative address.
<Linear-gradient>: uses a linear gradient to create a background image. (CSS3)
<Radial-gradient>: Uses radial (radioactive) gradient to create a background image. (CSS3)
<Repeating-linear-gradient>: Creates a background image using a repeated linear gradient. (CSS3)
<Repeating-radial-gradient>: uses repeated radial (radioactive) gradient to create a background image. (CSS3)
Browser support:
Internet Explorer supports this attribute.
Firefox supports this attribute.
Google Chrome supports this attribute.
Operabrowser supports this attribute.
Note: 1. IE8 and earlier Browsers Do not support CSS3 background-image, that is, they do not support multi-background and gradient as background images.
2. IE9 does not support adding a parameter value to CSS3: <linear-gradient> <radial-gradient >|< repeating-linear-gradient >|< repeating-radial-gradient> as the background image.
3. Opera11.50-11.51 does not support the addition of CSS3 parameter values: <linear-gradient> <repeating-radial-gradient> as the background image.
Inheritance:
No inheritance.
Instance code:

<! DOCTYPE html> 

The original Article address is CSS background-image attributes.

For more css knowledge, see http://www.softwhy.com/divcss/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.