我已经设置了一个jsfiddle来演示我的问题。请原谅所有的CSS,因为这只是屏幕的一部分。淡紫色背景和底部紫色边框应位于列表中的最后一个条目下方,但不能正确展开。我尝试了各种各样的位置:设置和清除设置但无法扩展。非常感谢任何帮助。
以下是示例http://jsfiddle.net/qwSpx/
<div class='innerpagerhbox'>
<div id='innerpagelatesttab'></div>
<div id='innerpageblogtabmore'><a href='#' title='more>'><img src='../content_assets/header_Latest_more.png'/></a>
</div>
<div id='innerpagelatestholder'>
<div class='innerpageblogentry'>
<div class='innerpageblogentryright'><a href='#'>Phishing emails test employee</a>
</div>
<div class='innerpageblogentryleft'></div>
<div class='clear'></div>
</div>
<img src='../content_assets/RHBox_latestnews_Divider.png' alt='' />
<div class='innerpageblogentry'>
<div class='innerpageblogentryright'><a href='#'>UK considers prison terms for DPA breaches</a>
</div>
<div class='innerpageblogentryleft'></div>
<div class='clear'></div>
</div>
<img src='../content_assets/RHBox_latestnews_Divider.png' alt='' />
<div class='innerpageblogentry'>
<div class='innerpageblogentryright'><a href='#'>Foxtons customer information hacked</a>
</div>
<div class='innerpageblogentryleft'></div>
<div class='clear'></div>
</div>
<img src='../content_assets/RHBox_latestnews_Divider.png' alt='' />
<div class='innerpageblogentry'>
<div class='innerpageblogentryright'><a href='#'>Cyber-attack on employer scores own goal</a>
</div>
<div class='innerpageblogentryleft'></div>
<div class='clear'></div>
</div>
</div>
答案 0 :(得分:0)
在父元素中使用overflow
属性:
<强> CSS 强>
div#innerpagelatestholder {
/* The rest of your code */
overflow: auto;
}
<强> Fiddle 强>
干杯, 莱昂纳多