We would like to know how to rollover list style.
<!--from w w w . ja va 2 s . c om-->
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
li:first-child {
color: blue;
}
li:hover {
color: red;
}
ul:hover li:first-child {
color: black;
}
ul:hover li:first-child:hover {
color: red;
}
</style>
</head>
<body>
<ul>
<li>1111</li>
<li>2222</li>
<li>3333</li>
</ul>
</body>
</html>
The code above is rendered as follows: