<html>
<head>
<style>
.megaphone {width:270px; height:212px; background:url(sprite.png) 0 0px;}
.smile {width:270px; height:212px; background:url(sprite.png) 0 -195px;}
</style>
</head>
<body>
<div class="megaphone">
测试1
</div>
<br><br>
<hr>
<br><br>
<div class="smile">
测试2
</div>
</body>
</html>
测试图片如下: