css| Skills | Web page Background | problem
This is often written when we define a background style:
body{
Background:url (img/header_top.gif) left top no-repeat;
}
If we want to define a background color, but also add color in the background, but note that if you want to use Background-color this style, please do not put this style before the background is not like this:
body{
background-color:red;
Background:url (img/header_top.gif) no-repeat left top;
}
The result is no background red only show a picture, what this thought is a bug, carefully think to understand the reason. Because the background color in the background style is not defined, it is colorless by default. Because the first line defines a red, the second line defines a colorless, so the second line is colorless.
Later define background must pay attention to this small problem.