gpt4 book ai didi

html - 高度为 :1px appears very thicker in internet explorer 6. 的 div 如何减小它?

转载 作者:太空宇宙 更新时间:2023-11-04 04:23:55 24 4
gpt4 key购买 nike

这是我的 CSS 属性:

.line-separator {
height: 1px;
background: #d2d2d2;
border-bottom: 0px solid WindowFrame;
color: #d2d2d2;
width: 984px;
}

这是我的 DIV:(我在底部使用了一个这样的。)

<div class="line-separator" style="margin-left: 3px;">
</div>

IE 7:这是必需的外观

 IE 7 : This is the required look .

IE 6:看起来很厚。不应该是这样的。  IE 6 : It appears very thick. It should not be the case.

请避免像不要使用 ie6 或继续前进等评论,我知道它会消失。我在ie6中有一个要求。如何解决?

最佳答案

添加line-height: 1pxoverflow: hidden。这样就可以了。

关于html - 高度为 :1px appears very thicker in internet explorer 6. 的 div 如何减小它?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18654206/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com