我在定位页脚div时遇到问题



我试图将页脚放在中间,但它一直偏左验证

这是我的代码(core.blade.php(:

<div class="footer">
<div class="row align-self-end">
<p>Copyright 2021 Me. All Rights Reserved</p>
</div>
</div>
.footer {
background-color: #E21B4D;
padding: 10px;
justify-content: center;
color: white;
display: flex;
align-items:center;
}

尝试这个底部属性

.footer {
background-color: #E21B4D;
padding: 10px;
justify-content: center;
color: white;
display: flex;
align-items:center;
bottom: 0;
}

看看这个链接

https://www.w3schools.com/howto/howto_css_fixed_footer.asp

最新更新