鼠标移开时 GWT 菜单栏隐藏
我们最近将 GWT 菜单栏附加到我们应用程序的一部分,用于菜单目的。
我还希望当用户的鼠标离开子菜单时自动隐藏子菜单。理想情况下,有某种延迟,以防止它突然消失,但我会满足于只是隐藏。
那么自动隐藏 GWT 子菜单的最佳方法是什么?
谢谢, 乌代
We have recently attached a GWT MenuBar to a part of our application for, well, menu purposes.
I would also like to have the sub menu automatically hide when the user's mouse leaves the sub menu. Ideally with some sort of delay to prevent it vanishing too abruptly, but I'd settle for just the hiding.
So what would be the best approach to autohiding a GWT submenu?
Thanks,
Uday
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你最好的选择很可能是使用纯 CSS3 下拉菜单。可以在此处找到示例。这是我们最终采用的解决方案。不幸的是,GWT MenuBar 有一些限制尚未得到充分解决。
Your best bet would most likely be using a pure CSS3 dropdown. An example can be found here. This was the solution we ended up going with in the end. Unfortunately, the GWT MenuBar has several limitations which have yet to be adequately resolved.