.thumbnail{
position: relative;
z-index: -99;
height:125px;
}
.thumbnail:hover{
background-color: transparent;
z-index: 50;
}
.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: #512C1D;
padding: 10px 0px 0 10px;
border: 0px solid gray;
visibility: hidden;
color: black;
text-decoration: none;
text-shadow:none;
height:210px;
}
.thumbnail span img{ /*CSS for enlarged image*/
border: 1px solid #512C1D;
padding: 0px;
}
.thumbnail:hover span{ /*CSS for enlarged image on hover*/
visibility: visible;
top: -20%;
left: -35%; /*position where enlarged image should offset horizontally */
transition-delay: 1s;
-webkit-transition-delay: 1s;
}
我试图为thumbnail类添加悬停效果,我添加,但悬停只在Chrome浏览器,在Firefox中工作,它不工作,我不能弄清楚什么是错在这里悬停效果工作在铬,但不工作在火狐