CSS Submenu Disappearing too quickly

∥☆過路亽.° 提交于 2020-01-15 23:03:43

问题


I have edited the CSS on my menu on this site:

So it would display completely across at the font size I want (previously it was turning into a two layer menu). However, now for some reason the submenu under "Show Your Support" is very difficult to click on. When you hover and try to move your mouse down to an option it disappears half the time before you can click on anything.

I have played around with the code in Chrome (inspect element) and I can't seem to find out what is wrong. Can someone assist me, please?

Thank you.


回答1:


There is a gap between the menu and where the sub-menu appears. See Image below:

When you hover away from the menu item and the mouse is on its way to the sub-menu, the mouse ceases to be on 'hover' (while crossing over the gap) - making the sub-menu disappear.

If you can eliminate the gap (i.e. place where the sub-menu is positioned higher up the page), the 'hover' state will remain on mouse-move and the sub-menu will stay 'shown' for clicking.

Does that help?

PS posted as an answer (instead of comment) so I could include the image in my explanation.




回答2:


In your show your support tag, inside add this style

style="padding-bottom:10px;"

So that I am able to operate now without any hover before on click issue. try and let me know. I tried in IE.



来源:https://stackoverflow.com/questions/20012212/css-submenu-disappearing-too-quickly

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!