我打算在php中构建一个壁纸网站。我想为每个帖子添加社交分享按钮。如何在php网站中为每个帖子添加社交分享按钮?
0
A
回答
-2
这里是一个代码片段。 Trythis
<div id="share-buttons">
<!-- Buffer -->
<a href="https://bufferapp.com/add?url=https://simplesharebuttons.com&text=Simple Share Buttons" target="_blank">
<img src="https://simplesharebuttons.com/images/somacro/buffer.png" alt="Buffer" />
</a>
<!-- Digg -->
<a href="https://www.digg./submit?url=https://simplesharebuttons.com" target="_blank">
<img src="https://simplesharebuttons.com/images/somacro/diggit.png" alt="Digg" />
</a>
<!-- Email -->
<a href="mailto:?Subject=Simple Share Buttons&Body=I%20saw%20this%20and%20thought%20of%20you!%20 https://simplesharebuttons.com">
<img src="https://simplesharebuttons.com/images/somacro/email.png" alt="Email" />
</a>
<!-- Facebook -->
<a href="http://www.facebook.com/sharer.php?u=https://simplesharebuttons.com" target="_blank">
<img src="https://simplesharebuttons.com/images/somacro/facebook.png" alt="Facebook" />
</a>
<!-- Google+ -->
<a href="https://plus.google.com/share?url=https://simplesharebuttons.com" target="_blank">
<img src="https://simplesharebuttons.com/images/somacro/google.png" alt="Google" />
</a>
<!-- LinkedIn -->
<a href="http://www.linkedin.com/shareArticle?mini=true&url=https://simplesharebuttons.com" target="_blank">
<img src="https://simplesharebuttons.com/images/somacro/linkedin.png" alt="LinkedIn" />
</a>
<!-- Pinterest -->
<a href="javascript:void((function()%7Bvar%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','http://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)%7D)());">
<img src="https://simplesharebuttons.com/images/somacro/pinterest.png" alt="Pinterest" />
</a>
<!-- Print -->
<a href="javascript:;" onclick="window.print()">
<img src="https://simplesharebuttons.com/images/somacro/print.png" alt="Print" />
</a>
<!-- Reddit -->
<a href="http://reddit.com/submit?url=https://simplesharebuttons.com&title=Simple Share Buttons" target="_blank">
<img src="https://simplesharebuttons.com/images/somacro/reddit.png" alt="Reddit" />
</a>
<!-- StumbleUpon-->
<a href="http://www.stumbleupon.com/submit?url=https://simplesharebuttons.com&title=Simple Share Buttons" target="_blank">
<img src="https://simplesharebuttons.com/images/somacro/stumbleupon.png" alt="StumbleUpon" />
</a>
<!-- Tumblr-->
<a href="http://www.tumblr.com/share/link?url=https://simplesharebuttons.com&title=Simple Share Buttons" target="_blank">
<img src="https://simplesharebuttons.com/images/somacro/tumblr.png" alt="Tumblr" />
</a>
<!-- Twitter -->
<a href="https://twitter.com/share?url=https://simplesharebuttons.com&text=Simple%20Share%20Buttons&hashtags=simplesharebuttons" target="_blank">
<img src="https://simplesharebuttons.com/images/somacro/twitter.png" alt="Twitter" />
</a>
<!-- VK -->
<a href="http://vkontakte.ru/share.php?url=https://simplesharebuttons.com" target="_blank">
<img src="https://simplesharebuttons.com/images/somacro/vk.png" alt="VK" />
</a>
<!-- Yummly -->
<a href="http://www.yummly.com/urb/verify?url=https://simplesharebuttons.com&title=Simple Share Buttons" target="_blank">
<img src="https://simplesharebuttons.com/images/somacro/yummly.png" alt="Yummly" />
</a>
+0
请[仅限链接回答](http://meta.stackoverflow.com/tags/link-only-answers/info)。答案是“几乎不超过链接到外部网站”[可能会被删除](http://stackoverflow.com/help/deleted-answers) – Quentin
+0
我想添加所有的社交按钮,如Facebook,Google + Reddit,Twitter等...... –
相关问题
- 1. 如何在静态网站上添加社交分享按钮?
- 2. 分享 - 网站中的社交按钮
- 3. 如何添加社交分享按钮?
- 4. 社交分享的帖子
- 5. 所有在一个社交分享按钮JavaScript的网站?
- 6. Bootstrap社交分享按钮
- 7. 社交网站网站按钮库
- 8. 添加社交分享按钮与短代码+ whatsapp
- 9. 如何在facebook,google等社交网站上分享网址?
- 10. WordPress的帖子中的每个图片的Facebook分享按钮
- 11. 如何在社交网站2.1.3中从社交网站注销?
- 12. 社交分享按钮像CNET
- 13. 使用社交分享按钮从addthis.com
- 14. 如何在网页上为视频添加Facebook分享按钮
- 15. 在网站上实现社交分享按钮的最佳做法是什么?
- 16. 使用图形API为网站创建一个“社交按钮”
- 17. 从网站分享帖子到twitter
- 18. 如何在每个帖子上添加一个类似的页面按钮?
- 19. 如何将“分享”按钮添加到应用程序的帖子?
- 20. 如何将我的网站分享按钮添加到我的网站。有没有可能为Snapchat添加共享按钮?
- 21. 如何水平对齐社交分享按钮?
- 22. 页面解释如何为自己的网页添加社交书签按钮
- 23. 如何为页面上的每个链接添加Facebook按钮,linkedin分享按钮和Twitter推文按钮?
- 24. 在magiczoomplus中添加分享按钮
- 25. 如何在WordPress中为社交分享图标添加自定义颜色?
- 26. 在社交网络上分享网站时虚假的网站描述
- 27. 为移动网站添加共享按钮
- 28. 如何在Blogger中分别为每个帖子添加元标签?
- 29. 添加按钮到网站
- 30. 分享网页与社交网络
你有帖子循环代码参考? –