有没有优雅的解决方案只对顶部元素进行hover,而不是底层元素;或者我应该使用JavaScript来完成这个功能?
<div class="WithHover1">
<div class="WithHover2">
I am Top and I want to be the only div hightlighted
</div>
I want to be hightlighted too, but I dont want to be hightlighted when the nested one is
</div>