【转】解决IE6不兼容min-height的问题

CSS代码

#test { min-height:100px; background:#BBB; _height:100px; overflow: visible; }

说明一下上面这段CSS的意思。

min-height:100px;这一句在ie7和FF已经可以正常显示了。。 _height:100px这一句在ie6,ie5测试显示正常。但不能过W3C验证:L overflow:visible;这一句为了注明#test当内容超过100px时就自动延长。

注意:你必须保证#test以外的都要是overflow:visible。否则还是不会显示超出。

 

转自:http://developer.51cto.com/art/201008/220386.htm

posted @ 2013-03-29 13:54  伯箫  阅读(140)  评论(0)    收藏  举报