Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在默认情况下隐藏的 div 中有一个 div“动作”。我希望它在鼠标悬停在 div 上时显示。我怎样才能做到这一点?
<div class="tile"> <div class="actions">hello</div> </div>
使用 CSS:
.tile:hover > .actions { display:block; }
看到这个小提琴
用css处理
.tile:hover .actions{ display:block; }