简体   繁体   English

IE 7自动换行错误

[英]IE 7 Word-wrap bug

I have a problem with my html page. 我的html页面有问题。 I have text that is word-wrapping in a defined width box. 我有一个在定义的宽度框中自动换行的文本。 It looks great in of course Firefox and IE8. 当然,在Firefox和IE8中看起来很棒。 However, when checking its backwards compatibility I found that the word-wrapping causes a random spacing issue where one line of text seems as if it has a margin-top specified on it. 但是,在检查其向后兼容性时,我发现自动换行会引起随机间距问题,其中一行文本似乎好像在上面指定了页边距。

Anyone ran into this issue before? 有人遇到过这个问题吗?

Thanks for your help. 谢谢你的帮助。

any line-height:XXpx; 任何行高:XXpx; in your css (if not add one) 在你的CSS(如果不加一个)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM