我需要帮助,我正在使用以下代码在网页上插入 Twitter 和 Facebook 按钮。我是HTML新手;我似乎无法将按钮向右和水平对齐。我正在使用 shoppingcartplus 作为该网站的主机。我已经从 twitter 和 facebook 网站生成了代码。
此外,当我发推文时,计数器不会增加。
<!-- ======> (Start of Facebook button code after body tag, no body tag in code) -->
<div id="fb-root">
</div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<!-- ======> (End of Facebook button code after body tag, no body tag in code) -->
<!-- ======> (Start of twitter button code) -->
<p align=right>
<p> <a class="twitter-share-button" data-url="http://www.afrikongo.com" href="https://twitter.com/share">Tweet</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</p>
<!-- ======> (End of twitter button code) -->
<!-- ======> (Start of Facebook button code button placement on site) -->
<p align=right> <div class="fb-like" data-font="arial" data- href="http://www.afrikongo.com" data-layout="button_count" data-send="true" data-show-faces="true" data-width="450">
</div>
</p>
<!-- ======> (End of Facebook button code button placement on site) -->