는 어떻게 만들 수 100 % 내용과 헤더 사이 '스크롤 박스'적합 : http://jsfiddle.net/LDXhf/5/CSS 오버 플로우 상자 높이
(보너스 포인트가 IE6에서 작동하는 경우)
CSS :
#main {
position: relative;
height: 200px;
background-color: yellow;
}
#header {
background-color: blue;
text-align: center;
}
#footer {
position : absolute;
bottom : 0;
left: 0;
width: 100%;
background-color: blue;
text-align: center;
}
#content {
background-color: white;
}
#scrollbox {
background-color: red;
overflow: auto;
height: 100%;
}
HTML :
<div id="main">
<div id="header">
HEADER
</div>
<div id="content">
CONTENT
</div>
<div id="footer">
FOOTER
</div>
<div id="scrollbox">
DATA1<br/>
DATA2<br/>
DATA3<br/>
DATA4<br/>
DATA5<br/>
DATA6<br/>
DATA7<br/>
DATA8<br/>
DATA9<br/>
DATA10<br/>
DATA11<br/>
DATA12<br/>
DATA13<br/>
DATA14<br/>
</div>
</div>
IE6 지원처럼 바닥에 - 제가 값을 설정? 이런 몰리. – Marwelln
알아요,하지만 이건 Windows CE에서 작동해야합니다 – r03
고정 된 높이를 사용하여 해결 한 바이올린입니다 : http://jsfiddle.net/9P9fy/1/ – r03