2
我需要适合我的右栏的高度,以其父div的高度。父母的div高度取决于其他div的内容。我读到这个线程4793540,发现它对Firefox和IE> = 8有用,但IE的老版本使我的酒吧消失。你能帮我解决这个问题吗?适合div高度内容高度IE <= 7
HTML
<div id="body">
<div id="content"></div>
<div id="bar"></div>
<div id="trick"></div>
</div>
CSS
#body {
padding:10px;
padding-bottom:60px;
width:960px;
margin-top: 20px;
margin-left:auto;
margin-right:auto;
position: relative;
}
#bar {
width: 100px;
float:right;
position: absolute;
top:0;
left: 870px;
bottom:0;
overflow: hidden;
padding: 10px 0;
}
#body, #bar {
min-height: 250px;
height: auto !important;
height: 250px;
}
#content {
width:850px;
float:left;
}
#trick {
width:960px;
height:20px;
clear: both;
}
该网站的在线是http://jazg.net/naiset/
哇!那是我正在寻找的那种答案。非常感谢 –