gpt4 book ai didi

html - 将页脚内容拆分为左右

转载 作者:行者123 更新时间:2023-11-28 07:56:58 25 4
gpt4 key购买 nike

<footer>
<div class="copyrights">
<p>&copy 2015. <a style="color: #fff;" href="index.html">Free Xbox Live Gold Membership and Free Xbox Live Gold Codes</a>. All rights reserved.<a href="contact.html">Contact Us!</a><a href="tos.html">ToS</a></p></div>
</div>

我有此页脚代码,现在我希望版权位于左侧,然后联系人和服务条款位于右侧。但是,我很难将内容右对齐。

最佳答案

<footer>
<div class="copyrights" style="overflow: hidden;">
<p style="float: left;">&copy 2015. <a style="color: #fff;" href="index.html">Free Xbox Live Gold Membership and Free Xbox Live Gold Codes</a>. All rights reserved.</p>
<p style="float: right;"><a href="contact.html">Contact Us!</a> <a href="tos.html">ToS</a></p>
</div>
</div>

我建议您将样式表放在外部文件中,并使用类名定位元素。内联样式不容易维护。

关于html - 将页脚内容拆分为左右,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30051345/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com