如何在live mouseenter中设置bind unbind。
如何处理:在slideUp和slideDown进程中,mouseenter & mouseout无效。仅当该过程完成后,mouseout & mouseenter才会再次激活。
我的代码如下:
编辑:在我的代码中,如果鼠标移入和移出div块的速度很快,js会记住鼠标经过的次数,然后鼠标应该被停在div块之外,div.tile仍然会一次又一次地slidedown sliderup,直到js记住的所有时间都结束。所以我认为应该对slideUp和slideDown事件做一次bind。谢谢。
谢谢。
发布于 2011-08-09 19:38:17
在jQuery中对height进行动画处理存在问题,特别是在使用.stop()时,您需要防止后续的.mouseenter()占用更多的动画。请参阅jQuery height when using stop() in animation or slideUp/slideDown和css-tricks.com blog post。
像在中一样,只使用.animate()来操作高度可能会更容易
https://stackoverflow.com/questions/6995130
复制相似问题