jquery - Simultaneous :hover for parent and its child element -
is possible use jquery achieve simultaneous ":hover" both parent , child element @ same time ? specifically, both parent , child change background images when ever cursor moves on parent tag changing child elements background well.
the reason ask make nav-bar out fixed backgrounds functions more dynamically when changing content. please ask if of unclear. , have nice day.
why want use jquery achieve this?
div.parent:hover { background: red; } div.parent:hover div.child { background: blue; }
this won't work in ie6 since ie6 supports :hover on parent tag.
Comments
Post a Comment