高度不适应bug--解决方法

#content
{
    background:#000;   
    margin:20px auto;
    overflow:auto;/*在标准浏览器中定义父元素能够自适应高度*/
    display:inline-block;/*在IE6及更低版本中定义父元素为内联款装显示,强迫自动伸缩*/

}
P{
    height:100px;
    border:20 px solid blue;
    margin:20px;
}

posted @ 2008-03-27 17:45  looping  阅读(198)  评论(0)    收藏  举报