IE的hasLayout

   IE的form经常会出现上下边距,莫名其妙的.以前IE6时代就知道它有这个hasLayout的问题,到了IE7还是存在.还有躲猫猫bug也依然健在.奇怪,这么明显的bug,IE7为什么没有解决掉呢??

    以前在定义hasLayout的时候,只喜欢用* html .hasLayout{height:1px;}.以后再改了,定义为* html .hasLayout,* + html .hasLayout{zoom:1;} 因为IE7已经正确理解height,而非做为min-height解了,所以,还是用zoom:1来获得hasLayout是最好的办法.

posted on 2008-05-15 10:20  真阿当  阅读(99)  评论(0编辑  收藏  举报