position: fixed;
을 사용하여 위로 또는 아래로 스크롤 할 때 같은 위치에 상자가 유지됩니다.위 또는 아래로 스콜 링 할 때 Div/Box와 관련된 문제
카테고리 (div)가 커질 때 모든 콘텐츠가 표시되지 않는 문제가 있습니다.
예를 참조 범주의 맨 아래에없는 내용 : http://jsfiddle.net/Dyx22/
<div style="background-color:pink; height:150px; margin-bottom:10px">header </div>
<div id="side_manu" style="float:left; width:190px; position: fixed; margin-bottom:300px;">
<div style="border:1px solid black">
Categories
<div style="padding:10px"> Cat 1 </div>
<div style="padding:10px"> Cat 2 </div>
<div style="padding:10px"> Cat 3 </div>
<div style="padding:10px"> Cat 4 </div>
<div style="padding:10px"> Cat 5 </div>
<div style="padding:10px"> Cat 6 </div>
<div style="padding:10px"> Cat 7 </div>
<div style="padding:10px"> Cat 8 </div>
<div style="padding:10px"> Cat 9 </div>
<div style="padding:10px"> Cat 10 </div>
<div style="padding:10px"> Cat 11 </div>
<div style="padding:10px"> Cat 12 </div>
<div style="padding:10px"> Cat 13 </div>
<div style="padding:10px"> Cat 14 </div>
<div style="padding:10px"> Cat 15 </div>
<div style="padding:10px"> Cat 16 </div>
<div style="padding:10px"> Cat 17 </div>
<div style="padding:10px"> Cat 18 </div>
</div>
</div>
<div id="itemlist" style="float:left; width:600px; margin-left:200px; margin-right:10px; ">
<div style="width:600px; background-color:yellow; padding: 10px;">
<div style="margin-bottom:10px; border:1px solid black; padding:20px;"> Item 1 <br /> Item 1 <br /> Item 1</div>
<div style="margin-bottom:10px; border:1px solid black; padding:20px;"> Item 2 <br /> Item 2 <br /> Item 2</div>
<div style="margin-bottom:10px; border:1px solid black; padding:20px;"> Item 3 <br /> Item 3 <br /> Item 3</div>
<div style="margin-bottom:10px; border:1px solid black; padding:20px;"> Item 4 <br /> Item 4 <br /> Item 4</div>
<div style="margin-bottom:10px; border:1px solid black; padding:20px;"> Item 5 <br /> Item 5 <br /> Item 5</div>
<div style="margin-bottom:10px; border:1px solid black; padding:20px;"> Item 6 <br /> Item 6 <br /> Item 6</div>
<div style="margin-bottom:10px; border:1px solid black; padding:20px;"> Item 7 <br /> Item 7 <br /> Item 7</div>
<div style="margin-bottom:10px; border:1px solid black; padding:20px;"> Item 8 <br /> Item 8 <br /> Item 8</div>
<div style="margin-bottom:10px; border:1px solid black; padding:20px;"> Item 9 <br /> Item 9 <br /> Item 9</div>
</div>
</div>
<div id='display_cart' style="width:190px; float:left; font-size:12px; background-color:green "> Cart Info.</div>
당신은 "때 큰"이란 무엇을 의미합니까? –
예를 살펴보면 카테고리 콘텐츠가 맨 아래에 누락되어 있습니다. – user622378