CSS sprites reduce the number of images loaded to improve page loading speed, the use of CSS "Background-image", "Background-repeat", "background-position" the combination of background positioning, Background-position can pinpoint the position of a background image with a number
<! Doctype>
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/>
<title> make a poker--spades 10</title>
<style type= "Text/css" >
. card{width:125px;height:170px; position:absolute;overflow:hidden;border:1px #c0c0c0 Solid;}
/* Middle Picture General settings */
span{display:block;width:20px;height:21px; Position:absolute;background:url (http://www.blueidea.com//articleimg /2009/02/6382/00.gif) No-repeat;}
/* Small Picture Universal settings */
b{display:block;width:15px;height:10px; position:absolute;font-size:10pt;text-align:center;font-weight:bold; Background:url (http://www.blueidea.com//articleimg/2009/02/6382/00.gif) no-repeat; Overflow:hidden;}
/* Digital Universal settings */
em{display:block;width:15px;height:10px; position:absolute;font-size:10pt;text-align:center;font-weight:bold; Background:url (Http://www.blueidea.com//articleimg/2009/02/6382/00.gif) No-repeat;overflow:hidden;}
/* Coordinates point position */
. n1{left:1px;top:8px;}
. first{left:5px;top:20px;}
. a1{left:20px;top:20px;}
. A2{LEFT:20PX;TOP:57PX;}
. a3{left:20px;top:94px;}
. a4{left:20px;top:131px;}
. b1{left:54px;top:38px;}
. B2{LEFT:54PX;TOP:117PX;}
. c1{left:86px;top:20px;}
. C2{LEFT:86PX;TOP:57PX;}
. c3{left:86px;top:94px;}
. c4{left:86px;top:131px;}
. last{bottom:20px;right:0px;}
. n2{bottom:8px;right:5px;
}
/* Large Icon black Mei Fang four pictures-Upper direction */
. up1{background-position:0 1px;} /* Black peach */
/* Large Icon black Mei Fang four pictures-Next direction */
. down1{background-position:0 -19px;} /* Black peach */
/* Small Icons Black Mei Fang four pictures-Upper direction */
. small_up1{background-position:0 -40px;} /* Black peach */
/* Small Icon black Mei Fang four pictures-Next direction */
. small_down1{background-position:0 -51px;} /* Black peach */
/*a~k digital picture-upper left corner */
. n10{background-position:-191px 0px;left:-4px;width:21px;}
/*a~k Digital picture-lower right corner */
. n10_h{background-position:-191px-22px;right:3px;width:21px;}
/*a~k digital picture-upper left corner Red character */
. n10_red{background-position:-191px 0px;}
/*a~k Digital picture-lower right corner red character */
. n10_h_red{background-position:-191px-33px;}
</style>
<body>
<!--10 characters--
<div class= "card" >
<div class= "front" >
<b class= "N1 N10" ></b>
<em class= "First Small_up1" ></em>
<span class= "A1 up1" ></span>
<span class= "A2 up1" ></span>
<span class= "A3 down1" ></span>
<span class= "A4 down1" ></span>
<span class= "B1 up1" ></span>
<span class= "B2 down1" ></span>
<span class= "C1 up1" ></span>
<span class= "C2 up1" ></span>
<span class= "C3 down1" ></span>
<span class= "C4 down1" ></span>
<em class= "Last Small_down1" ></em>
<b class= "N2 n10_h" ></b>
</div>
</div>
</body>
CSS Sprites Example