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