對(duì)于文字式的按鈕來說,還可以自定義它的文字,例如對(duì)于以下文字式按鈕的代碼:
<!-- Baidu Button BEGIN --> <div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare"> <a class="bds_qzone">QQ空間</a> <a class="bds_tsina">新浪微博</a> <a class="bds_tqq">騰訊微博</a> <a class="bds_renren">人人網(wǎng)</a> <span class="bds_more">更多</span> </div> <script type="text/javascript" id="bdshare_js" data="type=tools" ></script> <script type="text/javascript" id="bdshell_js"></script> <script type="text/javascript"> document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000); </script> <!-- Baidu Button END -->
生成的百度按鈕為:
如果我們想要讓它變得簡(jiǎn)潔一些,例如:
可以修改<a>標(biāo)簽中的文字為:
<!-- Baidu Button BEGIN --> <div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare"> <a class="bds_qzone">QQ </a> <a class="bds_tsina">新浪</a> <a class="bds_tqq">騰訊</a> <a class="bds_renren">人人</a> <span class="bds_more">更多</span> </div> <script type="text/javascript" id="bdshare_js" data="type=tools" ></script> <script type="text/javascript" id="bdshell_js"></script> <script type="text/javascript"> document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000); </script> <!-- Baidu Button END -->
更多建議: