如何显示字符串内联?

时间:2013-04-17 22:23:22

标签: css twitter-bootstrap

如何在Twitter引导程序中强制显示与overflow内联的文本?例如,在http://jsfiddle.net/nonamez/jJdX4/ overflow中,除了内联词之外,它正在工作。在我的代码中没有任何作用。

enter image description here

1 个答案:

答案 0 :(得分:1)

使用white-space并将其设置为nowrap,这将使文字进入一行,直到达到休息时间。

li {white-space:nowrap;}

http://jsfiddle.net/jJdX4/1/