IE6解决min_height

ie6确实不支持   对于min-height我一般是直接给ie6设置height,  ie6会当做最小高度来处理,如果内部元素的尺寸超出了,会自动撑大父元素

例如:

div {min-height:300px;height:auto !important;height:300px;}
这样写的话 ie6会读取height:300px;而忽略height:auto;等于给ie6里设置了一个最小高度;
而其他浏览器会读取height:auto;和min-height:300px; 。

前端小菜。。。
努力成为大菜!
原文地址:https://www.cnblogs.com/chengj/p/1991312.html