开发者

CSS vertical Menu - Menu Item Goes to no-hover state on sub-menu hover

开发者 https://www.devze.com 2023-01-30 06:50 出处:网络
when i go to an submenu item on... the Item from the main menu goes to no-hover state.. i want it to stay in hover state if i am on its sub-menu...

when i go to an submenu item on... the Item from the main menu goes to no-hover state.. i want it to stay in hover state if i am on its sub-menu...

take a look a开发者_JS百科t my code here

what i am doing wrong


I haven't tried it out, but it should work, if you define the :hover on the li instead of a (however that won't work in IE6).

So instead of

a:hover { ... }

use

li:hover a { ... }
0

精彩评论

暂无评论...
验证码 换一张
取 消