所以我正在尝试为我们媒体的底部链接制作一个精灵图像,但我没有让图像正确裁剪,我的错误在哪里?
CSS
.footer{
position:absolute;
bottom:0px;
margin:5px;
border:2px solid grey;
width:200px;
height:55px;
overflow:hidden;
display:block;
}
#twitter{
background:url('http://unifiedforunifat.com/redesign/resources/social.jpg') no-repeat;
height:50px;
width:50px;
background-position: 0 0;
display:block;
}
#twitter a:hover{
background:url('http://unifiedforunifat.com/redesign/resources/social.jpg');
background-position: 0 50px;
}
HTML:
<div class="footer">
<a href="https://twitter.com/unified4unifat" id="twitter" class="imglink" >
<img src="http://unifiedforunifat.com/redesign/resources/social.jpg" alt="U4U's Twitter"
/>
</a>
</div>