我有一个列表项,我想让列表分成两列。
我已经完成了这项工作,但是当其中一个 li 中有一长串文本时,它会导致另一列出现间隙
我在这里有一个演示:http: //jsfiddle.net/q7ryE/
当有很长的文本字符串时,如何避免这种情况,所以所有内容都适合两列中没有间隙/空格的漂亮列表视图?
<div class="container">
<ul class="list removedArea">
<li><span>more text here</span></li>
<li><span>more text here</span></li>
<li><span>more text here</span></li>
<!-- Long string causes gap pushing the li down on opposite site -->
<li><span class="fl">this is a very long name which will overlap and cause a gap, i need to reduce this gap when there is a long string of text</span>
</li>
<li><span>more text here</span></li>
</ul>
</div>