灰度在铬通过css [英] grayscale in chrome via css
本文介绍了灰度在铬通过css的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法通过css在Chrome中制作灰度图片?
Is there a way to make a grayscale image in chrome via css?
I have tried this but doesn't work on latest version of chrome
推荐答案
从当前版本19.0.1084.46添加了对webkit中的本地CSS过滤器的支持
support for native CSS filters in webkit has been added from the current version 19.0.1084.46
因此-webkit-filter:grayscale )将工作,这是更好和更容易的方法比SVG Webkit ...
so -webkit-filter: grayscale(1) will work and which is better and easier approach than SVG for webkit...
这篇关于灰度在铬通过css的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文