0

效果在 Chrome 中看起来很棒,但在 IE 和 FF 中失败。请在多个浏览器中查看此链接:

http://thebc.co/our-work

.portfolio-img{filter: url("data:image/svg+xml;utf8,#grayscale");/* Firefox 10+ /filter: gray;/ IE6-9 /-webkit-filter:grayscale(100%);/ Chrome 19+ & Safari 6+ /-webkit-transition: all .6s ease;/ Fade to color for Chrome and Safari /-webkit-backface-visibility: hidden; / Fix for transition flickering */-moz-box-shadow:0 0 2px rgba(0,0,0,0.2);-webkit-box-shadow:0 0 2px rgba(0,0,0,0.2);box-shadow:0 0 2px rgba(0,0,0,0.2)}

.portfolio-img:hover{filter:none;-webkit-filter:grayscale(0%);-moz-box-shadow:0 0 4px rgba(0,0,0,0.4);-webkit-box-shadow:0 0 4px rgba(0,0,0,0.4);box-shadow:0 0 4px rgba(0,0,0,0.4);-o-transition:.8s;-ms-transition:.8s;-moz-transition:.8s;-webkit-transition:.8s;transition:.8s}

4

1 回答 1

1

这是因为IEFirefox版本 16 不支持过滤器

来自源http://caniuse.com/css-filters

于 2012-11-09T03:47:19.247 回答