我无法将页脚居中放置在页面底部。这是我的代码
footer {
background-color: #FFF;
position:fixed;
bottom: 0px;
width: 400px;
text-align: center;
}
<footer align="center">
<p>March 25, 2</p>
</footer>
最佳答案
只需将宽度设置为 100%
width: 100%;
关于html - 如何使页脚居中到页面底部?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15629511/