Web学习篇之---css基础知识(三)
最近做项目,需要某个div有个最小高度,并在此基础上高度为自适应,于是从网络上找到了以下两种解决方案:
min-height:400px; //(解决ie8.9.ff.chrome)
*+height:100%; //(解决ie7)
_height:400px; //(解决ie6) ie6超出自动溢出
或
min-height:400px;
height:auto!important;
height:400px;
min-height:400px; //(解决ie8.9.ff.chrome)
*+height:100%; //(解决ie7)
_height:400px; //(解决ie6) ie6超出自动溢出
或
min-height:400px;
height:auto!important;
height:400px;