:悬停状态在 jQuery UI“剪辑”之后不会恢复动画 - IE Bug
在 IE(所有版本)中发现一个错误,想知道是否有解决方法。
这是使用 jsfiddle 以非常简单的形式出现的错误:
在 Internet Explorer 中:
- 单击“显示”
- 单击“隐藏”
- 再次单击“显示”
注意到“隐藏”链接仍然处于悬停状态吗?有时,如果在元素动画时移动鼠标足够快,则不会发生这种情况。
“盲目”UI 动画或基本的 slipUp() 方法不会发生此错误,但“剪辑”UI 动画确实是我正在处理的项目所需要的。
感谢您的浏览,希望对您有所帮助!
Found a bug in IE (all versions), wondering if there is a workaround.
This is the bug in a very simple form using jsfiddle:
In Internet Explorer:
- Click "show"
- Click "hide"
- Click "show" again
Notice how the "hide" link is still in its hovered state? Sometimes it doesn't happen if you move your mouse fast enough while the element is animating.
This bug doesn't happen with the "blind" UI animation or the basic slideUp() method, but the "clip" UI animation is really what I need for the project I'm working on.
Thanks for taking a look, hope you can help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
编辑:请检查下面的,更丑陋的黑客,DEMO 这里
和CSS:
原始 Ans:
我能想到的一个快速技巧是在
.hide
回调中将颜色设置为#000
,请注意,这不是一个正确的解决方案。
Edit: Please check the below, even more uglier hack, DEMO here
and CSS:
Original Ans:
One quick hack I could think of is to set the color to
#000
in.hide
callback,Pleas note that this is not a proper solution.