Flexbox 不提供预期的边距
Flexbox not providing intended margins
我的列表(在某种程度上)成功地调用了 flexbox 的 space-around 对齐方式,除了所讨论的页脚列表的第一个子项在其左侧有相对较大的边距。无法弄清楚这一点,宁愿不冒着作弊的风险。这是代码;任何输入都有帮助,谢谢:
#footer {
width: 75%;
background: dimgray;
height: 150px;
/* position: relative;
*/ bottom: 0;
position: fixed;
display: flex;
display: -webkit-flex;
}
#footer ul {
width: 100%;
display: -webkit-flex;
display: flex;
flex-direction: row;
justify-content: space-around;
-webkit-justify-content: space-around;
}
#footer li {
width: 30%;
height: 130px;
list-style: none;
border: 1px solid white;
}
ul 元素自动从浏览器获取默认填充。
#footer ul {
padding-left: 0;
}
我的列表(在某种程度上)成功地调用了 flexbox 的 space-around 对齐方式,除了所讨论的页脚列表的第一个子项在其左侧有相对较大的边距。无法弄清楚这一点,宁愿不冒着作弊的风险。这是代码;任何输入都有帮助,谢谢:
#footer {
width: 75%;
background: dimgray;
height: 150px;
/* position: relative;
*/ bottom: 0;
position: fixed;
display: flex;
display: -webkit-flex;
}
#footer ul {
width: 100%;
display: -webkit-flex;
display: flex;
flex-direction: row;
justify-content: space-around;
-webkit-justify-content: space-around;
}
#footer li {
width: 30%;
height: 130px;
list-style: none;
border: 1px solid white;
}
ul 元素自动从浏览器获取默认填充。
#footer ul {
padding-left: 0;
}