gpt4 book ai didi

html - 图像下方出现神秘缺口

转载 作者:太空狗 更新时间:2023-10-29 15:38:38 24 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
White space at bottom of anchor tag

在此处查看此示例页面.. http://denise.brixwork.com/

出于某种奇怪的原因,在那个家庭的照片下方,在包含图像的灰色边框 (5px #333) div 之前有一个空隙。我删除了所有边距、填充等,它仍然不会消失。 :(

没有在#index_content div 上设置固定高度,我不希望这样做,以防以后必须重新调整图像大小(这对我来说意味着双倍的工作量),我如何在离开时消除该间隙它有 flex 吗?

我的 HTML 代码:

<div id="index_content_container">
<div id="index_content">
<img src="http://denise.brixwork.com/images/index_photo.jpg" alt="Real Whistler Living - Real Estate for the Next Generation" />
</div>
<div class="clear"></div>
</div>

CSS:

/* INDEX PAGE SPECIAL CSS */
#index_content_container {
position: relative;
width: 970px;
border: 5px solid #e1bb14;
left: -20px;
display: block;
float: left;
padding: 0px;
margin: 0px;
}

#index_content {
position: relative;
width: 960px;
border: 5px solid #333;
float: left;
display: block;
padding: 0px;
margin: 0px;
}

#index_content img {
padding: 0px;
border: none;
margin: 0px;
clear: none;
}

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