This article is about CSS background of some small common sense, detailed introduction of CSS background properties, CSS background color, CSS background image. A friend you need can refer to the following
I. CSS Background properties
1. CSS background properties and CSS3 background picture settings summary sharing
In CSS, there are several background properties.
Background sets all the background properties in a declaration. Background-attachment Sets whether the background image is fixed or scrolls along with the rest of the page. Background-color Sets the background color of the element. Background-image Sets the background image of the element. Background-position sets the starting position of the background image. Background-repeat Sets whether and how the background image is repeated. Background-clip The drawing area that specifies the background. Background-origin Specifies the location area of the background image. Background-size Specifies the size of the background image.
2. Must master the CSS Knowledge-background property
Note: Background-color cannot inherit, and its default value is transparent. Transparent has the meaning of "transparency". That is, if an element does not specify a background color, the background is transparent so that the background of its ancestor elements can be visible.
3. CSS background fixed style Background-attachment Property Basics Introduction
The Background-attachment property has only 2 property values. Scroll indicates that the background image scrolls with the object scrolling and is the default option; fixed means that the background image is pinned to the page and that only the other content scrolls with the scroll bar.
Two. CSS background color
1. Use CSS to skillfully make background color gradient animation instances
The text starts here. Sometimes, well, it should be said that some specific occasions, we may need the following animation effect, gradient + animation:
2. Using CSS3 to implement a background gradient method
Before I could do a background gradient without knowing CSS, I applied it to my own web page with a picture of a background gradient in Photoshop. However, not long ago I learned that CSS3 can also do background gradient, want to do the background gradient effect is very easy, the following is a few css3 do background gradient method
3. Example description of using RGBA to adjust transparency in CSS3
In CSS3, a opacity attribute is added, allowing the developer to set the transparency of the element, now opacity is supported by the mainstream modern browser, but the opacity will set the element and its child elements together to the same transparency, such transparent rules are rather inflexible, In the actual development often also encountered a lot of trouble. In fact, there is another set of color-transparent solutions--rgba in CSS3. In contrast to opacity, RGBA can set transparency on a single element without affecting its child elements, but Rgba browser support is not opacity wide, so it is relatively less noticeable to developers.
Three. CSS background image
1. CSS for responsive full-screen background image
A very popular form of Web page is full screen large map, this article will be the simplest way to achieve this effect. CSS attribute background-size is used, without JavaScript.
2. About CSS3 Multi-background and background image cutting and positioning and the size of the detailed explanation
CSS3 before we can add a picture to the background, CSS3 allows us to add multiple images on an element, multiple backgrounds can add multiple picture resources to the background attribute, separated by commas
and use background-position to position them where you want them.
3. CSS Full screen background picture set Django Load picture path details
This article is about CSS full-screen background image set Django loading picture path detailed description, small series feel very good, also for everyone to do a reference.
4. Introduce two special effects codes that use CSS to make the background image transparent and text opaque
Method One (frosted glass effect): Background image + Pseudo class + Flite:blur (3px)
Method Two (translucent effect): Background map + positioning + Background:rgba (255,255,255,0.3)
CSS to achieve a transparent background picture, text opacity effect of two ways
Projects are often used to put some text on the background map, the introduction of two techniques to achieve a transparent background image, text opaque effect, record, easy to learn later.
CSS background Properties related questions and Answers
1. CSS3-CSS background color does not fill the border, CSS how to write?
2. CSS3-CSS background Image Height hundred percent, width to maintain proportions how to do?
3. CSS3-CSS Background Adaptive problem
4. CSS3-How to blur the Web CSS background image and display it in full screen
"Recommended"
1. Free CSS Online video tutorial
2. php.cn Lonely Nine-base (2)-css video tutorial
3. Learn CSS video tutorial CSS background