Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/408.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 隐藏添加此共享工具默认图标_Javascript_Css_Addthis - Fatal编程技术网

Javascript 隐藏添加此共享工具默认图标

Javascript 隐藏添加此共享工具默认图标,javascript,css,addthis,Javascript,Css,Addthis,有人知道我是如何隐藏addthis(addthis.com)共享小部件默认使用的default图标来替换为我自己的图标的吗 我使用的代码如下,“添加此小部件”会带来图标,但我想使用我的main_icons.gif。提前谢谢 <style type="text/css"> .share strong { line-height:17px; } .share strong, .share a { float:left; display:inline; font-weight:normal

有人知道我是如何隐藏addthis(addthis.com)共享小部件默认使用的default图标来替换为我自己的图标的吗

我使用的代码如下,“添加此小部件”会带来图标,但我想使用我的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>

.共享强{线高度:17px;}
.share strong、.share a{float:left;display:inline;font-weight:normal;}
。共享{宽度:17px;高度:17px;背景:透明url(main_icons.gif)无重复0px-1772px;左边距:7px;文本缩进:-9999px;}
.share a.btn_twitter{背景位置:-24px-1772px;}
.share a.btn_share{背景位置:-47px-1772px;}
分享这个:
var addthis_config={
“数据跟踪地址栏”:正确,
“不包括服务”:“facebook、twitter”,
}

好的,我在这里找到了答案:

您只需在a标记中添加一个带有自定义图像src的图像标记。。。e、 g

<a class="addthis_button" href="http://www.addthis.com/bookmark.php"><img src="customButton.gif" width="16" height="16" border="0" alt="Share" /></a>