We would like to know how to background-color: transparent;.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
div>div {<!-- w ww. j a va 2s . com-->
background-color: cyan;
}
div div:only-child {
background-color: transparent;
}
</style>
</head>
<body>
<div>
<div class="e">e</div>
<div class="f">f</div>
<div class="f">g</div>
</div>
<div>
<div class="e">e</div>
</div>
<div>
<div class="f">f</div>
</div>
</body>
</html>
The code above is rendered as follows: