我正在使用 socialite.js 创建社交按钮的延迟加载效果 一切都很好,但是悬停之后,按钮有点向上。
CSS
/*
* Socialite Look-a-like defaults
*/
.cf:after {
visibility: hidden;
display: block;
font-size: 0;
content:" ";
clear: both;
height: 0;
}
* html .cf {
zoom: 1;
}
*:first-child+html .cf {
zoom: 1;
}
/* visually hidden from HTML5 Boilerplate */
.vhidden {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
.social-buttons {
display: block;
list-style: none;
padding: 0;
margin: 00px;
}
.social-buttons > li {
display: block;
margin: 0;
padding: 00px;
float: left;
}
.social-buttons .socialite {
display: block;
position: relative;
background: url('https://lh4.googleusercontent.com/-4P_Yq4L-QXM/UTHWS6CDigI/AAAAAAAAGrU/t4K0HmWUv2U/s194/socialshare.png') 0 0 no-repeat;
}
.social-buttons .socialite-loaded {
background: none !important;
}
.social-buttons .twitter-share {
width: 83px;
height: 45px;
background-position: -145px 0;
}
.social-buttons .googleplus-one {
width: 65px;
height: 45px;
background-position: -75px 0;
}
.social-buttons .facebook-like {
width: 77px;
height: 45px;
background-position: 0 0;
}
.social-buttons .linkedin-share {
width: 59px;
height: 25px;
background-position: -215px 0;
}
</style>
我尝试了很多 css 技巧,但徒劳无功。虽然我对 jquery 了解不多,但我浏览了 socialite.js 并没有发现与高度 afterhover 相关的内容。是否有任何技巧可以使元素的位置在同一位置之后。非常感谢。