Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/88.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 外部div现在显示背景一直到bottm_Html_Css - Fatal编程技术网

Html 外部div现在显示背景一直到bottm

Html 外部div现在显示背景一直到bottm,html,css,Html,Css,我有这一页: 它的右侧有一个div,其中包含一列。蓝色背景不够低,使右侧底部看起来破损 以下是该分区的样式: #rightbar_200 { margin-top: 10px; min-height: 412px; padding: 0 10px; width:202px; border: 0; background: #4C7AAB; } #rightbar_200 li { margin:5px; list-style: none outside none; } #right

我有这一页:

它的右侧有一个div,其中包含一列。蓝色背景不够低,使右侧底部看起来破损

以下是该分区的样式:

#rightbar_200 {
margin-top: 10px; 
min-height: 412px; 
padding: 0 10px; 
width:202px; 
border: 0; 
background: #4C7AAB;
}

#rightbar_200 li {
margin:5px;
list-style: none outside none;
}

#rightbar_200 li a{
font-size: 1.2em;

}

#rightbar_200 ul {
margin:0;
}

#rightbar_200 .chapter {
padding-left: 0;
}
#rightbar_200 .chapter .chapter_title {
font-size: 1.4em;
}
你知道为什么蓝色的背景不会向下延伸吗


谢谢

您是否尝试过将#rightbar_200 min高度调整为452px?

为什么您认为它是最小高度?在这种情况下,最小高度控制总体高度吗?它起作用了,但不确定为什么最小元素控制高度的最大值:)最小高度不控制最大值。它控制最小值,就像“它至少应该是452px,但如果需要的话会更大。”我个人认为,我不会像你那样。我假设“徒步文章”的内容发生变化,使高度发生变化。内容就是这里的规则。地图等。我用我给你的最小高度进行了调整,它扩展了蓝色