【发布时间】:2020-02-02 18:27:37
【问题描述】:
我希望删除水平列表 flexbox 上的行之间的空白。我实际上是在做一个 a-z 列表,我希望它没有下面的空格。
这是我所做的:
#example
{
display: block;
margin-left: auto;
margin-right: auto;
background-color:#555;
color: white;
}
#example ol
{
display:flex;
/*justify-content: center;
justify-content: space-between;
flex: 1 ;*/
flex-shrink: 0;
flex-flow: row wrap;
justify-content: space-between;
align-items:flex-start;
/*align-self: center;*/
/*align-content:flex-start;*/
}
#example ol li::marker
{
margin-right:5px;
}
#example ol li
{
color:white;
font-size:40px;
list-style-position:inside;
margin-bottom: 20px;
}
#example ul li
{
color:white;
font-size:20px;
margin-bottom:20px;
}
提前致谢
【问题讨论】:
-
您能否将 html 添加到您的帖子中以便重现该问题?
标签: html css flexbox whitespace