gpt4 book ai didi

CSS 适用于 Chrome 但不适用于 FF 或 IE

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

我在这个网站上有以下 HTML/css 简单代码 www.habitacionalkids.com.ar在 chrome 上没有问题,但是当我在 FF 或 IE 上打开它时,我缺少一个 div。我在其他网站上使用非常相似的代码并且工作正常但我不知道为什么不能在这里工作。

CSS

html, body, #wrapper, images {
height:100%;
width: 100%;
margin: 0px;
padding: 0px;
border: 0px;
background-color:#143d36;
}

img {
margin: 0px;
padding: 0px;
border: 0px;
display: block;
/*display: inline-block;*/
}

.center {
width: 800px;
height: 600px;
position: absolute;
left: 50%;
margin-left: -400px;
}
.center_mini{
margin: 0px;
padding: 0px;
border: 0px;

}
.center_mini_float{
float:left;
margin: 0px;
padding: 0px;
border: 0px;

}

HTML

<div class="center">
<div class="center_mini">
<img src="images/img_01.png" width="800" height="470" alt="bg">
</div>
<div class="center_mini">
<div class="center_mini_float">
<img src="images/img_02.png" width="364" height="130" alt="bg">
</div>
<div class="center_mini_float">
<div class="center_mini">
<div class="center_mini_float">
<a href="https://www.facebook.com/HabitacionalKids?fref=ts" target="_blank"><img src="images/img_03.png" width="35" height="33" alt="bg"></a>
</div>
<div class="center_mini_float">
<a href="mailto:hola@habitacionalkids.com.ar"><img src="images/img_04.png" width="34" height="33" alt="bg"></a>
</div>
</div>
<div class="center_mini">
<img src="images/img_06.png" width="69" height="97" alt="bg">
</div>
</div>
<div class="center_mini_float">
<img src="images/img_05.png" width="367" height="130" alt="bg">
</div>
</div>
</div>

最佳答案

看起来丢失的 div 只是 float 到其兄弟项的右侧而不是下方。尝试添加这个:

.center_mini {
clear: both;
}

关于CSS 适用于 Chrome 但不适用于 FF 或 IE,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17078823/

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