div가 왼쪽으로 떠 있고 다른 하나가 오른쪽으로 떠있었습니다. 부동 div를 포함하는 주 div가 페이지 하단에 도달하지 않으며 코드 예는CSS 다른 div 안에 부동 div
입니다.<div style=" width: 900px; height:auto; margin:5px auto; background:#666; ">
<div style="float:left;">
Some content! Some content! Some content!
</div>
<div style="float:right;">
Some content! Some content! Some content!
</div>
</div>
무엇이 문제입니까?
높이가 설정되지 않았 으면 자동으로 설정됩니다. –
dupe : http://stackoverflow.com/questions/2062258/floating-stuff-within-a-div-floats-outside-of-div-why – Ryan