Why isn't `white-space` consistent between IE and Firefox?

左心房为你撑大大i 提交于 2019-12-11 07:42:46

问题


I have <span class="text">11-12.SL.1 Some long text</span> where text has the following styles applied:

clear: left;
display: inline;
white-space: nowrap;
word-wrap: normal;

IE however, doesn't respect the white-space parameter.

vs Firefox, which respects it properly.

How can I get IE to respect it?


回答1:


Turns out I needed to propagate the white-space up to the parents =)



来源:https://stackoverflow.com/questions/7014004/why-isnt-white-space-consistent-between-ie-and-firefox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!