日期:2014-05-19  浏览次数:20863 次

蛋疼的ie6
HTML code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="text/javascript" src="scripts/jquery.js"></script>

<style type="text/css">
    *{margin:0;padding:0;}
</style>

<script type="text/javascript">
    $(document).ready(function(e) {
       $("#a").mouseover(function(e) {
            $("#b").slideDown();
        });
         $("#a").mouseleave(function(e) {            
            $("#b").slideUp();
        });
    });
</script>
</head>

<body>
<div id="a" style="position:relative;width:100px;height:30px;border:1px solid #cccccc;">
    <div id="b" style="position:absolute;top:30px;left:0px;width:300px;height:400px;border:1px solid #cccccc;display:none;"></div>
</div>
</body>
</html>



效果是个鼠标经过弹出,离开就收回的菜单,但在蛋疼的ie6里只要一离开div a的范围就会收回,其他浏览器都正常,求解答。

------解决方案--------------------
哦......一起蛋疼吧
------解决方案--------------------
嗯。问题解决了就好!呵呵!
------解决方案--------------------
浏览器的问题,跟你的编程没关系吧
------解决方案--------------------
浏览器不同,效果很多都不同,很蛋疼!
------解决方案--------------------
又学了招,3Q楼主了
------解决方案--------------------
呵呵,浏览器的兼容性确实是个蛋疼的问题。。。
------解决方案--------------------
。。。表示没用过IE6
------解决方案--------------------
楼主还在考虑IE6的兼容,我等应早点抛弃IE6