We would like to know how to hover to change the background of a list item.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.aQli:hover {<!--from w w w .jav a 2 s . c o m-->
background-color: red;
}
</style>
</head>
<body>
<div id="addQuesion">
<ul id="aQul">
<li class="aQli">FOO</li>
<li class="aQli">BAR</li>
</ul>
</div>
</body>
</html>
The code above is rendered as follows: