gpt4 book ai didi

HTML 页脚样式

转载 作者:行者123 更新时间:2023-11-28 19:11:00 26 4
gpt4 key购买 nike

我想知道是否可以将我的页脚 移至页面底部,而不是像此处那样显示在侧面Image本质上,我希望它像大多数其他元素一样发挥作用,并且始终显示在其上方元素的下方。

这是我使用的代码

<a href="Builders.html" style="color:#000000"><div style="border:3px solid black;width:800px;float:left;margin:5%"><center><h1>Builder</h1><br><p style="padding-left:5%;padding-right:5%">We are looking for someone who can offer their building skills and abilities to a passionate team.</p></center></div></a>

<a href="Programming.html" style="color:#000000"><div style="border:3px solid black;width:800px;float:left;margin:5%"><center><h1>Plugin Developer</h1><br><p style="padding-left:5%;padding-right:5%">Are you passionate about programming? Well if you are we would like your help on Plugin Development!.</p></center></div></a>

<!--End of body!-->

<footer>

<style>
.mar {
margin-left:10px;
margin-right:10px;
}
</style>

<ul>
<li><a href="https://discord.gg/eTgnFHQ"><img src="Images/Discord.png" alt="Discord" height="35px" width="35px" class="mar"></a></li>
<li><a href="https://www.instagram.com/hoshko_studios/"><img src="Images/Instagram.png" alt="Instagram" height="35px" width="35px" class="mar"></a></li>
<li><a href="https://www.youtube.com/channel/UCW_VW4njx6-d1jYDm2rlXoQ"><img src="Images/Youtube.png" alt="YouTube" height="35px" width="50px" class="mar"></a></li>
<li><a href="https://twitter.com/HoshkoStudios?s=09"><img src="Images/Twitter.png" alt="Twitter" height="35px" width="35px" class="mar"></a></li>
</ul>

最佳答案

尝试添加这段代码。

<style>

ul{
float:left;
width:100%;
display:inline-block;
}

li{
width: 25%;
float: left;
display: inline-block;
list-style: none;
}

</style>

关于HTML 页脚样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59316415/

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