Internet Explorer忽略了CSS中设置的非常小的高度
问题描述:
我的CSS看起来像这样......
I have CSS that looks like this...
.ColorSeparatorArea
{
background-color: #3d3d77;
height: 1px;
}
...然后我将该样式应用于DIV元素:
... and then I'm applying that style to a DIV element:
<div class="ColorSeparatorArea"></div>
它在非IE浏览器中工作正常,但在IE中,它将div的高度设置为一行文字的高度,它不会让我走得更小。任何人都知道如何解决这个问题?
It works fine in non-IE browsers, but in IE, it sets the height of the div to the height of one line of text and it won't let me go any smaller. Anyone know how to get around this problem?
答
.ColorSeparatorArea
{
background-color: #3d3d77;
height: 1px;
overflow: hidden;
}