{CSS} "background"

Source: Internet
Author: User
Background is a very important CSS property

There are 9 different attributes, 1 background, and the other 8 are branches:

1. Background:

This is the ellipsis, you can write all the other 8 properties in one;

2. Background-color; Color

3. Background-image; Background map

URL (address)

4.background-position; Background map position

There are three types of units in the location:

(px,%, words)

5.background-repeat Background Tiling Shop

Repeat Fully tiled

No-repeat; Uneven Shop

Repeat-x: X-axis tiling

Repeat-y: Y-axis tiling

6.background-attachment Background Map fixed

Only 2 options are available:

Fixed always in one position;

Scroll position in the entire document, similar to absolute

The other 3 are the new attributes of CSS3.

Clip (Draw area), origin (area of the background map), size (background map size) has 4 values:

Cover single graph fills, contain maximized,%,px ")

{CSS} "background"

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.