gpt4 book ai didi

css - 上边距在 IE 8 中不起作用

转载 作者:太空宇宙 更新时间:2023-11-03 20:19:18 25 4
gpt4 key购买 nike

<div class="btns" id="btnHome">HOME</div>
<div class="btns" id="btnCon">CONTACT</div>
<div style="clear:both;"></div>
<div id="gall"></div>

CSS

.btns{
float:left;
padding: 2px 10px 2px 10px;
}
#gall{
margin:25px 0 15px; // this top margin doesn't work in IE8
height:70px;
border:thin solid red;
}

here is jsFiddle

最佳答案

这是一个known bug in IE8 .有几种方法可以修复它。

可以尝试添加overflow:auto到空地<div>

检查这个fiddle

关于css - 上边距在 IE 8 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13911010/

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