我想开始水平包裹li文本,现在它向上。请参阅我的例子垂直排列包裹的文本
HTML
<ul>
<li>Long text goes here.</li>
<li>Another Longer Text Goes Here</li>
<li>Shorter text</li>
</ul>
CSS
ul {width:150px;}
li {width:30%; display:inline-block;whitespace:pre-line;}
谢谢。
也有一个很好的解释在这里:http://stackoverflow.com/questions/9273016/why-is-this-inline-block-element-pushed-downward你可能要考虑。 – 2014-09-03 20:09:07