Fourth Chapter background Image effect
1. Basic
By default, the browser repeatedly displays the background image horizontally and vertically, allowing the image to be tiled across the page.
Body { Background-image:url (/img/pattern.fig);}
You can choose horizontal, vertical, uneven: repeat-x, repeat-y, no-repeat
Body { Background-image:url (/img/pattern.gif); Background-repeat:repeat-x;}
You can set the back map position
Such as: The left side of the element, centered vertically. (can also be implemented using pixels and percentages)
h1 { padding-left:30px; Background-image:url (/imd/bullet.gif); Background-repeat:no-repeat; Background-position:left Center;}
Shorthand:
H1 { background: #ccc URL (/img/ddd.gif) no-repeat left center;}
2. Round Corner Box
1 fixed-width rounded frame-rounded corners can be achieved by background image
Top a graph, bottom bottom a graph, the middle with the background color connection
Flexible, can be extended width, can be set 4 corners each picture, then the width of the EM units, can be stretched according to the font size.
2 "multi-background,Border-radius, Border-image
3. Projection
1 "Picture negative margin offset
2 "Image plus border and inner margin
3 "Box-shadow:
Requires 4 values: vertical and horizontal offset, projected width and color
4. Opacity:
opacity:0.8
Background-color:rgba (0,0,0,0.8)
css--Reading Notes-04