Just putting together this site and would like the menu item with a dropdown to stay highlighted in white when you are hovering over the dropdown menu items. http://dl.dropbox.com/u/7086475/Paul%20Day/index.html
相关问题
- how to split a list into a given number of sub-lis
- Adding a timeout to a render function in ReactJS
-
Why does the box-shadow property not apply to a
- C#: How do i get 2 lists into one 2-tuple list in
- Add animation to jQuery function Interval
You can set a
css class
for the hover state of parent li usingjquery or javascript
.Edit
You can set a css class like this...
and Css Style...
Instead of using the
#nav a:hover
selector you can use#nav li:hover
instead.The li will remain in the hover state while you're in the submenu unlike the anchor.
It won't work in IE6 since the hover pseudo class only works on anchors.
Use this jquery, it will work to solve your problem