CSS Sprite is CSS sprites, others call it CSS Sprite, is a kind of CSS image merging technology, the method is to combine small icons and background image on a picture, and then use the background of CSS to display the image needs to display the part. The basic principle of CSS Sprite is to integrate some of the images you use on your site into a single image, reducing the number of HTTP requests on your site. This image is rendered using CSS background and background-position properties, which means your tags are more complex, and the images are defined in CSS rather than tags. Examples of implementation effects:
div {
width:25px;
height:25px;
Background-image:url (img/568dfdbdn4f7d7ca3.png);
Overflow:hidden;
}
p {
width:25px;
height:25px;
Background-image:url (img/568dfdbdn4f7d7ca3.png);
Background-repeat:no-repeat;
background-position:0px-25px;
Overflow:hidden;
}
<body>
<div></div>
<p></p>
</body>
is to set the height of the image display, will be more than a portion of the height of hidden, as well as set the display location of the picture, to adjust the display of the small icon;
How to generate CSS Sprite chart: http://spritegen.website-performance.org/
CSS Sprite stuff.