Html 如何在我的网站页脚添加正确对齐的Facebook和Twitter按钮?
我将Volusion用于我的电子商务网站,并希望在我的网站页脚添加Facebook和Twitter按钮/图标(类似于此页面页脚中的“cc wiki”和“Peak Internet”徽标) 下面是我的页脚的当前HTML代码。我应该添加什么代码使版权和“Powered by Volusion”文本左对齐,并在同一行中添加所需的按钮,但右对齐Html 如何在我的网站页脚添加正确对齐的Facebook和Twitter按钮?,html,facebook,twitter,footer,Html,Facebook,Twitter,Footer,我将Volusion用于我的电子商务网站,并希望在我的网站页脚添加Facebook和Twitter按钮/图标(类似于此页面页脚中的“cc wiki”和“Peak Internet”徽标) 下面是我的页脚的当前HTML代码。我应该添加什么代码使版权和“Powered by Volusion”文本左对齐,并在同一行中添加所需的按钮,但右对齐 <div id="footer_bottom"> <!--<div id="footer_right" class="right
<div id="footer_bottom">
<!--<div id="footer_right" class="right">-->
<!--</div>-->
<div id="copyright">
<a href="/terms.asp">Copyright © <script type="text/javascript">document.write((new Date()).getFullYear());</script> Config_CompanyNameLegal All Rights Reserved.</a>
<!-- ==========================================================================================
VOLUSION LINK - BEGIN
===============================================================================================
Customer has agreed per Volusion’s Terms of Service (http://www.volusion.com/agreement_monthtomonth.asp) to maintain a text hyperlink to "http://www.volusion.com" in the footer of the website. The link must be standard html, contain no javascript, and be approved by Volusion. Removing this link breaches the Volusion agreement.-->
<br><a style="color: #F0F0F0" href="http://www.volusion.com" title="Shopping Cart Software" target="_blank">Powered by Volusion</a>
</div>
<!-- ==========================================================================================
VOLUSION LINK - END
=========================================================================================== -->
</div>
</div>
您必须在div上使用float:left
或float:right
(在某种程度上,这种效果,未经测试只需使用CSS即可)
<div id="footer_bottom" style="display: block; width: 100%">
<div id="powered" style="float: left">Powered by Volusion</div>
<!--</div>-->
<div id="copyright" style="float:right" ><a href="/terms.asp">Copyright © <script type="text/javascript">document.write((new Date()).getFullYear());</script> Config_CompanyNameLegal All Rights Reserved.</a>
</div>
</div>
/* CSS */
#powered {
float: left;
}