本文介绍了为什么我的文字在IE7中被截断?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的网页上的文本在Firefox& Safari,但在IE7中某些部分被切除。它看起来像(emem)(但不是),它已被放置在一个较小的元素中,该元素具有 overflow:隐藏;
。
The text on my web page looks fine in Firefox & Safari, but in IE7 certain portions are cut off. It looks like (but it hasn't) it has been placed in a smaller element with overflow: hidden;
.
有人知道如何解决这个问题吗?
Anyone know how to remedy this?
推荐答案
您需要指定匹配的行高字体大小...
You need to specify the line height to match the font size...
h1 {
font-size: 2em;
line-height: 2em; /* or 100% */
}
另请参见
这篇关于为什么我的文字在IE7中被截断?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!