gpt4 book ai didi

css - 悬停在包含子 div 的 div 上需要建议吗?

转载 作者:行者123 更新时间:2023-11-28 18:05:36 25 4
gpt4 key购买 nike

<div class="one">
<div class="presetHolder"><h3>Energy Solutions</h3>
<div class="imageHolder">
<div class="image"> <img src="/gogivers/assets/Image/energy1.jpg" alt="" height="70" width="70"> </div>
<div class="image"> <img src="/gogivers/assets/Image/energy2.jpg" alt="" height="70" width="70"> </div>
<div class="image"> <img src="/gogivers/assets/Image/energy3.jpg" alt="" height="70" width="70"> </div>
<div class="image"> <img src="/gogivers/assets/Image/energy4.jpg" alt="" height="70" width="70"> </div>
<div class="image"> <img src="/gogivers/assets/Image/energy5.jpg" alt="" height="70" width="70"> </div>
<div class="image"> <img src="/gogivers/assets/Image/energy6.jpg" alt="" height="70" width="70"> </div>
<div class="image"> <img src="/gogivers/assets/Image/energy7.jpg" alt="" height="70" width="70"> </div>
<div class="image"> <img src="/gogivers/assets/Image/energy8.jpg" alt="" height="70" width="70"> </div>
</div>
</div>
</div>

我正在尝试在 div“one”上放置悬停效果,但悬停效果只会突出显示 presetHolder div 或 imageHolder div。

有人可以建议我执行此操作所需的 CSS 吗?

最佳答案

.one:hover .presetHolder {
your hovered styles here
}

.one:hover .imageHolder {
your hovered styles here
}

关于css - 悬停在包含子 div 的 div 上需要建议吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19681078/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com