简体   繁体   English

如何在我的网站中使用我自己定制的Sharethis图像以及sharethis插件?

[英]How can i use my own customized Sharethis image along with sharethis plugin in my website?

How can i use my own customized Sharethis image along with sharethis plugin in my website? 如何在我的网站中使用我自己定制的Sharethis图像以及sharethis插件?

Is anything i can manually do in:- 我可以手动做的任何事情: -

<script type="text/javascript">var switchTo5x=true;</script><script type="text/javascript" src="http://localhost/website/js/share-this.js"></script>
<script type="text/javascript">stLight.options({publisher:'fbcd68c9-0a9c-4974-9ada-e106a30e9194'});</script>

I just want to change the basic green color Icon nothing else. 我只是想改变基本的绿色图标没有别的。

This is already documented on the ShareThis site . 这已在ShareThis网站上记录 Use the 'st_sharethis_custom' class on your link. 在链接上使用“st_sharethis_custom”类。

<span class="st_sharethis_custom">ShareThis</span>

Then specify a new icon to use with CSS. 然后指定一个用于CSS的新图标。

.st_sharethis_custom{
    background: url("http://path/to/image/file") no-repeat scroll left top transparent;
    padding:0px 16px 0 0;
}

change the properties of this class:- 更改此类的属性: -

<span class="st_sharethis_custom">ShareThis</span>

Change CSS like this:- 改变这样的CSS: -

.st_sharethis_custom{
    background: url("http://path/to/image/file") no-repeat scroll left top transparent;
    padding:0px 16px 0 0;
}

Also you can edit the img PNG directly from the Share This JS file:- 您也可以直接从Share This JS文件编辑img PNG: -

Search for:- 搜索:-

style.backgroundImage

replace the image location to your custom location. 将图像位置替换为您的自定义位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM