Aiming for freezing, but not parental

I have a dynamically generated list that has potentially up to 5 levels. I want the specified element text to be underlined when I hover over the specified element, but not whether it is a parent.

see an example.

http://jsfiddle.net/ca7fL/5/

you see when you hover over “this”, the above parent lit also underlines.

Any ideas?

Greetings

+5
source share
3 answers

This seems difficult to achieve because when you specify a child li, you also effectively specify its parent.

: span hoverable: http://jsfiddle.net/ca7fL/16/

+7

, CSS LI - Elements , . CSS, , .

0
ul li ul { padding-left:20px}
ul li ul li:hover { text-decoration:underline; curor:pointer;}
-1
source

All Articles