尝试这样的事情:http: //jsfiddle.net/ujBZY/9/
ul {
margin:0;
padding:0;
}
li.social {
display: inline-block;
list-style:none;
overflow:visible;
}
a {
display: block;
height: 61px;
margin: 0 5px;
text-indent: -9000px;
width: 61px;
}
.social_facebook, .social_twitter {
position: absolute;
right:0;
background: white;
z-index: 1000;
}
.sociallinks {
float: right;
}
.facebook {
background: url(http://i44.tinypic.com/smys80.png) no-repeat;
}
.twitter {
background: url(http://i44.tinypic.com/10fno04.png) no-repeat;
}
<div class="span5">
<div class="sociallinks">
<ul>
<li class="social"><a href="#" target="_blank" class="facebook" title="Join Us on Facebook">Join us on Facebook</a>
<!-- Hidden Social Feeds -->
<div class="social_facebook">
FACEBOOK HERE
</div>
</li>
<li class="social"><a href="#" target="_blank" class="twitter" title="Follow Us on Twitter">Follow us on Twitter</a>
<div class="social_twitter">
<a href="http://twitter.com/" title="Follow us on Twitter">Latest Tweet</a>
<a href="https://twitter.com/twitter" class="twitter-follow-button" data-show-count="false" data-lang="en" data-size="large">Follow @twitter</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
</li>
</ul>
</div>
</div>
$(".social_facebook").css('display','none');
$(".social_twitter").css('display','none');
$('.social').hover(function() {
$('div', this).stop().fadeIn("slow");
}, function() {
$('div', this).stop().fadeOut("slow");
});