gpt4 book ai didi

html - :hover not working on div, 正在处理页面的其他部分

转载 作者:太空宇宙 更新时间:2023-11-04 09:40:25 24 4
gpt4 key购买 nike

我的悬停类在我的按钮 div 上不起作用,但它在我网页的其他部分上起作用,包括使用绝对位置的部分。

.desbutton {
margin-left: 25px;
margin-bottom: 25px;
height: 36px;
width: 113px;
background-color: #4A6D81;
border-radius: 2px;
position: absolute;
bottom: 0;
}
.desbutton:hover {
background-color: #80999E;
}
<div class="desbutton">
<p class="butText">READ MORE</p>
</div>

Jsfiddle with full src

最佳答案

请检查:为什么您的.designCard attr z-index: -1。这会导致您的 body 元素 higher 然后您的卡片,因此您的悬停永远不会被“调用”

关于html - :hover not working on div, 正在处理页面的其他部分,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39970820/

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