<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/>
<title> Untitled Document </title>
<style>
. div1{width:420px;}
. div1 li {list-style:none; float:left; border:1px solid #EAF3FA; background: #FBFCFF; margin:10px; width:120px; height:40 px line-height:40px; padding-left:10px;}
. Div span{padding-left:25px;/* empty out of 16px to display icons */
height:35px; /* Set the height so that the outside part is not visible */
Background:url (888888.png) no-repeat;/* all Li share a picture */}
. a{background-position:-19px-22px; width:25px; height:20px;}
. b{background-position:-146px-22px;width:25px; height:20px;}
. c{background-position:-19px-68px;width:25px; height:25px;}
. d{background-position:-146px-70px;width:25px; height:25px;}
. e{background-position:-21px-120px;width:25px; height:25px;}
. f{background-position:-145px-120px;width:25px; height:25px;}
. g{background-position:-21px-120px;width:25px; height:25px;}
. h{background-position:-21px-120px;width:25px; height:25px;}
. i{background-position:-21px-120px;width:25px; height:25px;}
</style>
<body>
<div class= "Div1" >
<ul>
<li><span class= "A" ></span><a href= "#" >aaaaa</a></li>
<li><span class= "B" ></span><a href= "#" >bbbbb</a></li>
<li ><span class= "C" ></span><a href= "#" >ccccc</a></li>
<li ><span class= "D" ></span><a href= "#" >ddddd</a></li>
<li ><span class= "E" ></span><a href= "#" >eeeee</a></li>
<li ><span class= "F" ></span><a href= "#" >eeeee</a></li>
<li ><span class= "G" ></span><a href= "#" >eeeee</a></li>
<li ><span class= "h" ></span><a href= "#" >eeeee</a></li>
</ul>
</div>
</body>
CSS Sprite notation