jquery hover ie bug-若是次级菜单不加background的话失效

 I declare a div without content but with a defined width and height in order to show some info. I have no problems with the hover effect in mozilla or opera but in IE8, the info appears and instantly appears and disappears and there is no time to read it i also add a 
or a   but this doesn't work. It works if i apply a background to the div. Is this a bug??
css

 

--查了一个下午才找出缘由,就是好比说一个一级导航菜单用ul li构造,其中li下面含有二级菜单,li用position:relative,下面的二级菜单为div包含的内容,并用position:absolutely进行定位,可是若是二级菜单的div不设定css中的background的话鼠标离开一级菜单进入二级菜单则二级菜单仍然消失,仿佛jquery的hover函数中并无解决ie的bug,解决此问题的方法是加background:#fff;jquery

fuck,最后在jquery的官网也找到了一年前的一个哥们遇到了相似的状况,见上面的英文部分!app

相关文章
相关标签/搜索