1
하위 요소가 float:left;
또는 float:right
일 때 부모 요소에 height:auto;
을 얻는 방법?CSS 플로트 및 자동 높이
부모
#parent {
width:100px;
height:auto;
padding-bottom:10px;
background:#0F0;
}
child_left
#child_left {
width:50%;
height:50px;
float:left;
background:#00F;
}
바이올린 : http://jsfiddle.net/27EWw/
'높이 : 자동;'을 수행함으로써 무엇을하고 싶습니까? – stackErr
http://jsfiddle.net/j08691/27EWw/1/ 다음에 나왔습니까? – j08691