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??

 

--查了一個下午才找出原因,就是比如說一個一級導航菜單用ul li構造,其中li下面含有二級菜單,li用position:relative,下面的二級菜單爲div包含的內容,並用position:absolutely進行定位,但是如果二級菜單的div不設定css中的background的話鼠標離開一級菜單進入二級菜單則二級菜單仍然消失,彷彿jquery的hover函數中並沒有解決ie的bug,解決此問題的方法是加background:#fff;

fuck,最後在jquery的官網也找到了一年前的一個哥們遇到了類似的情況,見上面的英文部分!

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章