【发布时间】:2016-02-12 19:30:11
【问题描述】:
我想在一行中开始水平环绕的 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;}
谢谢。
【问题讨论】:
-
这里也有一个很好的解释:stackoverflow.com/questions/9273016/…你可能要考虑。
标签: html css whitespace word-wrap