1

这应该是相当简单的,但我在谷歌搜索时找不到任何有用的东西。
我所拥有的是一些文本和一些图标,我想确保它们保持在同一行。例如我想要这个:

Text goes here and eventually we run into the end of the line [text][icon]

或这个:

Text goes here and eventually we run into the end of the line 
[text][icon]

但不是这个:

Text goes here and eventually we run into the end of the line [text]
[icon]

google-ing 时我唯一能想到的是,显然 IE 在实现这一点时遇到了一些问题。我真的不在乎 IE 是否能够做到(至少现在还没有),我只是想找到一个解决方案...... :)

4

3 回答 3

5

将其放入为样式表中的空白属性指定的无包装容器中。

于 2009-12-20T21:00:00.240 回答
1

您需要使用不间断的空格,编码 以防止空格之间的空格。

于 2009-12-20T21:00:30.820 回答
0

 考虑在最后一个单词和图标之间使用不间断空格而不是空格。

例如:

Text goes here and eventually we run into the end of the line [text] [icon]

代替

Text goes here and eventually we run into the end of the line [text] [icon]
于 2009-12-20T21:00:04.003 回答