清风细雨楼 Design By www.eepep.com
背景图:
css按坐标取背景图示例代码 
效果:
css按坐标取背景图示例代码 
代码:

复制代码代码如下:
<style type="text/css">
.spanicon {
width: 32px;
height: 32px;
background: url(http://img.blog.csdn.net/20130808153035296) no-repeat;
border: 0;
color: #464646;
line-height: 32px;
margin-top: 2px
}
td {
vertical-align: middle;
text-align: left
}
</style>
<body>
<table>
<tr>
<td class="spanicon" style="background-position: 0px -0px;"></td>
<td><a href="#">test1</a></td>
</tr>
<tr>
<td class="spanicon" style="background-position: 0px -32px;"></td>
<td><a href="#">test2</a></td>
</tr>
<tr>
<td class="spanicon" style="background-position: 0px -64px;"></td>
<td><a href="#">test3</a></td>
</tr>
<tr>
<td class="spanicon" style="background-position: 0px -96px;"></td>
<td><a href="#">test4</a></td>
</tr>
</table>
</body>
清风细雨楼 Design By www.eepep.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
清风细雨楼 Design By www.eepep.com