IE6,IE7,FF高度自动适应的方法
IE6下,div会根据内容自适应高度和宽度,但是在IE7和FF下就不行了。
最好的解决方法:
#content{
min-height:500px;
height:auto;/*IE7*/
_height:500px;/*IE6*/
display:table;/*firefox,opera*/
}
IE6下,div会根据内容自适应高度和宽度,但是在IE7和FF下就不行了。
最好的解决方法:
#content{
min-height:500px;
height:auto;/*IE7*/
_height:500px;/*IE6*/
display:table;/*firefox,opera*/
}