The attribute Background in CSS is the most common. But do you really understand it?
Background represents the Background and can be used for various elements. A single function indicates the background of an element without affecting the layout of the element. It is easy to understand. The background attribute can be directly written, and the order is very important:
Background-color,
Background-image,
Background-repeat,
Background-attachment,
Background-position
The following describes the specific meaning of each attribute in sequence.
Background-color: background color. The background color is relative to the foreground color. In CSS, the foreground color is controlled by color. The background-color is as follows:
| Value: |
<Color> | transparent | inherit |
| Default Value: |
Transparent (transparent) |
| Applicable: |
All elements |
| Inheritance: |
None |
| Calculated value: |
Based on the specified |
| |
|