首页 > 前端
国外媒体facebook一键分享
来源:TP课堂 时间:2021-12-28

效果:


image.png

head之前放上 js:


<script type="text/javascript">var switchTo5x=true;</script>
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">stLight.options({publisher: "d8804f04-9a1c-4e86-9086-9c2c73ea79b8", doNotHash: true, doNotCopy: true, hashAddressBar: false});</script>


html代码:

<span class='st_googleplus' displayText='Google +'></span> 
<span class='st_facebook' displayText='Facebook'></span>
<span class='st_twitter' displayText='Tweet'></span>
<span class='st_linkedin' displayText='LinkedIn'></span>
<span class='st_pinterest' displayText='Pinterest'></span>
<span class='st_email' displayText='Email'></span>
<span class='st_sina' displayText='Sina'></span