Background picture
Background pictures have many properties to manipulate.
Fortunately, you can use all of the background
processing:
body {background: white url(bg.gif) no-repeat top right;}
The following attributes are merged:
background-color
appear in front.
background-image
The position of the picture.
background-repeat
The picture repeats the form. The background image can be repeated repeat
(this is like a building tile), repeated repeat-x
on the x-axis (right or left), repeat-y
repeated on the y-axis (up and down), no-repeat
not repeated, showing only one.
background-position
Can be used,,,, top
center
bottom
left
right
or any combination that can be seen, such as above on top.
You can set a background picture for most HTML elements, not just the entire page (body), which can be used to make simple but significant landscaping, such as rounded corners and different corner shapes.
Using the back image is very simple and can be used anywhere on the page. Many people like to use colorful pictures as the background of the page, bring to the user interpretation of the foreground text more difficult. This is an extreme example, but in fact most user-friendly, readable text is black on a white background or white on a black background (it is recommended to use a soft color as the background, to reduce the glare of the color).
So, the best place to use the background picture is either no content on the top or the background is very light, which also helps to reduce the size of the picture because it uses fewer colors. (It is recommended that you use an indexed color format, such as GIF)