gpt4 book ai didi

html - 在 Chrome 中悬停时,CSS div 无法正常工作

转载 作者:太空宇宙 更新时间:2023-11-03 23:41:25 25 4
gpt4 key购买 nike

我没有使用 <table> 制作了一个定价表标签,但带有 <div> tags.Its 在 Firefox 中运行良好,但在 chrome 中运行不正常。当您将 div 悬停在 chrome 中时,z-index 属性如何不起作用。这是它的 fiddle http://jsfiddle.net/JmLRe/

这是未悬停或处于正常状态时的图像。

enter image description here

在 Firefox 中悬停时显示在此处。

enter image description here

但这里的问题出在 chrome 上。

enter image description here

请告诉我我在 css 中做错了什么。

最佳答案

James 的解决方案对我来说效果不佳。它只修复了 premium 部分。

position: relative; 添加到 .table-item:hover 似乎适用于所有部分:

.table-item:hover{
position:relative; /* Added this */
transform:scale(1.08);
-webkit-transform:scale(1.08);
z-index: 1;
}

关于html - 在 Chrome 中悬停时,CSS div 无法正常工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22760935/

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