我已经使用不同的 CSS 方法阅读了这个问题的大量答案,但我只是找不到适用于我的网站的解决方案。
示例 URL 是http://www.clubszone.co.uk/clubs/43(页面是动态生成的)
我正在尝试调整 Twitter、Facebook 和一个社交分享按钮。CSS 已用于其他社交分享,但目前尚未使用。
.social-single {
margin: 17px 0 0 0;
}
#twitterbutton, #fb-like, #stumblebutton, #sharebutton, #linkedinshare {
float: left;
display: block;
}
#fb-like{
margin-top:0px;
margin-left:-50px;
}
#stumblebutton {
margin-left: 20px;
margin-top: 1px;
}
#linkedinshare {
margin-left: 20px;
margin-top: 1px;
}
#plusonebutton {
margin-left: 20px;
margin-top: 1px;
}
包含在内容框中的 Html。
<div class="topshadow">
<h2 class="wraptitle clubicon">
Tell your friends about us
<div class="social-single">
<div class="fb-like" id= "fb-like"data-href="https://www.clubszone.co.uk/findclubs" data-width="50" data-layout="button" data-action="like" data-show-faces="true" data-share="true"></div><div id="fb-root"></div>
<div id="twitterbutton"><a href="https://twitter.com/share" class="twitter-share-button" data-text="Search and find clubs near you" data-via="Clubszone1" data-size="small" data-related="clubszone1" data-hashtags="kidsclubs">Tweet</a></div><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
<div id="plusonebutton"><g:plusone size="medium" data-annotation="none"></g:plusone></div><script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js?onload=onLoadCallback';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
</div>
Any help would be appreciated.