【发布时间】:2017-01-24 13:01:11
【问题描述】:
.first {
background: red;
width: 100px;
height: 100px;
}
.first:hover .outer-box {
background: black;
}
.outer-box {
width: 100px;
height: 100px;
background: green;
}
<div class="icons">
<div class="first"></div>
</div>
<div class="outer-box"></div>
如何将鼠标悬停在一个框上并突出显示另一个?
如果盒子在同一个容器中会更容易,但不幸的是它们不在。
Hope you can help perhaps updating my pen with no jquery if doable
【问题讨论】: