网页一键分享按钮HTML代码
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                网页一键分享按钮HTML代码
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.                        
                                在網頁中加入以下代碼可以實現網頁的一鍵分享:
<!DOCTYPE html> <html> <head> <META http-equiv="content-type" content="text/html; charset="UTF-8"> <title>Insert title here</title> </head> <body> <div class="bdsharebuttonbox"> <a href="#" class="bds_more" data-cmd="more"></a> <a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空間"></a> <a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a> <a href="#" class="bds_tqq" data-cmd="tqq" title="分享到騰訊微博"></a> <a href="#" class="bds_renren" data-cmd="renren" title="分享到人人網"></a> <a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a> </div> <script> window._bd_share_config={"common":{"bdPopTitle":"您的自定義pop窗口標題","bdSnsKey":{},"bdText":"此處填寫自定義的分享內容", "bdMini":"2","bdMiniList":false,"bdPic":"http://localhost/centlight/public/attachment/201410/24/14/5449ef39574f5_282x220.jpg", /* 此處填寫要分享圖片地址 */"bdStyle":"0","bdSize":"16"},"share":{} }; with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5) ];</script> </body> </html>百度一鍵分享專業開發板代碼幫助文檔:http://share.baidu.com/code/advance
總結
以上是生活随笔為你收集整理的网页一键分享按钮HTML代码的全部內容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: WSL2 Ubuntu 换源
- 下一篇: 观复嘟嘟:职场是个技术活-马未都
