1
HTML:防止断行设置为列
<div class="flex">
<span>One</span>
<span>two</span>
<span>three</span>
<span class="four">four</span>
<span>five</span>
</div>
CSS:
.flex {
display: flex;
flex-direction: column;
justify-content: center;
}
span {
background: #999;
margin-top:10px;
}
.four {
background: #FFFF00;
}
基本上标题说了 - 我怎么联该.four
和.five
spans
在一个线?它甚至有可能吗?有什么想法吗?
https://jsfiddle.net/erghcuhw/
哇人,非常感谢! – mizzo
不客气。 –