Safari浏览器出现问题。我已经连续6小时寻找修复,所以如果我的解释不好,我会感到困惑。所以问题是:我在缩略图上添加了悬停效果,它可以在所有浏览器中使用,但拇指未正确放置在Safari和IE中。 我曾尝试使用:浏览器,safari/IE负边距不起作用
@media screen and (-webkit-min-device-pixel-ratio:0){
img.a {
position: absolute;
top: -500;
z-index: 10;
}
img.b {
position: absolute;
top: -500;
}
}
但这个工程的WebKit浏览器,这意味着铬为好。
我目前正在使用这在Chrome和Firefox作品的CSS:
img.a {
position: absolute;
top: -500;
margin-left: -115px;
z-index: 10;
width: 230px;
height: 120px;
border: none;
}
img.b {
position: absolute;
top: -500;
margin-left: -115px;
width: 230px;
height: 120px;
border: none;
}
如果任何人有一个解决方案,将真正拯救我的一天:)
这里的网站,如果你需要检查:www.janthorb.com
谢谢你这么多:)我在CSS的时间太长了瞪大了眼睛。和平终于。 –