如何在我的网站中使用我自己定制的 Sharethis 图像以及 sharethis 插件?
我可以手动执行以下操作:-
<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>
我只是想改 rebase 本的绿色图标,没有别的。
最佳答案
这已经是 documented on the ShareThis site 。在您的链接上使用“st_sharethis_custom”类。
<span class="st_sharethis_custom">ShareThis</span>
然后指定一个与 CSS 一起使用的新图标。
.st_sharethis_custom{
background: url("http://path/to/image/file") no-repeat scroll left top transparent;
padding:0px 16px 0 0;
}
关于javascript - 如何在我的网站中使用我自己定制的 Sharethis 图像以及 sharethis 插件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9207704/