Html z索引设置为最高,但仍显示在下方
z-index设置为350,但当您将鼠标悬停在twitter图像上时,弹出窗口仍显示在下方?如果您能看看html和css,我将不胜感激: 非常感谢 Kelly.更改此选项:Html z索引设置为最高,但仍显示在下方,html,css,image,hover,z-index,Html,Css,Image,Hover,Z Index,z-index设置为350,但当您将鼠标悬停在twitter图像上时,弹出窗口仍显示在下方?如果您能看看html和css,我将不胜感激: 非常感谢 Kelly.更改此选项: #home .carousel { width: 475px; float: left; display: block; overflow: hidden; background: ... } 对此 #home .carousel { width: 475px; float: l
#home .carousel {
width: 475px;
float: left;
display: block;
overflow: hidden;
background: ...
}
对此
#home .carousel {
width: 475px;
float: left;
display: block;
overflow: visible;
background: ...
}
这似乎解决了您的问题。在深入讨论之前,请确保您的html和css通过验证:,我在css中没有看到任何带有
z-index:350
的元素。但是,大多数position:absolute
元素也有float
属性。这两者相撞。简言之:米兰所说的话我会马上证实