I don't want the text of the selected option in my select box to wrap. It doesn't wrap in IE or firefox. It looks like
我不希望选择框中的选定选项的文本被包装。它不包含IE或firefox。它看起来像
But in the Chrome browser it looks like
但是在Chrome浏览器中它看起来是这样的。
How can I make the text not wrap in the Chrome browser?
我如何才能让文本不被封装在Chrome浏览器中?
1 个解决方案
#1
7
Have you tried using the white-space: nowrap;
CSS property? It should push your text into one line. You might also need to use width:auto
on your <select>
box - I'm not sure if I can give any more guidance without seeing your markup and CSS.
你试过使用空格:nowrap吗?CSS属性?它应该把你的文本推进一行。您可能还需要在
#1
7
Have you tried using the white-space: nowrap;
CSS property? It should push your text into one line. You might also need to use width:auto
on your <select>
box - I'm not sure if I can give any more guidance without seeing your markup and CSS.
你试过使用空格:nowrap吗?CSS属性?它应该把你的文本推进一行。您可能还需要在