1

有谁知道我如何隐藏添加此(addthis.com)共享小部件默认使用的默认图标来替换我自己的图标?

我正在使用的代码如下,添加这个小部件会带来图标,但我想使用我的 main_icons.gif。提前致谢。

<style type="text/css">
.share strong { line-height:17px; }
.share strong, .share a { float:left; display:inline; font-weight:normal; }
.share a { width:17px; height:17px; background:transparent url(main_icons.gif) no-repeat 0px -1772px; margin-left:7px; text-indent:-9999px; }
.share a.btn_twitter { background-position:-24px -1772px; }
.share a.btn_share { background-position:-47px -1772px; }
</style>

<div class="share addthis_toolbox addthis_default_style">
<strong>Share this:</strong>
<a class="addthis_button_facebook" href="">Share with Facebook</a>
<a class="btn_twitter addthis_button_twitter" href="">Share with Twitter</a>
    <a class="btn_share addthis_button_compact" href="">Share</a>
</div>

<script type="text/javascript">
var addthis_config = {
    "data_track_addressbar":true,
    "services_exclude":'facebook,twitter',
}
</script>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=myusername"></script>
4

1 回答 1

3

好的,我在这里找到了答案:http: //support.addthis.com/customer/portal/articles/381236-custom-buttons#.T-zBZ_VRL90

您只是一个图像标签,其中包含您的自定义图像的 src 在您的标签中......例如

<a class="addthis_button" href="http://www.addthis.com/bookmark.php"><img src="customButton.gif" width="16" height="16" border="0" alt="Share" /></a> 
于 2012-06-28T20:43:27.200 回答