我的css支持chrome,当我在Firefox中测试时,它不起作用。 这里是代码:Firefox:图像转换,轻松进行灰度调整
<div class="img">
<a href="/">
<img src="http://upload.wikimedia.org/wikipedia/commons/8/80/Knut_IMG_8095.jpg" alt="Smiley face" height="400" width="600">
</a>
</div>
img {
-webkit-transition: all 1s ease;
-moz-transition: all 1s ease;
-o-transition: all 1s ease;
-ms-transition: all 1s ease;
transition: all 1s ease;
display: block;
}
img:hover {
-webkit-filter: grayscale(100%);
display: block;
}
演示:http://jsfiddle.net/X8LQk/2/
CSS滤镜并未在FireFox中实现。 您可以使用画布图像操作来回退,但这只是眼睛的糖果 – Mircea