即时执行此项目的大学。我目前面临一个小问题,但仍令人不安。IMG在css图片墙上闪烁
链接网站:http://haw.finekost.com/ws2013/PP_HATE_SITE/
CSS:
.box {
filter: grayscale(1);
float: left;
height: 0;
margin: 0;
moz-filter: grayscale(1);
ms-filter: grayscale(1);
o-filter: grayscale(1);
opacity: 0.5;
padding-bottom: 20%;
position: relative;
webkit-filter: grayscale(1);
width: 20%;
}
.box:hover {
cursor: pointer;
moz-filter: all .5s ease-in-out;
opacity: 1;
webkit-filter: grayscale(0);
webkit-transition: all .5s ease-in-out;
}
img {
height: 100%;
left: 0;
position: absolute;
width: 100%;
}
的箱子通过PHP的产生。 当我将它们悬停时,图像框的大小会改变(仅为1px)。我真的不知道他们为什么这么做。希望有人能帮助我
在Firefox上OSX他们不这样做实际上,在Chrome中他们做 –