Example code:
<div class="box1"></div>
<div class="box2"></div>
What I want is hovering on box2 to change the style of box1.
Besides do it this way.
<div class="box2"></div>
<div class="box1"></div>
.box2:hover ~ .box1 {
}
Is there another solution?