我打算在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. 添加到Jekyll社交分享按鈕
- 5. 社交分享的帖子
- 6. WordPress的:如何添加我的網站上的社交媒體分享按鈕?
- 7. 所有在一個社交分享按鈕JavaScript的網站?
- 8. Bootstrap社交分享按鈕
- 9. 社交網站網站按鈕庫
- 10. 如何在php中添加社交關注按鈕
- 11. 如何在facebook,google等社交網站上分享網址?
- 12. 添加社交分享按鈕與短代碼+ whatsapp
- 13. WordPress的帖子中的每個圖片的Facebook分享按鈕
- 14. 如何在社交網站2.1.3中從社交網站註銷?
- 15. phonegap社交分享按鈕問題android
- 16. 社交分享按鈕像CNET
- 17. Xcode社交媒體分享按鈕
- 18. 社交分享按鈕無效XHTML
- 19. Facebook社交插件分享按鈕
- 20. 在IOS中共享的社交網站
- 21. 如何在網頁上爲視頻添加Facebook分享按鈕
- 22. 在網站上實現社交分享按鈕的最佳做法是什麼?
- 23. 社交媒體鏈接在帖子中分享django
- 24. Blogger:使用iframe的每個帖子的Facebook分享按鈕
- 25. 如何將社交網絡按鈕添加到Magento
- 26. 如何將Twitter和Facebook社交媒體按鈕添加到我的網站?
- 27. 使用圖形API爲網站創建一個「社交按鈕」
- 28. 從網站分享帖子到twitter
- 29. 單頁網站,搜索引擎優化和社交媒體分享按鈕
- 30. 創建動態社交網絡分享按鈕
你有帖子循環代碼參考? –