为什么IE和Firefox之间的“white-space”不一致? [英] Why isn't `white-space` consistent between IE and Firefox?

查看:160
本文介绍了为什么IE和Firefox之间的“white-space”不一致?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有< span class =text> 11-12.SL.1一些长文本< / span> 其中文字应用了以下样式:

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但是,不尊重白色空间参数。

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

vs Firefox,它正确地尊重它。

vs Firefox, which respects it properly.

如何我得到IE尊重它?

How can I get IE to respect it?

推荐答案

结果我需要传播 code>最多给父母=)

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

这篇关于为什么IE和Firefox之间的“white-space”不一致?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆