css background refers to the CSS background attribute, that is, the background attribute. This attribute is used to define the background effect of the element. The syntax is "background:bg-color bg-image position/bg-size bg-repeat bg- origin bg-clip bg-attachment initial|inherit;", where each value is separated by spaces, in no particular order.
The operating environment of this tutorial: Windows 10 system, CSS3 version, DELL G3 computer
What does css background mean?
CSS background property is used to define the background effect of an element.
CSS background properties are:
background-color background-image background-repeat background-attachment background-position
CSS background properties
The background abbreviation property can set all background properties in one statement.
The properties that can be set are: background-color, background-position, background-size, background-repeat, background-origin, background-clip, background-attachment and background-image.
Separate each value with a space, in no particular order. It is possible that only some of these values, such as background: #FF0000 URL (smiley.gif); are allowed.
Syntax
background:bg-color bg-image position/bg-size bg-repeat bg-origin bg-clip bg-attachment initial|inherit;
Values
background-color specifies the background color to be used;
background-position specifies the position of the background image;
background-size specifies the size of the background image;
background-repeat specifies how to repeat the background image;
background-origin specifies the positioning area of the background image;
background- clip specifies the drawing area of the background image;
background-attachment sets whether the background image is fixed or scrolls with the rest of the page;
background-image specifies one or more background images to be used .
Recommended learning: "css video tutorial"
The above is the detailed content of What does css background mean?. For more information, please follow other related articles on the PHP Chinese website!