幻灯片顶部的菜单出现故障
我已经实现了以下设置(在被请求后):
图像变化的幻灯片,用户将鼠标悬停后,菜单将出现在右上角,鼠标移开时它将消失。问题是,当我尝试将鼠标悬停在其项目上时,菜单出现故障,在 IE6/7 和 FF 3.5 中都会发生这种情况。
我尝试过 Jquery 悬停、mouseenter/mouseleave,都得到相同的结果。 http://www.codecookery.com/test/index.html
可能吗让它完全没有故障?
I have implemented the following set up (after being requested):
slideshow of images changing, after the user mouse over, the menu would appear in the top right corner, it would disappear on mouse out. The problem is that the menu is glitchy when I try to mouseover its items, it happens in both IE6/7 and FF 3.5.
I have tried Jquery hover, mouseenter/mouseleave, all with the same result.
http://www.codecookery.com/test/index.html
is it possible to make it not glitchy at all?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 .hover 比 .mouseenter/leave 更好。
但真正的问题是菜单位于幻灯片包装器之外,因此将鼠标悬停在菜单上将被视为离开幻灯片包装器。将 html 更改为以下内容,将菜单嵌套在幻灯片包装器中,然后恢复使用 .hover 函数::
You're better off using .hover than .mouseenter/leave.
The real problem, though, is that the menu is outside the slideshowwrapper, so hovering over the menu counts as leaving the slideshowwrapper. Change your html to the following, nesting the menu in the slideshowwrapper, and revert to using the .hover function::