好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

ie6问题_html/css_WEB-ITnose

http://topic.csdn.net/u/20120411/15/ae880ebf-f4cc-4152-9724-37fdfe14219c.html?64791

谁能解释下这是为毛??


回复讨论(解决方案)

加background 是为了触发layout

把 #b的position 去掉,不加background mouseleave也是可以了,问题就出现在position:absolute;
ie6解析怪异,不像DOM那样依旧认识#a下面#b的width及height

ie6只会认得内容来充满box,如下:

     无标题文档        *{margin:0;padding:0;}      $(document).ready(function(e) {       $("#a").mouseover(function(e) {            $("#b").slideDown();        });         $("#a").mouseleave(function(e) {                        $("#b").slideUp();        });    });   

查看更多关于ie6问题_html/css_WEB-ITnose的详细内容...

  阅读:23次