Internet Explorer忽略了CSS中设置的非常小的高度 [英] Internet Explorer ignores really small heights set in CSS

查看:87
本文介绍了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;
}

这篇关于Internet Explorer忽略了CSS中设置的非常小的高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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