我正在用socialite.js创建一个社交按钮的延迟加载效果 一切都很好,但是在afterhover之后,按钮有点向上。如何防止一个元素继续停留/改变位置
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技巧,但在vain.though我没有jQuery的很多知识,我通过socialite.js去了,没有发现任何相关的高度afterhover.Is有什么欺骗元素在相同的地方作出后续的位置。感谢很多。
在哪个浏览器中他们上去了?因为在Chrome中一切正常 – 2013-03-03 08:15:00
我使用的是FireFox 19,一切都很美好。后 – xpy 2013-03-03 08:17:53
前 http://img.ctrlv.in/5133081e9637f.jpg http://img.ctrlv.in/513308486124d.jpg – Michel 2013-03-03 08:23:16