Where is the confusion?Background-clip and Background-origin are the two attributes associated with the element background introduced in CSS3, which have the same optional values, namely border, padding, content three, And both of these properties represent some kind of relationship between the element background and t
Where are puzzles?
Background-clip and background-origin are two attributes introduced in css3 related to the element background. They have the same optional values, namely, border, padding, and content, the two attributes indicate the relationship between the element background and the element border, the padding, And
Background Background PropertiesWe know that the element has a foreground color, which corresponds to the background colour, and by background we can add a solid color (background-color) and any number of background images (
CSS background summary and CSS background summary
All background attributes cannot be inherited.
1. background-color
The background color can be set for all elements.
The default value of background-color isTransparentThat is to
Composite attribute-background
If both Background-color and Background-image are set, the background color is overwritten by the picture.Background-image: A picture used as a background, background:url ();If you set the background
Background color Background-color Syntax:Background-color:default value :Transparent transparentapplies to : all elementsInheritance : NoneAnimation : YesCalculated value : Specify a valueValue:
DescriptionSets or retrieves the background color of an object.
The background image is overlai
In CSS, there are several background properties
Properties
Description
CSS
Background
Set all the background properties in a declaration.
1
Background-attachment
Sets whether the background image is fixed or scr
1. Review the background properties that you have previously learned
1.1 Background-color1.2 Background-image1.3 Background-repeat1.4 Background-position1.5 background-attchment1.6 Background
The CSS background attribute "Background" provides many attribute values, such as color, image, positioning, etc., which provides a great convenience for the definition of Web page background image. Look at the property values provided by background:
Background:background-color ba
The size of the CSS background image does not change with the browser scaling. the css background image
The size of the background image on the homepage of some websites does not change with the browser scaling. For example, the size of the background image on the homepage of Baidu Personal Edition does not change aft
What does background mean, translation comes with a background meaning. Also in CSS as a member of the CSS property is also a background meaning, and is to set the background picture, background color, background image interceptio
Css rendering (3) color and background, css rendering color background
The color application mainly consists of three parts: foreground color, background color, and transparency.
I. ForegroundColor
Color foreground
Value:
Initial Value: the value specified by the user agent.
Apply to: All elements
Inheritance: Yes
In general, the foreground is the text of the el
FG, BG, Jobs, , CTRL + Z are all related to system tasks, although these commands are largely not needed now, but they are also usefulOne. is most often usedThis is used at the end of a command, you can put this command in the background to executeTwo. CTRL + ZYou can put a command that is executing in the foreground in the background and pauseThree. JobsSee how many commands are currently running in the b
FG, BG, Jobs, , CTRL + Z are all related to system tasks, although these commands are largely not needed now, but they are also usefulOne. is most often usedThis is used at the end of a command, you can put this command in the background to executeTwo. CTRL + ZYou can put a command that is executing in the foreground in the background and pauseThree. JobsSee how many commands are currently running in the b
Background-origin and Background-clip are the newly added attributes in CSS3, in fact one is the placement of the background image, and the other is the clipping of the background image.Background-origin and Background-clip have the same choice: Content-box,padding-box,borde
background-sizeYou can set the size of the background picture, and the value includes length and percent percentage. background-originIt also sets the extent of its image coverage based on the background Origin location. So let's take a look at this background-size property.
Details on background-size usage and background usage
Detailed description of background-size attribute usage:This attribute is used to control the size of the background image. The code example below describes the usage of this attribute in detail, hoping to help friends who need it.The
Background-clip and Background-origin are the two attributes associated with the element background introduced in CSS3, which have the same optional values, namely border, padding, content three, And both of these properties represent some kind of relationship between the element background and the element border, the
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.