IE6不支持man-height的解决办法
与 IE6不支持min-height的解决方法 类似,IE6不支持max-height的解决方法:height:auto !important;
height:200px;
max-height: 200px;
overflow:hidden;
这样做可以在IE6中实现max-height的效果,但是有一个问题无法解决——div中没有内容时,IE6也会呈现200px高的区域。
----------上面摘自 http://www.17css.com/ie6-max-height/并整理---------------
PS:关于上面解决方法的理解
①添加 height:auto!important;是因为内容少时不会缩小div。
②只用下面3句就可以实现
_height:200px;
max_heigth:200px;
overflow:hidden;
只针对IE6加一句 _height:200px;即可。
同样,在没有内容时,IE6仍然呈现200px高的区域。无法解决。
不知道是不是有方法可以解决。
页:
[1]