我有一个页脚,我正在尝试添加一些页边距,并将其对齐到中心。问题是,当我缩小移动断点的页面大小时,页脚按钮不再居中对齐,右边距变得比左边距小。有人能告诉我我可能错过了什么吗?
CSS:
#footer {
display: flex;
align-content: center;
justify-content: center;
margin: 20px;
position: fixed;
width:90%;
bottom: 0;
}
#footer {
background: #0070FF;
line-height: 2;
text-align: center;
color: #042E64;
font-size: 30px;
font-family: sans-serif;
font-weight: bold;
text-shadow: 0 1px 0 #84BAFF;
box-shadow: 0 0 15px #00214B
}
HTML:
<div id="footer">Footer - Just scroll...</div>
https://stackoverflow.com/questions/54936434
复制相似问题